mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-10 21:36:34 +01:00
update Grunt version
This commit is contained in:
parent
b98ae8ab1d
commit
19fb3ba512
@ -1,16 +1,20 @@
|
||||
module.exports = function (grunt) {
|
||||
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
|
||||
|
||||
grunt.initConfig({
|
||||
coffee: {
|
||||
lib: {
|
||||
src: ['build/morris.coffee'],
|
||||
dest: '.',
|
||||
options: { bare: false }
|
||||
options: { bare: false },
|
||||
files: {
|
||||
'morris.js': ['build/morris.coffee']
|
||||
}
|
||||
},
|
||||
spec: {
|
||||
src: ['build/spec.coffee'],
|
||||
dest: 'build',
|
||||
options: { bare: true }
|
||||
}
|
||||
options: { bare: true },
|
||||
files: {
|
||||
'build/spec.js': ['build/spec.coffee']
|
||||
}
|
||||
},
|
||||
},
|
||||
concat: {
|
||||
'build/morris.coffee': [
|
||||
@ -33,24 +37,26 @@ module.exports = function (grunt) {
|
||||
}
|
||||
}
|
||||
},
|
||||
min: {
|
||||
'morris.min.js': 'morris.js'
|
||||
},
|
||||
mocha: {
|
||||
spec: {
|
||||
src: 'spec/specs.html',
|
||||
run: true
|
||||
uglify: {
|
||||
build: {
|
||||
files: {
|
||||
'morris.min.js': 'morris.js'
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
mocha: {
|
||||
index: ['spec/specs.html'],
|
||||
options: {run: true}
|
||||
},
|
||||
npm: {
|
||||
files: ['lib/**/*.coffee', 'spec/lib/**/*.coffee', 'spec/support/**/*.coffee', 'less/**/*.less'],
|
||||
tasks: 'default'
|
||||
},
|
||||
watch: {
|
||||
files: 'lib/*.coffee' ,
|
||||
tasks: ['concat:build/morris.coffee', 'coffee:lib']
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-coffee');
|
||||
grunt.loadNpmTasks('grunt-mocha');
|
||||
grunt.loadNpmTasks('grunt-contrib-less');
|
||||
|
||||
grunt.registerTask('default', 'concat coffee less min mocha');
|
||||
grunt.registerTask('default', ['concat', 'coffee', 'less', 'uglify', 'mocha']);
|
||||
};
|
11
package.json
11
package.json
@ -15,10 +15,13 @@
|
||||
"url": "https://github.com/oesmith/morris.js/issues"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt-coffee": "~> 0.0.6",
|
||||
"grunt-mocha": "~> 0.1.7",
|
||||
"grunt-contrib-less": "~> 0.3.2",
|
||||
"grunt": "~> 0.3.17"
|
||||
"grunt": "~0.4.1",
|
||||
"grunt-mocha": "~0.4.1",
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-contrib-coffee": "~0.7.0",
|
||||
"grunt-contrib-uglify": "~0.2.4",
|
||||
"grunt-contrib-less": "~0.7.0",
|
||||
"grunt-contrib-watch": "~0.5.3"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "./node_modules/.bin/grunt coffee mocha"
|
||||
|
Loading…
Reference in New Issue
Block a user