gulp-js1k
Automatically minify, print some stats about your code size and shove your code into a shim so you can open it in the browser for the js1k competition.
Usage:
$ npm install gulp-js1k
Add it to your gulp file: (gulpfile.js)
var js1k = ; // Print some stats (js1k elgibility), minify and output to "/submission/"gulp; // Print some stats (js1k elgibility), minify, output to "/submission/" with the shim html file gulp;
Run gulp <task-name>
and done!
File greater that 1k?
[gulp] gulp-js1k ✘ Minified code is greater than 1024 bytes. 530 characters over the limit (1554 bytes in size).
File less than 1k?
[gulp] gulp-js1k ✔ Less than 1024 bytes. 102 characters left (922 bytes in size). Good to go.
License: MIT