vanillamake

1.1.1 • Public • Published

VanillaMake

Makefiles in Javascript made easy!

How to use

  • Create a new file
  • Paste the following code in this file:
var VMake = require('vanillamake');

VMake('default', function(argv) {
    console.dir(argv);
});

VMake('clean', function() {
    // ...
});

VMake('test', function() {
    console.log('Running tests...');

    // ...
});

VMake('merge-source', ['clean'], function() {
    console.log('Merging files..');

    // ...
});

VMake('build', ['merge-source', 'test'], function() {
console.log('BUILDING..');

    // ...
});

  • Run it, with node <filepath> build or node <filepath> the output will be different, because VanillaMake will only execute 'default' of no taskname given in the CLI.
  • Watch what happens.

Note: Windows not supported yet.

License

This software is MIT-licensed. see LICENSE for more information

Readme

Keywords

none

Package Sidebar

Install

npm i vanillamake

Weekly Downloads

7

Version

1.1.1

License

MIT

Last publish

Collaborators

  • stephanmeijer