Skip to content

Commit

Permalink
Enables npm test command.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgorbatchev committed Nov 22, 2013
1 parent abcb3f8 commit 1ed2fca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
4 changes: 3 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-karma');

grunt.registerTask('test', ['karma']);

grunt.registerTask('default', [
'karma',
'test',
'uglify'
]);
};
34 changes: 19 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
{
"name": "ngStorage",
"version": "0.3.0",
"private": true,
"author": "Gias Kay Lee",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/gsklee/ngStorage/blob/master/LICENSE"
}
],
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.2.4",
"grunt-karma": "~0.7.1",
"karma-mocha": "~0.1.0"
"name": "ngStorage",
"version": "0.3.0",
"private": true,
"author": "Gias Kay Lee",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/gsklee/ngStorage/blob/master/LICENSE"
}
],
"scripts": {
"test": "./node_modules/.bin/grunt test"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.2.4",
"grunt-karma": "~0.7.1",
"karma-mocha": "~0.1.0",
"grunt-cli": "~0.1.11"
}
}

0 comments on commit 1ed2fca

Please sign in to comment.