mirror of
https://github.com/morrisjs/morris.js.git
synced 2024-11-14 07:41:11 +01:00
updating gruntfile & travis install & npm test command
This commit is contained in:
parent
b98ae8ab1d
commit
5c17052bb5
3 changed files with 10 additions and 10 deletions
|
@ -2,5 +2,5 @@ language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- 0.8
|
- 0.8
|
||||||
before_script:
|
before_script:
|
||||||
- "npm install -g grunt"
|
- "npm install -g grunt-cli"
|
||||||
- "npm install"
|
- "npm install"
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
module.exports = function (grunt) {
|
module.exports = function (grunt) {
|
||||||
|
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
|
||||||
|
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
coffee: {
|
coffee: {
|
||||||
lib: {
|
lib: {
|
||||||
|
@ -42,15 +44,11 @@ module.exports = function (grunt) {
|
||||||
run: true
|
run: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
npm: {
|
||||||
files: ['lib/**/*.coffee', 'spec/lib/**/*.coffee', 'spec/support/**/*.coffee', 'less/**/*.less'],
|
files: ['lib/**/*.coffee', 'spec/lib/**/*.coffee', 'spec/support/**/*.coffee', 'less/**/*.less'],
|
||||||
tasks: 'default'
|
tasks: 'default'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
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 min mocha');
|
||||||
};
|
};
|
10
package.json
10
package.json
|
@ -15,12 +15,14 @@
|
||||||
"url": "https://github.com/oesmith/morris.js/issues"
|
"url": "https://github.com/oesmith/morris.js/issues"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt-coffee": "~> 0.0.6",
|
"grunt": "~0.4.1",
|
||||||
"grunt-mocha": "~> 0.1.7",
|
"grunt-mocha": "~0.4.1",
|
||||||
"grunt-contrib-less": "~> 0.3.2",
|
"grunt-contrib-less": "~> 0.3.2",
|
||||||
"grunt": "~> 0.3.17"
|
"grunt-contrib-concat": "~0.3.0",
|
||||||
|
"grunt-coffee": "0.0.6",
|
||||||
|
"matchdep": "~0.1.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./node_modules/.bin/grunt coffee mocha"
|
"test": "grunt coffee mocha"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue