No longer commit builds, instead build on postinstall

This commit is contained in:
Nathan Kunicki 2016-03-04 11:39:24 -05:00
parent 1da427f168
commit 91c282b915
3 changed files with 11 additions and 3 deletions

4
.gitignore vendored
View File

@ -1,3 +1,5 @@
.idea/ .idea/
.DS_Store .DS_Store
node_modules/ node_modules/
dist/
examples/*/dist/

View File

@ -124,7 +124,7 @@ examples.forEach((example) => {
gulp.task("examples", examples.map((example) => { return `${example}-example`; })); gulp.task("examples", examples.map((example) => { return `${example}-example`; }));
gulp.task("build", (callback) => { gulp.task("engine", (callback) => {
build({ build({
entry: { entry: {
"es5": path.join(__dirname, "src", "es5.js") "es5": path.join(__dirname, "src", "es5.js")
@ -133,4 +133,8 @@ gulp.task("build", (callback) => {
watch: watch, watch: watch,
minify: minify minify: minify
}, callback); }, callback);
}); });
gulp.task("build", ["engine", "examples"]);
gulp.task("default", ["build"]);

View File

@ -4,6 +4,8 @@
"description": "An ES6 game and animation engine.", "description": "An ES6 game and animation engine.",
"main": "src/es6.js", "main": "src/es6.js",
"scripts": { "scripts": {
"postinstall": "gulp build",
"build": "gulp build",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "Nathan Kunicki <me@nathankunicki.com>", "author": "Nathan Kunicki <me@nathankunicki.com>",