./task.js
?
why One word: task automation. It's basically zero effort and you can use the ./task.js package manager to handle any repetitive tasks. You can use ./task.js
to automate everything with minimum effort.
./task.js
provides the structure, order, and authority that you as a developer so desperately crave.
./task.js
will also take responsibility for your actions if you need it to. It's what everybody is using now.
./task.js
is the new hotness. It's all about ./task.js
now, just like that.
This is compared to npm run/bash scripts, which are:
- scary
- not cross-platformant for deploying to windows server 2003
- old news. Nobody uses bash these days.
getting started
To install ./task.js
, first install node.js.
Now you'll need to generate some scaffolding for your project.
You can use the following scaffold generator:
#!/usr/bin/env nodevar fs = ;'browser''static''style';fs;
browser code goes in browser/
, stylesheets go in style/
, static assets go in static/
.
You are free to change these directory names to be whatever you want. Just modify the scaffold generator.
Now you can get started writing your ./task.js
script. Here is an example script that uses the browserify, watchify, and catw plugins published to the ./task.js plugin repository:
#!/usr/bin/env nodevar fs = ;var browserify = ;var watchify = ;var catw = ;var cmd = processargv2;if cmd === 'build'else if cmd === 'watch'else{var js = optswatch ? watchify : browserify;;var css = ;css;}{console;if code process;}
install
To install ./task.js
, first install node.js.