[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

@@ -17,8 +17,13 @@ install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install module
- IF %COMPONENT_NAME% EQU ng2-components (cd scripts && sh npm-build-all.sh -t)
- IF %COMPONENT_NAME% EQU ng2-demo-shell (cd demo-shell-ng2 && npm install && npm run test || exit 1)
- if %COMPONENT_NAME% EQU ng2-components (
if %APPVEYOR_REPO_BRANCH EQU master
(cd scripts && sh npm-build-all.sh -t || exit 1)
else
(cd scripts && sh npm-build-all.sh -t -gitjsapi development|| exit 1)
)
- if %COMPONENT_NAME% EQU ng2-demo-shell (cd demo-shell-ng2 && npm install && npm run test || exit 1)
# Don't actually build.
build: off