forked from pattern-lab/patternlab-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
41 lines (36 loc) · 1.36 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = function (grunt) {
/******************************
* Project configuration.
* Should only be needed if you are developing against core, running tests, linting and want to run tests or increment package numbers
*****************************/
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
stripBanners: true,
banner: '/* \n * <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy") %> \n * \n * <%= pkg.author.name %>, <%= pkg.contributors[0].name %>, and the web community.\n * Licensed under the <%= pkg.license %> license. \n * \n * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice. \n *\n */\n\n',
},
patternlab: {
src: './core/lib/patternlab.js',
dest: './core/lib/patternlab.js'
}
},
nodeunit: {
all: ['test/*_tests.js']
},
eslint: {
options: {
configFile: './.eslintrc'
},
target: ['./core/lib/*']
}
});
// load all grunt tasks
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
//travis CI task
grunt.registerTask('travis', ['nodeunit', 'eslint']);
//to be run prior to releasing a version
grunt.registerTask('build', ['nodeunit', 'eslint', 'concat']);
};