fix(build): add make target for watch mode
This commit is contained in:
parent
3c001a985f
commit
3dde3b9237
|
@ -55,3 +55,6 @@ lint: deps
|
|||
|
||||
test: build
|
||||
MOCHA_FILE=out/test-results.xml yarn c8 $(COVER_OPTS) mocha $(MOCHA_OPTS) "out/**/Test*.js"
|
||||
|
||||
watch: deps
|
||||
WATCH=TRUE make ci
|
||||
|
|
|
@ -3,8 +3,14 @@ import { join } from 'path';
|
|||
import alias from 'esbuild-plugin-alias';
|
||||
import { copy } from 'esbuild-plugin-copy';
|
||||
|
||||
const debug = process.env['DEBUG'] === 'TRUE';
|
||||
const watch = process.env['WATCH'] === 'TRUE';
|
||||
function envTrue(key) {
|
||||
const val = (process.env[key] || '').toLowerCase();
|
||||
return val == '1' || val == 't' || val == 'true' || val == 'y' || val == 'yes';
|
||||
|
||||
}
|
||||
|
||||
const debug = envTrue('DEBUG');
|
||||
const watch = envTrue('WATCH');
|
||||
const root = process.cwd();
|
||||
|
||||
const plugins = [];
|
||||
|
|
Loading…
Reference in New Issue