Message from JavaScript discussions

November 2017

— Personally for my own projects, I just use GNU Make

— 

Easy enough to cat modules into an IIFE and then spit out a single file, uses both Bash and Make's own language

— Https://github.com/Floofies/Differentia.js/blob/master/makefile

— There's the makefile for one of them

— 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

Message permanent page

— 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