parent
8abb7085d5
commit
8dbb31de9f
@ -12,7 +12,7 @@
|
|||||||
"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",
|
||||||
"http-server": "tsc && http-server",
|
"http-server": "tsc && http-server",
|
||||||
"typings" : "typings",
|
"typings": "typings",
|
||||||
"postinstall": "typings install"
|
"postinstall": "typings install"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
@ -44,7 +44,7 @@
|
|||||||
"protractor": "^3.1.1",
|
"protractor": "^3.1.1",
|
||||||
"rimraf": "^2.5.2",
|
"rimraf": "^2.5.2",
|
||||||
"typescript": "^1.7.5",
|
"typescript": "^1.7.5",
|
||||||
"typings":"0.6.8"
|
"typings": "0.6.8"
|
||||||
},
|
},
|
||||||
"repository": { }
|
"repository": { }
|
||||||
}
|
}
|
||||||
|
@ -533,14 +533,17 @@ code-example(format="").
|
|||||||
|
|
||||||
We can also run the *typings* tool ourselves. The following command lists the locally installed typings files.
|
We can also run the *typings* tool ourselves. The following command lists the locally installed typings files.
|
||||||
code-example(format="").
|
code-example(format="").
|
||||||
npm run typings list
|
npm run typings -- list
|
||||||
:marked
|
:marked
|
||||||
The following command installs the typings file for the Jasmine test library and updates the `typings.config`
|
The following command installs the typings file for the Jasmine test library and updates the `typings.config`
|
||||||
so we that we get it automatically the next time.
|
so we that we get it automatically the next time.
|
||||||
code-example(format="").
|
code-example(format="").
|
||||||
npm run typings install -- jasmine --ambient --save
|
npm run typings -- install jasmine --ambient --save
|
||||||
.l-sub-section
|
.l-sub-section
|
||||||
:marked
|
:marked
|
||||||
|
The [–– option](https://docs.npmjs.com/cli/run-script) is important;
|
||||||
|
it tells npm to pass all arguments to the right of `--` to the *typings* command.
|
||||||
|
|
||||||
Learn about the features of the *typings* tool at its [site on github](https://github.com/typings/typings/blob/master/README.md).
|
Learn about the features of the *typings* tool at its [site on github](https://github.com/typings/typings/blob/master/README.md).
|
||||||
:marked
|
:marked
|
||||||
#### Typing file collisions
|
#### Typing file collisions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user