diff --git a/example/package.json b/example/package.json index 8f23869..26e0d7a 100644 --- a/example/package.json +++ b/example/package.json @@ -10,11 +10,11 @@ "extends": "./stylelint.json" }, "scripts": { + "clean": "rm -rf dist", "start": "webpack-dev-server --open --inline --config config/webpack-server-jit.config.js", - "clean": "rm -rf dist node_modules", "lint": "npm run lint:ts && npm run lint:css", "build": "rm -rf dist/* && npm run build:aot", - "deploy": "rm -rf dist && deploy-to-git", + "deploy": "npm run clean && deploy-to-git", "lint:ts": "tslint -p src/tsconfig.json \"src/**/*.ts\"", "lint:css": "stylelint --syntax css \"src/**/*.css\"", "start:sjs": "lite-server -c config/lite-server-bs-config.js", diff --git a/package.json b/package.json index 9cc4c49..1ff277c 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,13 @@ "extends": "./stylelint.json" }, "scripts": { + "clean": "rm -rf dist bundles", "start": "npm run build && npm run bundle", - "watch": "watch 'npm run start' src/", - "clean": "rm -rf dist bundles node_modules", + "watch": "watch --wait=5 'npm run start' src/", "lint": "npm run lint:ts && npm run lint:scss", "build": "npm run build:html && npm run build:css && npm run build:js", "bundle": "npm run bundle:es5 ; npm run bundle:umd ; npm run minify:umd", - "prepare": "npm run build && npm run bundle", + "prepare": "npm run clean && npm run build && npm run bundle", "lint:ts": "tslint -p src/tsconfig.json \"src/**/*.ts\"", "lint:scss": "stylelint --syntax scss \"src/**/*.scss\"", "build:js": "ngc -p src/tsconfig.json && ngi -c -s dist/",