Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
Added 'grunt fast' for quickly compiling and testing (skips docs & mi…
Browse files Browse the repository at this point in the history
…nified output)
  • Loading branch information
IjzerenHein committed Jul 30, 2015
1 parent 3e99086 commit 583986d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ module.exports = function(grunt) {
exec: {
'bundle-es6': 'node ./build/bundle-es6',
'dist': 'node ./build/dist',
'dist-fast': 'node ./build/dist --fast',
test: 'mocha',
bench: 'node bench/main.js'
}
Expand All @@ -75,4 +76,5 @@ module.exports = function(grunt) {
grunt.registerTask('bench', ['exec:bench']);
grunt.registerTask('dist', ['parser', 'exec:bundle-es6', 'exec:dist']);
grunt.registerTask('default', ['lint', 'doc', 'dist', 'test']);
grunt.registerTask('fast', ['lint', 'parser', 'exec:bundle-es6', 'exec:dist-fast', 'test']);
};
7 changes: 5 additions & 2 deletions build/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var browserify = require('browserify');
var babelify = require('babelify');
var envify = require('envify/custom');
var CombinedStream = require('combined-stream');
var argv = require('minimist')(process.argv.slice(2));

var packageJSON = JSON.parse(fs.readFileSync('./package.json'));

Expand Down Expand Up @@ -76,6 +77,8 @@ function dist(kiwi, minify) {
}).pipe(output);
}
dist(false, false);
dist(false, true);
dist(true, false);
if (!argv.fast) {
dist(false, true);
dist(true, false);
}
//dist(true, true);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"grunt-peg": "^1.5.0",
"lodash": "^3.9.3",
"minifyify": "^7.0.2",
"minimist": "^1.1.2",
"mocha": "^2.2.5",
"platform": "^1.3.0"
},
Expand Down

0 comments on commit 583986d

Please sign in to comment.