deprecate NPM publishing (#1747)

* deprecate NPM publishing

* remove gitmodules
This commit is contained in:
Denys Vuika
2020-10-16 09:46:06 +01:00
committed by GitHub
parent 84eb628ac7
commit b1f5bebe3f
4 changed files with 1 additions and 50 deletions

0
.gitmodules vendored
View File

View File

@@ -130,12 +130,6 @@ jobs:
name: Update Rancher name: Update Rancher
script: ./scripts/travis/deploy/deploy.sh script: ./scripts/travis/deploy/deploy.sh
- stage: Release Libraries
name: Release Libraries
script:
- npm run build.extensions || exit 1;
- ./scripts/travis/release/release-npm.sh || exit 1;
- stage: Release Tag - stage: Release Tag
script: ./scripts/travis/release/git-tag.sh script: ./scripts/travis/release/git-tag.sh

View File

@@ -8,17 +8,12 @@
"ng": "ng", "ng": "ng",
"start": "npm run validate-config && ng serve --open", "start": "npm run validate-config && ng serve --open",
"start:prod": "npm run validate-config && node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng serve --prod --open", "start:prod": "npm run validate-config && node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng serve --prod --open",
"build:aos-extension": "npx rimraf dist/@alfresco/adf-office-services-ext && ng build adf-office-services-ext --prod && cpr projects/adf-office-services-ext/ngi.json dist/@alfresco/adf-office-services-ext/ngi.json && cpr projects/adf-office-services-ext/assets dist/@alfresco/adf-office-services-ext/assets",
"build.shared": "ng build aca-shared --prod",
"build.aos": "npm run build:aos-extension",
"build.extensions": "npm run build.shared && npm run build.aos",
"build.app": "node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng build app --prod", "build.app": "node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng build app --prod",
"build": "npm run validate-config && npm run build.app -- --prod", "build": "npm run validate-config && npm run build.app -- --prod",
"build.e2e": "npm run build.app -- --prod --configuration=e2e", "build.e2e": "npm run build.app -- --prod --configuration=e2e",
"test": "ng test app --code-coverage", "test": "ng test app --code-coverage",
"unit": "ng test --browsers=Chrome --watch",
"lite-serve": "./scripts/run lite-serve", "lite-serve": "./scripts/run lite-serve",
"test:ci": "npm run build.extensions && ng test adf-office-services-ext --watch=false && ng test app --code-coverage --watch=false", "test:ci": "ng test adf-office-services-ext --watch=false && ng test app --code-coverage --watch=false",
"lint": "ng lint && npm run spellcheck && npm run e2e.typecheck", "lint": "ng lint && npm run spellcheck && npm run e2e.typecheck",
"update-webdriver": "./scripts/update-webdriver.sh", "update-webdriver": "./scripts/update-webdriver.sh",
"e2e.typecheck": "tsc -p ./e2e/tsconfig.e2e.typecheck.json", "e2e.typecheck": "tsc -p ./e2e/tsconfig.e2e.typecheck.json",

View File

@@ -1,38 +0,0 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT=${DIR}/../../..
DIST=${ROOT}/dist/@alfresco
if [[ $TRAVIS_PULL_REQUEST == "false" ]];
then
TAG_NPM=latest
if [[ $TRAVIS_BRANCH == "develop" ]];
then
TAG_NPM=alpha
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
then
TAG_NPM=beta
fi
fi
fi;
cd $DIST/aca-shared
set -e
touch .npmrc
echo 'strict-ssl=false' >> .npmrc
echo 'registry=http://${NPM_REGISTRY_ADDRESS}' >> .npmrc
echo '//${NPM_REGISTRY_ADDRESS}/:_authToken="${NPM_REGISTRY_TOKEN}"' >> .npmrc
npm publish
cd $DIST/adf-office-services-ext
set -e
touch .npmrc
echo 'strict-ssl=false' >> .npmrc
echo 'registry=http://${NPM_REGISTRY_ADDRESS}' >> .npmrc
echo '//${NPM_REGISTRY_ADDRESS}/:_authToken="${NPM_REGISTRY_TOKEN}"' >> .npmrc
npm publish