File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,14 @@ git clone https://github.com/emyann/typescript-webpack-starter.git
14
14
cd typescript-webpack-starter
15
15
```
16
16
17
- ## Build
17
+ ## Run
18
+ Run a Webpack dev server
19
+ ``` bash
20
+ npm install
21
+ npm run server
22
+ ```
23
+
24
+ ## Build Only
18
25
Build a development release
19
26
``` bash
20
27
npm install
@@ -26,14 +33,14 @@ Build a production release
26
33
npm install
27
34
npm run build:prod
28
35
```
29
- After build phase, those files are generated into the ` dist ` folder:
36
+ After build phase, 3 files are generated into the ` dist ` folder:
30
37
- ` app.bundle.js ` - contains the core of the application. From the entry point ` src/index.ts `
31
38
- ` vendor.bundle.js ` - contains the vendor dependencies
39
+ - ` index.html ` - html page with references to the 2 files above
32
40
33
41
## TODO
34
42
35
- - [ -] Add samples (Jquery integration for example..)
36
- - [ -] Setup a webpack-dev-server
37
- - [ -] Setup VSCode debug to match webpack-dev-server
38
- - [ -] Setup a webpack common configuration and use webpack-merge
39
- - [ -] Setup for tests
43
+ - [ _ ] Add TODO example
44
+ - [ _ ] Setup VSCode debug to match webpack-dev-server
45
+ - [ _ ] Setup a webpack common configuration and use webpack-merge
46
+ - [ _ ] Setup unit tests
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"rimraf" : " rimraf" ,
8
8
"webpack" : " webpack" ,
9
+ "webpack-dev-server" : " webpack-dev-server" ,
9
10
"build" : " npm run build:dev" ,
10
11
"prebuild:dev" : " npm run rimraf -- dist" ,
11
12
"build:dev" : " webpack --config config/webpack/webpack.dev.js --progress --profile --color --display-error-details --display-cached" ,
12
13
"prebuild:prod" : " npm run rimraf -- dist" ,
13
14
"build:prod" : " webpack --config config/webpack/webpack.prod.js --progress --profile --color --display-error-details --display-cached --bail" ,
15
+ "server" : " npm run server:dev" ,
16
+ "server:dev" : " webpack-dev-server --config config/webpack/webpack.dev.js --port 3000 --host 0.0.0.0 --hot --progress --profile --watch --inline --content-base dist/" ,
14
17
"test" : " echo \" Error: no test specified\" && exit 1" ,
15
18
"postinstall" : " typings i"
16
19
},
You can’t perform that action at this time.
0 commit comments