[ACA-3821] Add lite-serve with VSCode launcher (#1584)

* Add lite-serve with VSCode launcher

* Make lite-serve smarter to work with Basic authtype as well

* Change and unify app-config-replace script
This commit is contained in:
Popovics András
2020-08-08 13:12:47 +02:00
committed by GitHub
parent d7e61e8fcb
commit 32502e60b9
19 changed files with 973 additions and 213 deletions

20
scripts/run Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env node
const path = require('path');
const tsConfigPath = path.resolve(__dirname, 'tsconfig.json');
const tsConfig = require(tsConfigPath);
require('ts-node').register({ project: tsConfigPath });
require('tsconfig-paths').register({
project: tsConfigPath,
baseUrl: path.resolve(__dirname),
paths: tsConfig.compilerOptions.paths
});
const handlerParam = process.argv[2];
const RunnerClass = require(`./npm/${handlerParam}.ts`).default;
const runnerArgs = [ ...process.argv ];
runnerArgs.splice(2, 1);
const runner = new RunnerClass(runnerArgs);
runner.run();