Nexus:NPM: Difference between revisions
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 49: | Line 49: | ||
==Security== | ==Security== | ||
<source lang="bash> | <source lang="bash"> | ||
NEXUS_NPM_AUTH=`echo -n ' | NEXUS_NPM_AUTH=`echo -n 'academia:sadaqah!'|openssl base64` | ||
cat <<EOF >> $HOME/.npmrc | cat <<EOF >> $HOME/.npmrc | ||
registry=https://cdn.chorke.org/nexus/repository/npm/ | registry=https://cdn.chorke.org/nexus/repository/npm/ | ||
Line 58: | Line 58: | ||
</source> | </source> | ||
<source lang="bash> | <source lang="bash"> | ||
npm config set @academia:registry https://cdn.chorke.org/nexus/repository/npm/ | npm config set @academia:registry https://cdn.chorke.org/nexus/repository/npm/ | ||
npm --registry https://cdn.chorke.org/nexus/repository/npm/ install -g express | npm --registry https://cdn.chorke.org/nexus/repository/npm/ install -g express | ||
npm adduser --registry=https://cid.chorke.org/nexus/repository/npm/ | |||
npm install | npm install | ||
npm publish | npm publish | ||
Line 66: | Line 68: | ||
<code>package.json:</code> | <code>package.json:</code> | ||
<source lang="json> | <source lang="json"> | ||
{ | { | ||
... more ... | ... more ... |
Latest revision as of 06:20, 25 January 2021
Recipe Types: ────────────────────────────────────────── nexus/repository/recipe/types ─┬──────────────────────────────────────── ├─ group ├─ proxy └─ host |
Repositories: ────────────────────────────────────────── https://cdn.chorke.org/nexus/repository/ ─┬──────────────────────────────────────── ├─ npm-registry/ [proxy] ├─ npm-private/ [host ] └─ npm/ [group] |
Blob Store
Admin : https://cdn.chorke.org/nexus/#admin/repository/blobstores Path : /nexus-data/blobs/npm-registry Name : npm-registry
Admin : https://cdn.chorke.org/nexus/#admin/repository/blobstores Path : /nexus-data/blobs/npm-private Name : npm-private
Admin : https://cdn.chorke.org/nexus/#admin/repository/blobstores Path : /nexus-data/blobs/npm-group Name : npm-group
Repository
Admin : https://cdn.chorke.org/nexus/#admin/repository/repositories Policy : Allow redeploy Storage : npm-private Name : npm-private
Admin : https://cdn.chorke.org/nexus/#admin/repository/repositories proxy : https://registry.npmjs.org Storage : npm-registry Name : npm-registry
Admin : https://cdn.chorke.org/nexus/#admin/repository/repositories Members : npm-registry, npm-private Storage : npm-group Name : npm
Security
NEXUS_NPM_AUTH=`echo -n 'academia:sadaqah!'|openssl base64`
cat <<EOF >> $HOME/.npmrc
registry=https://cdn.chorke.org/nexus/repository/npm/
_auth=$NEXUS_NPM_AUTH
email= [email protected]
EOF
npm config set @academia:registry https://cdn.chorke.org/nexus/repository/npm/
npm --registry https://cdn.chorke.org/nexus/repository/npm/ install -g express
npm adduser --registry=https://cid.chorke.org/nexus/repository/npm/
npm install
npm publish
package.json:
{
... more ...
"publishConfig": {
"registry": "https://cdn.chorke.org/nexus/repository/npm-private/"
}
}