feat: settings -> dialog

This commit is contained in:
Ivan Shmidt
2020-05-18 17:59:12 +02:00
parent 4ec6890b11
commit 0a592af4de
8 changed files with 118 additions and 72 deletions
@@ -14,13 +14,19 @@
* limitations under the License.
*/
import fs from 'fs-extra';
import { serveBundle } from '../../lib/bundler';
import { Command } from 'commander';
import { paths } from '../../lib/paths';
export default async (cmd: Command) => {
const pkgPath = paths.resolveTarget('package.json');
const pkg = await fs.readJson(pkgPath);
const waitForExit = await serveBundle({
entry: 'dev/index',
checksEnabled: cmd.check,
proxy: pkg.proxy,
});
await waitForExit();