Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
Mark all npm modules as deprecated (#4687)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Stone <[email protected]>
  • Loading branch information
Simon Stone authored Aug 30, 2019
1 parent a8c6569 commit ef149e7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
Expand Down Expand Up @@ -59,6 +59,9 @@ function exists() {
npm config set registry https://registry.npmjs.org/
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}

# Ensure all the NPM modules are deprecated
nohup ./.travis/deprecate.sh < /dev/null > /dev/null 2>&1 &

# Set the GitHub deploy key we will use to publish.
set-up-ssh --key "$encrypted_17b59ce72ad7_key" \
--iv "$encrypted_17b59ce72ad7_iv" \
Expand Down Expand Up @@ -138,7 +141,7 @@ for i in "${ALL_DOCKER_IMAGES[@]}"; do
if exists "${i}:${VERSION}" ; then
echo "-image ${i}:${VERSION} exists, will not publish"
# Remove from publish array
for (( j=0; j<${#PUBLISH_DOCKER_IMAGES[@]}; j++ )); do
for (( j=0; j<${#PUBLISH_DOCKER_IMAGES[@]}; j++ )); do
if [[ ${PUBLISH_DOCKER_IMAGES[j]} == ${i} ]]; then
PUBLISH_DOCKER_IMAGES=( "${PUBLISH_DOCKER_IMAGES[@]:0:$j}" "${PUBLISH_DOCKER_IMAGES[@]:$((j + 1))}" )
fi
Expand Down
26 changes: 26 additions & 0 deletions .travis/deprecate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set +e
set -v
echo deprecating all modules
for i in bond-network composer-report pii-network composer-runtime-hlf \
composer-connector-proxy perishable-network composer-connector-hlf \
trade-network digitalproperty-network carauction-network marbles-network \
vehicle-lifecycle-network basic-sample-network composer.base \
digitalproperty-model animaltracking-model composer.business \
vehicle-lifecycle-model animaltracking-network composer.contract \
composer.finance vehicle-manufacture-car-builder composer-rest-server \
composer-connector-hlfv1 composer-connector-web node-red-contrib-composer \
composer-runtime-hlfv1 composer-playground-api composer-runtime \
composer-wallet-filesystem composer-wallet-inmemory composer-wallet-cloudant \
composer-connector-server composer-admin composer-connector-embedded \
composer-runtime-web composer-common composer-documentation \
generator-hyperledger-composer composer-runtime-embedded \
composer-cucumber-steps composer-runtime-pouchdb composer-wallet-ibmcos \
composer-wallet-redis loopback-connector-composer letters-of-credit \
vehicle-manufacture-manufacturing vehicle-manufacture-vda composer-cli \
composer-client composer-playground; do
echo deprecating $i
npm deprecate $i "Hyperledger Composer has been deprecated. Please see the README for more details: https://github.com/hyperledger/composer/blob/master/README.md"
echo deprecated $i
done
echo deprecated all modules

0 comments on commit ef149e7

Please sign in to comment.