Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 1 KB

README.md

File metadata and controls

34 lines (30 loc) · 1 KB

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