Skip to content

Commit

Permalink
update gruntfile packages
Browse files Browse the repository at this point in the history
  • Loading branch information
thanpolas committed May 13, 2013
1 parent 9a00fa8 commit fa4ea3f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
23 changes: 16 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
module.exports = function( grunt ) {
'use strict';

grunt.loadNpmTasks('mantri');
grunt.loadNpmTasks('grunt-contrib-connect');
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);


//
// Grunt configuration:
Expand Down Expand Up @@ -54,18 +55,26 @@ module.exports = function( grunt ) {
keepalive: true
}
}
}

},
open: {
server: {
path: 'http://localhost:<%= connect.todoApp.options.port %>'
}
},

});
})

// Create shortcuts to main operations.
grunt.registerTask('deps', ['mantriDeps:todoApp']);
grunt.registerTask('build', ['mantriBuild:todoApp']);
grunt.registerTask('server', ['connect:todoApp']);
grunt.registerTask('server', [
'open:server',
'connect:todoApp'

]);

// the default task, when 'grunt' is executed with no options.
grunt.registerTask('default', ['test']);
grunt.registerTask('default', 'server');

};

9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@
"scripts": {
"test": "grunt test"
},
"dependencies": {},
"dependencies": {
},
"devDependencies": {
"grunt-contrib-watch": "0.2.0",
"grunt": "0.4.0",
"grunt": "~0.4.1",
"grunt-open": "~0.2.0",
"grunt-contrib-connect": "~0.1.2",
"mantri": "~0.1.1"
"mantri": "~0.1.1",
"matchdep": "~0.1.2"
},
"keywords": [
"dependencies",
Expand Down

0 comments on commit fa4ea3f

Please sign in to comment.