Skip to content

Commit

Permalink
完成压缩打包。
Browse files Browse the repository at this point in the history
  • Loading branch information
oldj committed Sep 6, 2015
1 parent 0c9baf3 commit cb2cf54
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
4 changes: 3 additions & 1 deletion build/td-pkg-min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions build/td-pkg-min.js.map

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ var uglify = require("gulp-uglify");
var browserify = require("gulp-browserify");
var concat = require("gulp-concat");
var sourcemaps = require("gulp-sourcemaps");
var args = require("yargs").argv;

var IS_DEBUG = !!args.debug;
console.log("IS_DEBUG: ", IS_DEBUG);
console.log("--------------------");

gulp.task("scripts", function () {
gulp.src([
Expand Down Expand Up @@ -41,7 +46,7 @@ gulp.task("scripts", function () {
});

gulp.task("default", function () {
gulp.start("srcipt");
gulp.start("scripts");
gulp.watch([
"src/**/*.js"
], [
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
},
"homepage": "https://github.com/oldj/html5-tower-defense#readme",
"devDependencies": {
"gulp": "^3.9.0",
"gulp-browserify": "^0.5.1",
"gulp-concat": "^2.6.0",
"gulp": "~3.9.0",
"gulp-browserify": "~0.5.1",
"gulp-concat": "~2.6.0",
"gulp-sourcemaps": "^1.5.2",
"gulp-uglify": "^1.4.0"
"gulp-uglify": "~1.4.0",
"yargs": "^3.24.0"
}
}

0 comments on commit cb2cf54

Please sign in to comment.