mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
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:
+3
-3
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user