parent
b2b4d3b8c9
commit
dc1c054927
|
@ -9,7 +9,7 @@
|
||||||
"lite": "lite-server",
|
"lite": "lite-server",
|
||||||
"live": "live-server",
|
"live": "live-server",
|
||||||
"start": "npm run lite",
|
"start": "npm run lite",
|
||||||
"both": "concurrent \"npm run tsc:w\" \"npm run start\" ",
|
"go": "concurrent \"npm run tsc:w\" \"npm run start\" ",
|
||||||
"test": "karma start karma.conf.js",
|
"test": "karma start karma.conf.js",
|
||||||
"build-and-test": "npm run tsc && npm run test"
|
"build-and-test": "npm run tsc && npm run test"
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"tsc:w": "tsc -w",
|
"tsc:w": "tsc -w",
|
||||||
"lite": "lite-server",
|
"lite": "lite-server",
|
||||||
"both": "concurrent \"npm run tsc:w\" \"npm run lite\" "
|
"go": "concurrent \"npm run tsc:w\" \"npm run lite\" "
|
||||||
},
|
},
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -77,7 +77,7 @@ figure.image-display
|
||||||
We're ready to see changes in a running app by firing up the npm script that both compiles and serves our applications
|
We're ready to see changes in a running app by firing up the npm script that both compiles and serves our applications
|
||||||
while watching for changes.
|
while watching for changes.
|
||||||
code-example(format="").
|
code-example(format="").
|
||||||
npm run both
|
npm run go
|
||||||
:marked
|
:marked
|
||||||
We should see the title and hero name:
|
We should see the title and hero name:
|
||||||
figure.image-display
|
figure.image-display
|
||||||
|
|
|
@ -259,7 +259,7 @@ code-example(format="").
|
||||||
|
|
||||||
Open a terminal window and enter this command:
|
Open a terminal window and enter this command:
|
||||||
code-example(format="").
|
code-example(format="").
|
||||||
npm run both
|
npm run go
|
||||||
:marked
|
:marked
|
||||||
That command runs two parallel node processes
|
That command runs two parallel node processes
|
||||||
1. The TypeScript compiler in watch mode
|
1. The TypeScript compiler in watch mode
|
||||||
|
@ -374,7 +374,7 @@ code-example(format="").
|
||||||
:marked
|
:marked
|
||||||
We've seen how we can run the compiler and a server at the same time with this command:
|
We've seen how we can run the compiler and a server at the same time with this command:
|
||||||
code-example(format="").
|
code-example(format="").
|
||||||
npm run both
|
npm run go
|
||||||
:marked
|
:marked
|
||||||
We execute npm scripts in that manner: `npm run` + *script-name*. Here's what these scripts do:
|
We execute npm scripts in that manner: `npm run` + *script-name*. Here's what these scripts do:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue