Skip to content

Commit 6ba3dd8

Browse files
committed
feat: add the initial verdaccio config + setup work for upcoming release testing work
1 parent b2ff784 commit 6ba3dd8

File tree

4 files changed

+1404
-213
lines changed

4 files changed

+1404
-213
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ coverage
3030
.vscode/
3131
*.report.html
3232

33+
scripts/release/verdaccio
3334
# used when doing subtree splitting to read-only repos
3435
.subsplit

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,14 @@
4444
"postbootstrap": "node scripts/monorepo-tests.js",
4545
"commit": "git-cz",
4646
"release:rc": "./scripts/release/rc-release.sh",
47-
"release": "./scripts/release/release.sh"
47+
"release": "./scripts/release/release.sh",
48+
"_verdaccio": "rm -rf scripts/release/verdaccio && npm run config:verdaccio & npm run start:verdaccio",
49+
"_start:verdaccio": "verdaccio --listen 4000 -c scripts/release/verdaccio.yml",
50+
"_config:verdaccio": "wait-on http://localhost:4000/ && npx npm-auth-to-token@1.0.0 -u 'bolt' -p 'bolt' -e 'bolt@boltdesignsystem.com' -r http://localhost:4000 && rm -rf scripts/release/verdaccio/storage/@bolt"
4851
},
4952
"dependencies": {
53+
"wait-on": "^3.2.0",
54+
"verdaccio": "^3.10.1",
5055
"ci-utils": "^0.5.0",
5156
"sassdoc": "^2.5.0",
5257
"npm-run-all": "^4.1.5",

scripts/release/verdaccio.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#
2+
# This is based on verdaccio's default config file. It allows all users
3+
# to do anything, so don't use it on production systems.
4+
#
5+
# Look here for more config file examples:
6+
# https://github.com/verdaccio/verdaccio/tree/master/conf
7+
#
8+
9+
# path to a directory with all packages
10+
storage: ./verdaccio/storage
11+
12+
auth:
13+
htpasswd:
14+
file: ./verdaccio/htpasswd
15+
# Maximum amount of users allowed to register, defaults to "+inf".
16+
# You can set this to -1 to disable registration.
17+
#max_users: 1000
18+
19+
# a list of other known repositories we can talk to
20+
uplinks:
21+
npmjs:
22+
url: https://registry.npmjs.org/
23+
24+
packages:
25+
'@*/*':
26+
# scoped packages
27+
access: $all
28+
publish: $all
29+
proxy: npmjs
30+
31+
'**':
32+
# allow all users (including non-authenticated users) to read and
33+
# publish all packages
34+
#
35+
# you can specify usernames/groupnames (depending on your auth plugin)
36+
# and three keywords: "$all", "$anonymous", "$authenticated"
37+
access: $all
38+
39+
# allow all known users to publish packages
40+
# (anyone can register by default, remember?)
41+
publish: $all
42+
43+
# if package is not available locally, proxy requests to 'npmjs' registry
44+
proxy: npmjs
45+
46+
# log settings
47+
logs:
48+
- {type: stdout, format: pretty, level: http}
49+
#- {type: file, path: verdaccio.log, level: info}

0 commit comments

Comments
 (0)