Use scoped npm package
All checks were successful
continuous-integration/drone/push Build is passing

This way the private nexus repository can be easily used besides the public
repository, via a scoped repository in .npmrc
This commit is contained in:
Armin Friedl 2020-07-12 12:51:11 +02:00
parent f6fddae187
commit 8e0685819d
Signed by: armin
GPG key ID: 48C726EEE7FBCBC8
3 changed files with 3 additions and 1 deletions

View file

@ -81,7 +81,7 @@ steps:
- openapi-generator generate
-i http://runservice:8080/v3/api-docs
-g javascript
--additional-properties projectName=flingclient,usePromises=true,npmRepository=https://nexus.friedl.net/repository/npm-private/
--additional-properties projectName=@fling/flingclient,usePromises=true,npmRepository=https://nexus.friedl.net/repository/npm-private/
-o flingclient.js
--enable-post-process-file
- cd flingclient.js && npm install && npm run build

View file

@ -18,4 +18,5 @@ sed -i "s/${CUR_VERSION^^}/${NEW_VERSION^^}/g" service/fling/pom.xml
sed -i "s/${CUR_VERSION,,}/${NEW_VERSION,,}/g" service/fling/src/main/resources/*.yml
sed -i "s/${CUR_VERSION,,}/${NEW_VERSION,,}/g" .drone.yml
sed -i "s/${CUR_VERSION^^}/${NEW_VERSION^^}/g" .drone.yml
sed -i "s/${CUR_VERSION,,}/${NEW_VERSION,,}/g" web/fling/package.json
sed -i "s/${CUR_VERSION}/${NEW_VERSION}/g" VERSION

1
web/fling/.npmrc Normal file
View file

@ -0,0 +1 @@
@fling:registry=https://nexus.friedl.net/repository/npm-private/