Skip to content

Commit 8f8f31b

Browse files
committed
feat: Use Main project as a proxy for the CLI and scaffold a app when npm start
1 parent a1635e9 commit 8f8f31b

File tree

3 files changed

+206
-15
lines changed

3 files changed

+206
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Build results
22
dist/
33
typings/**/*
4+
app/
45

56
# Others
67
~$*

package-lock.json

Lines changed: 202 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,8 @@
44
"description": "A damn simple starter for Typescript and Webpack",
55
"main": "src/index.ts",
66
"scripts": {
7-
"start": "npm run server:dev",
8-
"server": "npm run server:dev",
9-
"server:dev": "webpack-dashboard -- webpack-dev-server --config ./packages/cli/template/webpack.config.js --inline --progress --watch --open",
10-
"server:prod": "cross-env NODE_ENV=production webpack-dashboard -- webpack-dev-server --config ./packages/cli/template/webpack.config.js --port 3000 --host 0.0.0.0 --hot --inline --progress --profile --watch --open --content-base dist/",
11-
"build": "npm run build:dev",
12-
"build:dev": "webpack --config ./packages/cli/template/webpack.config.js --progress --profile --color --display-error-details --display-cached",
13-
"build:prod": "cross-env NODE_ENV=production webpack --config ./packages/cli/template/webpack.config.js --progress --profile --color --display-error-details --display-cached --bail",
14-
"clean": "npm cache clear && rimraf -- dist",
15-
"test": "karma start"
7+
"start": "create-ts-lib app && cd app && npm start",
8+
"test": "cd app && npm test"
169
},
1710
"repository": {
1811
"type": "git",
@@ -21,11 +14,6 @@
2114
"author": "yrenaudin",
2215
"license": "ISC",
2316
"devDependencies": {
24-
"eslint": "3.19.0",
25-
"husky": "^0.13.2",
26-
"lerna": "2.0.0-rc.5",
27-
"lerna-changelog": "^0.2.3",
28-
"lint-staged": "^3.3.1",
29-
"prettier": "^1.5.2"
17+
"create-ts-lib": "^0.0.8"
3018
}
3119
}

0 commit comments

Comments
 (0)