docs(*): `npm run go` -> `npm start` (TS only)

closes #559
Convert npm script command from npm run go to npm start ...
because that's the way it should have been for TypeScript files.
This commit is contained in:
Ward Bell 2015-12-16 08:16:16 -08:00
parent 199bf26b0f
commit 4fda2c7854
8 changed files with 9 additions and 10 deletions

View File

@ -8,8 +8,7 @@
"tsc:w": "tsc -w", "tsc:w": "tsc -w",
"lite": "lite-server", "lite": "lite-server",
"live": "live-server", "live": "live-server",
"start": "npm run lite", "start": "concurrent \"npm run tsc:w\" \"npm run lite\" ",
"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"
}, },

View File

@ -5,7 +5,7 @@
"tsc": "tsc", "tsc": "tsc",
"tsc:w": "tsc -w", "tsc:w": "tsc -w",
"lite": "lite-server", "lite": "lite-server",
"go": "concurrent \"npm run tsc:w\" \"npm run lite\" " "start": "concurrent \"npm run tsc:w\" \"npm run lite\" "
}, },
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {

View File

@ -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 go npm start
:marked :marked
We should see the title and hero name: We should see the title and hero name:
figure.image-display figure.image-display

View File

@ -258,7 +258,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 go npm start
: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
@ -389,7 +389,7 @@ code-example(language="html" 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 go npm start
: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:

View File

@ -26,7 +26,7 @@ code-example(format="").
We want to start the TypeScript compiler, have it watch for changes, and start our server. We'll do this by typing We want to start the TypeScript compiler, have it watch for changes, and start our server. We'll do this by typing
code-example(format="" language="bash"). code-example(format="" language="bash").
npm run go npm start
:marked :marked
This command starts the server, launches the app in a browser, This command starts the server, launches the app in a browser,

View File

@ -32,7 +32,7 @@ code-example(format="").
We want to start the TypeScript compiler, have it watch for changes, and start our server. We'll do this by typing We want to start the TypeScript compiler, have it watch for changes, and start our server. We'll do this by typing
code-example(format="." language="bash"). code-example(format="." language="bash").
npm run go npm start
:marked :marked
This will keep the application running while we continue to build the Tour of Heroes. This will keep the application running while we continue to build the Tour of Heroes.

View File

@ -25,7 +25,7 @@ include ../../../../_includes/_util-fns
We want to start the TypeScript compiler, have it watch for changes, and start our server. We'll do this by typing We want to start the TypeScript compiler, have it watch for changes, and start our server. We'll do this by typing
code-example(format="." language="bash"). code-example(format="." language="bash").
npm run go npm start
:marked :marked
This will keep the application running while we continue to build the Tour of Heroes. This will keep the application running while we continue to build the Tour of Heroes.

View File

@ -30,7 +30,7 @@ include ../../../../_includes/_util-fns
We want to start the TypeScript compiler, have it watch for changes, and start our server. We'll do this by typing We want to start the TypeScript compiler, have it watch for changes, and start our server. We'll do this by typing
code-example(format="." language="bash"). code-example(format="." language="bash").
npm run go npm start
:marked :marked
## Flying Overhead ## Flying Overhead