Browse files

Updating grunt

  • Loading branch information...
1 parent 662e96a commit b0fdfea93cd0c9b0c587baa4f604f064f8d6e913 @rogeriopvl committed Jul 13, 2013
Showing with 24 additions and 19 deletions.
  1. +17 −0 Gruntfile.js
  2. +0 −16 grunt.js
  3. +7 −3 package.json
View
17 Gruntfile.js
@@ -0,0 +1,17 @@
+module.exports = function(grunt){
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ jshint: {
+ all: ['Gruntfile.js', 'lib/*.js', 'bin/*', 'test/*.js']
+ },
+ nodeunit: {
+ all: ['test/*.js']
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-contrib-nodeunit');
+
+ grunt.registerTask('default', ['jshint', 'nodeunit']);
+ grunt.registerTask('test', ['nodeunit']);
+};
View
16 grunt.js
@@ -1,16 +0,0 @@
-module.exports = function(grunt){
- grunt.initConfig({
- lint: {
- all: ['grunt.js', 'lib/*', 'test/*.js', 'bin/*']
- },
- test: {
- files: ['test/*.js']
- }
- });
-
- grunt.registerTask('default', 'lint test');
-
- grunt.registerTask('example', 'just a custom example task', function(){
- // insert task code here
- });
-};
View
10 package.json
@@ -12,11 +12,14 @@
"url": "https://github.com/rogeriopvl/nodo"
},
"devDependencies": {
- "nodeunit": ">=0.7.4"
+ "nodeunit": "~0.8.1",
+ "grunt": "~0.4.1",
+ "grunt-contrib-jshint": "~0.6.0",
+ "grunt-contrib-nodeunit": "~0.2.0"
},
"dependencies": {
"colors": ">=0.6.0",
- "sqlite3": ">=2.1.5"
+ "sqlite3": "~2.1.12"
},
"engines": {
"node": ">=0.8.0"
@@ -30,7 +33,8 @@
"nodo-install": "./bin/nodo-install"
},
"scripts": {
- "install": "./bin/nodo-install"
+ "install": "./bin/nodo-install",
+ "test": "grunt test"
},
"licenses": [
{

0 comments on commit b0fdfea

Please sign in to comment.