Minify and obfuscate multiple javascript files at once [closed] - javascript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to minify and obfuscate multiple javascript files at once but keeping the way they are linked (name of variables and functions)
Do you know any software that could help ?

Pick whatever suits you best.
Closure Compiler (online sandbox).
YUI Compressor
UglifyJS

You can also convert multiple js files into multiple obfuscated files instead of having one single obfuscated files.
I've created a solution and explained it on my blog. Please take a look:
http://adilsblogs.blogspot.com/2012/07/obfuscating-multiple-js-files-using-yui.html

https://github.com/mishoo/UglifyJS

Our ECMAScript Obfuscator does this. It builds a map remember how it obfuscated names, and you can reobfuscate individual files, or new files, and extend the map, without breaking what has already been obfuscated.

Related

Replacing a lot of absolute links at once [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I started on a project where we want to go from a Wordpress site we currently have to a non-cms based site for specific reasons. I downloaded a plugin for the site which converted all my pages and such to HTML but now I have a bunch of pages with absolute links to certain wordpress folders that will not be there anymore.
I would like to (for the time) convert all links that use absolute paths to relative paths as I have changed the file structure of the website. I currently use Sublime 3 and Phpstorm, but if those tools can't help me I can absolutely get another one to help me with this task.
Thanks!
Notepad++ is powerful for this. Use Find and replace in all files from a selected directory.
If you are on linux, use grep.

Symfony 2 minify dynamic javascript [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have to build a webservice in order to send a webpage to some others websites.
Theses websites will integrate this webpage inside another one.
I have to send the assets separetely from the webpage.
For performances issues, I musn't use AJAX requests.
One of my javascript files, need businness data in order to display and validate form fields according to complex business rules (Administration).
So far I'm using a "js.twig" template, so I can easily add my data to my script.
However, I'm asked to minify this file (performance and intellectual property).
How can I minify my file "on the fly" ?
Update :
I'm not asking for a tool. I already have one. I need leads about calling a "minifyier on the fly". Filo gave a pretty good on the subject.
probably this answer can help you:
https://stackoverflow.com/a/15947488/3625883
If you want a library in pure php to perform the compression, you can use https://code.google.com/p/minify/
For installation:
add in composer.json
"mrclay/minify": "2.2.0"
Then you can use Assetic filter: jsminplus (https://github.com/jbroadway/assetic/blob/master/lib/JSMinPlus.php )

Is there a place where I can get all the popular and latest javascript library? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I use multiple javascript libraries, such as bootstrap, jquery, knockout and etc. Every time I start a new project, I have to add them manually to my layout page. It annoys me even its once per project. Nuget packager has been helpful for doing this. But as I use more libraries, nuget packager no longer fits my needs. So I'm looking for a better solution. My question is: Is there a place or visual studio plugin that can help me adding the popular and latest javascript libraries mentioned above?
I always use CDNs. That way from one project to the next, I just need the same links in my html to get the same resources. Here is a good resource.
Javascripts CDN
Example code:
<script src="//cdnjs.cloudflare.com/ajax/libs/knockout/3.1.0/knockout-min.js"></script>

Python tool to compile/include HTML in Javascript [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a set of HTML files that I'd like to bundle into and access from Javascript.
For my Rails project I use the haml_coffee_assets gem. This gem generates a Javascript JST object that includes my templates. I can refer to a template, in Javascript, using
JST['template_name']()
This approach is very convenient because I can have a standalone Javascript file that includes everything.
Are there such tools for Python projects? A stand-alone tool? Something for Flask? Something for Django? I can write a stand-alone tool easily, but it'd be nice if something has already done this. Quick google search didn't return anything.
Thanks.
I believe what you are looking is called webassets. There is also a wrapper for Flask called Flask-Assets.

Tools to enforce a coding style for Javascript [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I need to automatically check the style of javascript sources written by different people. Do you know of a good tool to do it? Integration with emacs would be a plus. Thank you in advance.
See EditorConfig. This tool is not limited to js though; You first install the plugin for your editor (there is an emacs plugin), and create a file named .editorconfig, whose content is the coding style.
I've recently updated the CodePainter project to work tightly with EditorConfig, so you can get the best of both worlds with JavaScript.
Please, spread the word. The project could use more traction and I could use more help.
Google JavaScript pretty print and JavaScript lint. Plenty of options, including JavaScript Lint and JSLint, among others.
There's also JSHint which has libraries for Rhino, JavaScriptCore, Windows Script Host and Ruby.
You're probably looking for the JS Code Sniffer: https://npmjs.org/package/jscodesniffer#a-standard

Categories

Resources