0.0.16-beta • Published 5 years ago

@creatartis/creatartis-grunt v0.0.16-beta

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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