@pubnamo/npm-manual
v1.1.0
Published
how to use npm
Downloads
4
Readme
gitlab .gitlab-ci.yml
- https://docs.gitlab.com/ee/ci/yaml/README.html
- https://about.gitlab.com/blog/2015/05/06/why-were-replacing-gitlab-ci-jobs-with-gitlab-ci-dot-yml/
gitlab create
- git push --set-upstream https://gitlab.com/namoworks/npm-manual.git master
- remote add should be done manually after push
npm
npm i /path/to/local/dir/with/packagejson is possible
npm token
- npm > toprightprofile > accesstokens > generate
- GitLab CI/CD: Set an NPM_TOKEN variable under your project’s Settings > CI/CD > Variables.
npm update
- npm update updates modules to the max version meeting the semver requirement
package.json
- https://docs.npmjs.com/files/package.json
create & publish package
login
- npm login
create
- npm init
- set name to : @pubnamo/sumpackage
publish
- npm publish --access public
- private requires payment
- npm publish --access public
Up Next
- https://docs.npmjs.com/configuring-your-registry-settings-as-an-npm-enterprise-user
- different registry mapping by scope