Project sanity check (#76)

* tslint: CRLF -> LF

* gitignore more build artifacts

* Add proposed .editorconfig

* Allow for "clean" builds

src/ts/generated/ content is still required (sprites.ts,
gamepad-mappings.ts), but src/scripts is not.

* Add --sprites option to production build

* Add note about sprites to README
This commit is contained in:
Eliot Partridge
2019-09-06 20:32:10 -05:00
committed by GitHub
parent a761dfaa8e
commit c8472f5c65
21 changed files with 200 additions and 1099 deletions
+3 -3
View File
@@ -44,7 +44,6 @@ const readFile = src => fs.readFileSync(src, { encoding: 'utf-8' });
const lintCode = code => (code.trim() + '\n')
.replace(/\r\n/g, '\n')
.replace(/\n/g, '\r\n')
.replace(/ /g, '\t')
.replace(/"/g, "'");
@@ -323,9 +322,10 @@ const setProd = cb => {
};
const empty = cb => cb();
const spritesTask = argv.sprites ? sprites : empty;
const tsTools = npmScript('ts-tools');
const spritesTask = argv.sprites ? gulp.series(tsTools, sprites) : empty;
const build = gulp.series(clean, setProd, common, ts, webpackProd, sw, size);
const build = gulp.series(clean, setProd, common, spritesTask, ts, webpackProd, sw, size);
const admin = gulp.series(clearnAdmin, setProd, sassAdmin, ts, webpackAdmin);
const dev = gulp.series(clean, spritesTask, common, gulp.parallel(serverDev, watch, watchTools));