Skip to content

Commit

Permalink
fix(build): split the gruntfile to enable running the build separately
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Jun 15, 2019
1 parent 9fff65b commit c487b18
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 6 deletions.
23 changes: 18 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,27 @@ module.exports = function(grunt) {
'mochaTest',
]);

grunt.registerTask('default', [
'dev',
'clean',
'browserify',
'uglify',
grunt.registerTask('test', [
'jshint',
'mochaTest',
]);

grunt.registerTask('test-browser', [
'start-test-server',
'mocha',
'stop-test-server',
]);

grunt.registerTask('build', [
'clean',
'browserify',
'uglify'
]);

grunt.registerTask('default', [
'test',
'build',
'test-browser'
]);
};
/* jshint +W106 */
96 changes: 96 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"scripts": {
"test": "grunt",
"mocha": "mocha",
"build": "grunt"
"build": "grunt build",
"prepack": "run-s build"
},
"config": {
"commitizen": {
Expand Down Expand Up @@ -101,6 +102,7 @@
"husky": "^2.4.1",
"load-grunt-tasks": "^5.0.0",
"mocha": "^6.1.4",
"npm-run-all": "^4.1.5",
"poll-forever": "^1.0.0",
"proxyquire": "^2.1.0",
"proxyquire-universal": "^2.1.0",
Expand Down

0 comments on commit c487b18

Please sign in to comment.