No longer commit builds, instead build on postinstall
This commit is contained in:
parent
1da427f168
commit
91c282b915
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
.idea/
|
.idea/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules/
|
node_modules/
|
||||||
|
dist/
|
||||||
|
examples/*/dist/
|
||||||
|
@ -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"]);
|
@ -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>",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user