updating gruntfile & travis install & npm test command

This commit is contained in:
sudodoki 2013-09-25 09:27:24 +03:00
parent b98ae8ab1d
commit 5c17052bb5
3 changed files with 10 additions and 10 deletions

View File

@ -2,5 +2,5 @@ language: node_js
node_js:
- 0.8
before_script:
- "npm install -g grunt"
- "npm install -g grunt-cli"
- "npm install"

View File

@ -1,4 +1,6 @@
module.exports = function (grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
coffee: {
lib: {
@ -42,15 +44,11 @@ module.exports = function (grunt) {
run: true
}
},
watch: {
npm: {
files: ['lib/**/*.coffee', 'spec/lib/**/*.coffee', 'spec/support/**/*.coffee', 'less/**/*.less'],
tasks: 'default'
}
});
grunt.loadNpmTasks('grunt-coffee');
grunt.loadNpmTasks('grunt-mocha');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.registerTask('default', 'concat coffee less min mocha');
};

View File

@ -15,12 +15,14 @@
"url": "https://github.com/oesmith/morris.js/issues"
},
"devDependencies": {
"grunt-coffee": "~> 0.0.6",
"grunt-mocha": "~> 0.1.7",
"grunt": "~0.4.1",
"grunt-mocha": "~0.4.1",
"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": {
"test": "./node_modules/.bin/grunt coffee mocha"
"test": "grunt coffee mocha"
}
}