fix: pr edits

This commit is contained in:
Ivan Shmidt
2020-05-18 19:50:45 +02:00
parent 860bf51728
commit 7dd484d4df
7 changed files with 7 additions and 138 deletions
+1
View File
@@ -83,6 +83,7 @@
"@types/diff": "^4.0.2",
"@types/fs-extra": "^8.1.0",
"@types/html-webpack-plugin": "^3.2.2",
"@types/http-proxy": "^1.17.4",
"@types/inquirer": "^6.5.0",
"@types/mini-css-extract-plugin": "^0.9.1",
"@types/node": "^13.7.2",
-6
View File
@@ -14,19 +14,13 @@
* limitations under the License.
*/
import fs from 'fs-extra';
import { Command } from 'commander';
import { serveBundle } from '../../lib/bundler';
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: 'src/index',
checksEnabled: cmd.check,
proxy: pkg.proxy,
});
await waitForExit();
+1 -7
View File
@@ -14,19 +14,13 @@
* limitations under the License.
*/
import fs from 'fs-extra';
import { serveBundle } from '../../lib/bundler';
import { Command } from 'commander';
import { paths } from '../../lib/paths';
import { serveBundle } from '../../lib/bundler';
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();
-2
View File
@@ -15,7 +15,6 @@
*/
import { BundlingPathsOptions } from './paths';
import { ProxyConfigMap } from 'webpack-dev-server';
export type BundlingOptions = {
checksEnabled: boolean;
@@ -24,7 +23,6 @@ export type BundlingOptions = {
export type ServeOptions = BundlingPathsOptions & {
checksEnabled: boolean;
proxy?: ProxyConfigMap;
};
export type BuildOptions = BundlingPathsOptions & {