0.0.16-alpha • Published 6 years ago
creatartis-grunt v0.0.16-alpha
creatartis-grunt.js
Grunt build setup for creatartis' projects. Includes source code concatenation, linting, minimization, running test cases in browsers and documentation generation.
The Gruntfile
can be abbreviated to something like this:
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
});
require('creatartis-grunt').config(grunt, {
src: [
'src/__prologue__.js',
/* ... source files ... */
'src/__epilogue__.js'
],
deps: [
{ name: 'dependency',
path: 'node_modules/dependency/build/dependency.js'
},
/* ... more dependencies ... */
]
});
grunt.registerTask('default', ['build']);
};
Copyright 2017 - Leonardo Val