parent
b5ea1d8f68
commit
b3eb189ec3
|
@ -1,7 +1,7 @@
|
|||
// #docregion
|
||||
import {bootstrap} from 'angular2/platform/browser'
|
||||
import {bootstrap} from 'angular2/platform/browser';
|
||||
// #docregion app-component
|
||||
import {AppComponent} from './app.component'
|
||||
import {AppComponent} from './app.component';
|
||||
// #enddocregion app-component
|
||||
|
||||
bootstrap(AppComponent);
|
||||
|
|
|
@ -119,22 +119,20 @@ a(id="package-json")
|
|||
|
||||
Here's what these scripts do:
|
||||
|
||||
* `npm start` - run the compiler and a server at the same time, both in "watch mode"
|
||||
* `npm start` - runs the compiler and a server at the same time, both in "watch mode"
|
||||
|
||||
* `npm run tsc` - run the TypeScript compiler once
|
||||
* `npm run tsc` - runs the TypeScript compiler once
|
||||
|
||||
* `npm run tsc:w` - run the TypeScript compiler in watch mode;
|
||||
the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them.
|
||||
* `npm run tsc:w` - runs the TypeScript compiler in watch mode;
|
||||
the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them
|
||||
|
||||
* `npm run lite` - run the <a href="https://www.npmjs.com/package/lite-server" target="_blank">lite-server</a>,
|
||||
a light-weight, static file server, written and maintained by
|
||||
<a href="http://johnpapa.net/" target="_blank">John Papa</a>
|
||||
with excellent support for Angular apps that use routing.
|
||||
* `npm run lite` - runs the <a href="https://www.npmjs.com/package/lite-server" target="_blank">lite-server</a>,
|
||||
a light-weight, static file server with excellent support for Angular apps that use routing
|
||||
|
||||
* `npm run typings` - runs the [*typings* tool](#typings)
|
||||
|
||||
* `npm postinstall` - called by *npm* automatically *after* it successfully completes package installation.
|
||||
This script installs the [TypeScript definition files](#typings) this app requires.
|
||||
* `npm run postinstall` - called by *npm* automatically *after* it successfully completes package installation.
|
||||
This script installs the [TypeScript definition files](#typings) defined in `typings.json`
|
||||
|
||||
:marked
|
||||
**Install these packages** by entering the following *npm* command in a terminal window (command window in Windows):
|
||||
|
|
Loading…
Reference in New Issue