Message from JavaScript discussions

November 2017

— It's actually quite funny haha, I crammed testing, linting, minifying etc... into a single file like that. It just snags NPM packages and Github repos into the build directory and uses them locally

Message permanent page


And I haven't found it harder than Grunt/Gulp or Webpack at all... in fact it's too simple to get wrong most of the time

— If you know Bash, you can use GNU Make :)

— Heh

— Why use uglify over the others?

— JustPickOne mentality?

— Meh, I chose whichever was most available

— It does

node_modules/uglify-es/bin/uglifyjs -b -o prod-build/dist/differentia.js src/differentia.js
node_modules/uglify-es/bin/uglifyjs -o prod-build/dist/differentia.min.js src/differentia.js

which is -b for beautify, and the other does a minify

Message permanent page

— Heh, nice

— Well, closure compiler does black magic it seems

— I'd like to add versioning too

— So it edits`package.json` version number for me