@creatartis/creatartis-grunt

0.0.16-beta • Public • Published

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

Dependencies (19)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @creatartis/creatartis-grunt

    Weekly Downloads

    1

    Version

    0.0.16-beta

    License

    MIT

    Unpacked Size

    143 kB

    Total Files

    6

    Last publish

    Collaborators

    • leonardo.val