1.0.0 • Published 2 years ago
nodejs-config-library v1.0.0
- Install globally
npm install -g file:/Users/adam.gilbert/Documents/Workspace/shared/nodejs-library/nodejs-library-1.0.0.tgz
- Run getSharedPackage to update scripts:
getSharedPackage "`pwd`/package.json" && npm install
- Run with "update = true" update dependency versions to default package:
"node -e 'require(\"nodejs-library\").merge(path.resolve(__dirname, \"./package.json\"), null, true)'"
getSharedPackage "`pwd`/package.json" --update
Deployment: - npm config set @welllabs:registry https://gitlab.com/api/v4/packages/npm/
- npm config set -- '//gitlab.com/api/v4/packages/npm/:_authToken' "deploy_token"
- npm publish
todo: when npm 7 (node14) is installed in the gitlab image, use workspaces to achieve monorepo
npm config set @well:registry https://gitlab.com/api/v4/projects/37473273/packages/npm/ npm config set -- '//gitlab.com/api/v4/projects/37473273/packages/npm/:_authToken' "glpat-GPdW8zKRP5ZLJLAn4Y1A"
1.0.0
2 years ago