-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JSPM install and usage documentation
- Loading branch information
Showing
1 changed file
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,12 @@ npm install tslib | |
bower install tslib | ||
``` | ||
|
||
## JSPM | ||
|
||
```sh | ||
jspm install npm:tslib | ||
``` | ||
|
||
# Usage | ||
|
||
Set the `importHelpers` compiler option on the command line: | ||
|
@@ -36,9 +42,9 @@ or in your tsconfig.json: | |
} | ||
``` | ||
|
||
#### For bower users | ||
#### For bower and JSPM users | ||
|
||
You will need to add a `paths` mapping for `tslib`, e.g.: | ||
You will need to add a `paths` mapping for `tslib`, e.g. For Bower users: | ||
|
||
```json | ||
{ | ||
|
@@ -53,6 +59,22 @@ You will need to add a `paths` mapping for `tslib`, e.g.: | |
} | ||
``` | ||
|
||
For JSPM users: | ||
|
||
```json | ||
{ | ||
"compilerOptions": { | ||
"module": "System", | ||
"importHelpers": true, | ||
"baseUrl": "./", | ||
"paths": { | ||
"tslib" : ["jspm_packages/npm/[email protected]/tslib.d.ts"] | ||
} | ||
} | ||
} | ||
``` | ||
|
||
|
||
# Contribute | ||
|
||
There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript. | ||
|