From 91c282b91527a0059cbe7442069e317976a868a0 Mon Sep 17 00:00:00 2001 From: Nathan Kunicki Date: Fri, 4 Mar 2016 11:39:24 -0500 Subject: [PATCH] No longer commit builds, instead build on postinstall --- .gitignore | 4 +++- gulpfile.js | 8 ++++++-- package.json | 2 ++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 84a398b..c1095c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .idea/ .DS_Store -node_modules/ \ No newline at end of file +node_modules/ +dist/ +examples/*/dist/ diff --git a/gulpfile.js b/gulpfile.js index 43c593e..a0c49b4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -124,7 +124,7 @@ examples.forEach((example) => { gulp.task("examples", examples.map((example) => { return `${example}-example`; })); -gulp.task("build", (callback) => { +gulp.task("engine", (callback) => { build({ entry: { "es5": path.join(__dirname, "src", "es5.js") @@ -133,4 +133,8 @@ gulp.task("build", (callback) => { watch: watch, minify: minify }, callback); -}); \ No newline at end of file +}); + + +gulp.task("build", ["engine", "examples"]); +gulp.task("default", ["build"]); \ No newline at end of file diff --git a/package.json b/package.json index bebcb7d..f298d82 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,8 @@ "description": "An ES6 game and animation engine.", "main": "src/es6.js", "scripts": { + "postinstall": "gulp build", + "build": "gulp build", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Nathan Kunicki ",