Skip to content

Commit

Permalink
Added test task for grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
gabceb committed Nov 15, 2013
1 parent 8e27c98 commit e56acec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Gruntfile.js
Expand Up @@ -27,12 +27,21 @@ module.exports = function(grunt) {
src: "dist/<%= pkg.name %>.js",
dest: "test/src/<%= pkg.name %>.js"
}
},
exec: {
test: {
command: "casperjs test test/test.js",
stdout: true,
stderr: true
}
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-exec');

grunt.registerTask('default', ['jshint', 'uglify', 'copy']);
grunt.registerTask('test', ['exec']);
};
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -13,7 +13,8 @@
"grunt": "~0.4.0",
"grunt-contrib-jshint": "~0.1.1",
"grunt-contrib-uglify": "~0.2.7",
"grunt-contrib-copy": "~0.4.1"
"grunt-contrib-copy": "~0.4.1",
"grunt-exec": "~0.4.2"
},
"license": "MIT",
"engines": {
Expand Down

0 comments on commit e56acec

Please sign in to comment.