fix(npm): update scripts and readme for npm packages.
Replaces AtScript with Typescript. Closes #2377
This commit is contained in:
parent
f34f8df319
commit
8923103c3b
|
@ -5,12 +5,12 @@ The sources for this package are in the main [Angular2](https://github.com/angul
|
||||||
|
|
||||||
This package contains different sources for different users:
|
This package contains different sources for different users:
|
||||||
|
|
||||||
1. The files located in the root folder can be consumed using CommonJS
|
1. The files located in the root folder can be consumed using CommonJS.
|
||||||
2. The files under `/es6` are es6 compatible files that can be transpiled to
|
2. The files under `/es6` are es6 compatible files that can be transpiled to
|
||||||
es5 using any transpiler. This contains:
|
es5 using any transpiler. This contains:
|
||||||
* `dev/`: a development version that includes runtime type assertions
|
* `dev/`: a development version that includes runtime type assertions
|
||||||
* `prod/`: a production version that does not include runtime type assertions
|
* `prod/`: a production version that does not include runtime type assertions
|
||||||
3. The files under `/atscript` are the AtScript source files
|
3. The files under `/ts` are the TypeScript source files.
|
||||||
|
|
||||||
As a convenience, we provide you with `/es6/{dev|prod}/es5build.js`, a script to transpile the es6 sources into es5
|
As a convenience, we provide you with `/es6/{dev|prod}/es5build.js`, a script to transpile the es6 sources into es5
|
||||||
using [Google Traceur](https://github.com/google/traceur-compiler/).
|
using [Google Traceur](https://github.com/google/traceur-compiler/).
|
||||||
|
|
|
@ -10,7 +10,7 @@ This package contains different sources for different users:
|
||||||
es5 using any transpiler. This contains:
|
es5 using any transpiler. This contains:
|
||||||
* `dev/`: a development version that includes runtime type assertions
|
* `dev/`: a development version that includes runtime type assertions
|
||||||
* `prod/`: a production version that does not include runtime type assertions
|
* `prod/`: a production version that does not include runtime type assertions
|
||||||
3. The files under `/atscript` are the AtScript source files
|
3. The files under `/ts` are the Typescript source files
|
||||||
|
|
||||||
As a convenience, we provide you with `/es6/{dev|prod}/es5build.js`, a script to transpile the es6 sources into es5
|
As a convenience, we provide you with `/es6/{dev|prod}/es5build.js`, a script to transpile the es6 sources into es5
|
||||||
using [Google Traceur](https://github.com/google/traceur-compiler/).
|
using [Google Traceur](https://github.com/google/traceur-compiler/).
|
||||||
|
|
|
@ -35,8 +35,8 @@ function publishModule {
|
||||||
cp -r $ROOT_DIR/dist/js/dev/es6/$NAME/$FILES $PUBLISH_DIR/es6/dev
|
cp -r $ROOT_DIR/dist/js/dev/es6/$NAME/$FILES $PUBLISH_DIR/es6/dev
|
||||||
mkdir -p $PUBLISH_DIR/es6/prod
|
mkdir -p $PUBLISH_DIR/es6/prod
|
||||||
cp -r $ROOT_DIR/dist/js/prod/es6/$NAME/$FILES $PUBLISH_DIR/es6/prod
|
cp -r $ROOT_DIR/dist/js/prod/es6/$NAME/$FILES $PUBLISH_DIR/es6/prod
|
||||||
mkdir -p $PUBLISH_DIR/atscript
|
mkdir -p $PUBLISH_DIR/ts
|
||||||
cp -r $ROOT_DIR/modules/$NAME/$FILES $PUBLISH_DIR/atscript
|
cp -r $ROOT_DIR/modules/$NAME/$FILES $PUBLISH_DIR/ts
|
||||||
|
|
||||||
cp -r $ROOT_DIR/dist/js/cjs/$NAME/$FILES $PUBLISH_DIR
|
cp -r $ROOT_DIR/dist/js/cjs/$NAME/$FILES $PUBLISH_DIR
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue