vanillamake

Makefiles in Javascript made easy.

Usage no npm install needed!

<script type="module">
  import vanillamake from 'https://cdn.skypack.dev/vanillamake';
</script>

README

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