getting started with mootools in webstorm - mootools

Sow how to include mootools js files in my project so there are no 'Class is not defined' errors?
The getting started page starts with selecting an element, but I don't even know how to get it working in the IDE...
Edit: I have added MooTools as an external library through JavaScript -> Libriaries and it is present as such. My question is how to get it in my project, I haven't been able to find any .js files.

Related

having trouble importing lit-html project into another via script tags

I would like to use the tags from my LitHTML project in another Project but Im running into script: The server responded with a non-JavaScript MIME type of "text/html". errors.
my LIThtml project is hosted on firebase, ive tried using the polymer build tools, and open-wc but I cant seem to get around the issue.
has anyone had any luck importing a LIThtml project via a ?
if so, is there anything specific I need in my package.json, polymer,json etc?
Thank you

Using autosummary_generate = True with readthedocs

I have been trying to publish some documentation and can't get it to work. From what I can tell it looks to me as if readthedocs is ignoring the autosummary_generate = True directive in conf.py
I am using autosummary and it works well on my local machine, with all the individual .rst files being generated when calling make html.
When building on readthedocs everything appears to work, with no errors being thrown, but when trying to browse the documentation the links do not work. Digging a bit deeper I see this type of warnings:
/home/docs/checkouts/readthedocs.org/user_builds/libgs-ops/checkouts/latest/docs/source/index.rst:23: WARNING: failed to import libgs_ops.propagator
Since that is a file that should be generated by autosummary I am assuming the problem is, as I mentioned, that readthedocs has not generated the files.
You can experience the problem for yourselves here;
https://libgs-ops.readthedocs.io/en/latest/
See how none of the links work.
I found this thread, in which someone references a similar problem in one of the responses, but as the problem asked appears to be different I permit myself to create this new thread. As I said, autosummary works fine on my local install, just not on readthedocs.

Missing <component>.html_script_0.js files in Polymer build using the CLI tool

I'm having problems running the polymer build command of the polymer CLI, it gives me the following feedback:
and neither of my built folders (bundled or unbundled) have the javascript files. The build process places <script> tag with the src of a javascript file in the place of my javascript code, but this files are not being generated.
I don't know if both errors are related, but I don't know what can I do to generate the <component>.html_script_0.js files.
I had this same problem and saw that there were several issues reporting it.
It seems a fix has been already merged and is part of v0.9.0 but I'm not completely sure if the fix is up on npm just yet.

Add angular.js in HTML file

I am new at web development and working on one project where i have to use bower tool for front end development.I have created a project in intellij and installed bower and grunt on local project with angular js and jquery.i have created a file called index.html and its working fine when i write HTML but now i want to code in angular js. So i have added the script tag which is shown below in html file but it doesnt work. I know its a basic thing but i am not able to get it. I tried many things. Thank you in advance.
Ok just to make sure.
first
Check into the bower_components directory if the Angular folder is there.
If angular folder is there, like on the image.
if the file its not there run bower install angular or sudo bower install angular
second
You could manually add the Angular Sortable
script files yourself but Yeoman will automate this for you!
now run grunt serve just to check if angular script tag is there.
you should get this on console.
<script src="bower_components/angular/angular.js"></script>
Third
If this is ok, you could start getting into this tutorials to start using Angular.
W3 School Angular tutorial
thinkster.io Tutorial
From angular docs
include the Angular Javascript file via script tag.
http://fdietz.github.io/recipes-with-angular-js/introduction/including-the-angular-library-code-in-an-html-page.html
check this link for detail

HTML5 mobile boilerplate build script empties HTML files

All files seems to have run through the build script without any problems except my HTML files. They get added to my publish folder but are completely empty. I have tried both ant build and ant minify.
If i comment out this line file.pages.default.include = index.html, 404.html the files don't get emptied.
One more weird thing happend to. My generated css version started at around 40 the first time i ran the script. Doesn't matter at all really. Just a bit odd.
Update:
I noticed i get this error. ERROR: For JavaScript or CSS compression YUI compressor jar file must be present in the same directory as HtmlCompressor jar.
Read a thread where Paul Irish was saying that updating to the latest htmlcompressor jar should solve it. I did that but some reference somewhere needs to be updated with the new filename to cause now i get an error saying that the htmlcompressor jar couldn't be found.
For those who have the same issue, this has just been answered at the mobile boilerplate site: https://github.com/shichuan/mobile-html5-boilerplate/issues/46