Skip to content

Commit

Permalink
feat: Use Main project as a proxy for the CLI and scaffold a app wh…
Browse files Browse the repository at this point in the history
…en `npm start`
  • Loading branch information
emyann committed Nov 9, 2017
1 parent a1635e9 commit 8f8f31b
Show file tree
Hide file tree
Showing 3 changed files with 206 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Build results
dist/
typings/**/*
app/

# Others
~$*
Expand Down
202 changes: 202 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 3 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,8 @@
"description": "A damn simple starter for Typescript and Webpack",
"main": "src/index.ts",
"scripts": {
"start": "npm run server:dev",
"server": "npm run server:dev",
"server:dev": "webpack-dashboard -- webpack-dev-server --config ./packages/cli/template/webpack.config.js --inline --progress --watch --open",
"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/",
"build": "npm run build:dev",
"build:dev": "webpack --config ./packages/cli/template/webpack.config.js --progress --profile --color --display-error-details --display-cached",
"build:prod": "cross-env NODE_ENV=production webpack --config ./packages/cli/template/webpack.config.js --progress --profile --color --display-error-details --display-cached --bail",
"clean": "npm cache clear && rimraf -- dist",
"test": "karma start"
"start": "create-ts-lib app && cd app && npm start",
"test": "cd app && npm test"
},
"repository": {
"type": "git",
Expand All @@ -21,11 +14,6 @@
"author": "yrenaudin",
"license": "ISC",
"devDependencies": {
"eslint": "3.19.0",
"husky": "^0.13.2",
"lerna": "2.0.0-rc.5",
"lerna-changelog": "^0.2.3",
"lint-staged": "^3.3.1",
"prettier": "^1.5.2"
"create-ts-lib": "^0.0.8"
}
}

0 comments on commit 8f8f31b

Please sign in to comment.