[ADF-570] Script for Pushing to Registry (#1875)

* change prepublish to build only
add .npmrc in the gitignore and npmignore
clean .npmrc during the clean task
change registry during publish with npmrc file
add rimraf install in npm publish

* add option to link an alfresco-js-api from github

* npm build on develop branch will use the alfresco-js-api from develop

* modify script after review
add -gitjsapi to starts.sh to change jsapi pointing
add -vjsapi to starts.sh to change jsapi pointing

* start dist demo shell script option
This commit is contained in:
Eugenio Romano
2017-05-12 15:12:24 +01:00
committed by Eugenio Romano
parent 1fadfa8166
commit 72704cad57
70 changed files with 351 additions and 54 deletions

View File

@@ -38,12 +38,43 @@ feel for what's available.
```sh
./start.sh -update or -u
``
* Install a different version of the ng2-components specified in the package.json his option is not compatible with -d
```sh
./start.sh -version or -v COMPONENTS_VERSION
./start.sh -v 1.4.0
```
* Start the demo in development mode building the relative folder ng2-components with all the components and pointing to this component instead to the node_modules one
```sh
./start.sh -develop -d
./start.sh -develop or -d
```
* Start the demo start the demo shell in dist mode
```sh
./start.sh -dist
```
* If you want start the demo shell using an alfresco-js-api referenced by commit-ish version of the JS-API
```sh
./start.sh -gitjsapi commit-ish
./start.sh -gitjsapi development
./start.sh -gitjsapi de92be966e2ce7eca642ca9e9d7647ba4f849356
```
* If you want start the alfresco-js-api against a commit-ish version of the JS-API
```sh
./start.sh -vjsapi 1.4.0
```
* If you want to build all your local component:
@@ -55,13 +86,23 @@ feel for what's available.
* If you want to build all your local component and run the test:
```sh
./npm-buid-alll.sh -t or -test
./npm-buid-all.sh -t or -test
```
* If you want clean the ng2-components folder node_modules before to build
```sh
./npm-buid-alll.sh -c
./npm-buid-all.sh -c
```*
If you want build to build all the components against a commit-ish version of the JS-API
```sh
./npm-buid-all.sh -gitjsapi commit-ish
./npm-build-all.sh -gitjsapi development
./npm-build-all.sh -gitjsapi de92be966e2ce7eca642ca9e9d7647ba4f849356
```
* If you want clean all your local component and the demo shell: