[ADF-4825] Use ADF-CLI in ADF for versions and latest commit (#4994)

* [ADF-4825] Use ADF-CLI in ADF for versions and latest commit

* Add documentation

* Update update-version.ts

* Update release.sh

* Update update-project.sh

* Update release.sh

* Update update-project.sh

* Update release.sh

* Update update-project.sh

* Update README.md

* Rebase branch

* Update package.json

* Update build.sh

* Update package.json
This commit is contained in:
davidcanonieto
2019-08-28 11:01:00 +01:00
committed by Maurizio Vitale
parent 3aed425020
commit 8a48738b99
6 changed files with 34 additions and 15 deletions

View File

@@ -89,6 +89,12 @@ Update only js-api with a specific version
adf-cli update-version --vjs "3.2.0-fa5916ff413131513c3e382d7f27dd9b4cfa0e7e" --pathPackage "$(pwd)"
```
Update adf libs and js-api with latest alpha locally
```bash
adf-cli update-version --alpha --pathPackage "$(pwd)" --skipGnu
```
### Update commit sha
This command allows you to update the commit sha as part of the package.json.
@@ -104,6 +110,11 @@ You can use the option --pointer to chose a different pointer from the default H
adf-cli update-commit-sha --pointer "HEAD~1" --pathProject "$(pwd)"
```
Run command locally
```bash
adf-cli update-commit-sha --pathProject "$(pwd)" --skipGnu
```
### npm publish
This command allows you to publish your lib on the npm.