Skip to content

Commit

Permalink
build(verdaccio): re-implement verdaccio with nx (MKH-31)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylannnn committed Jan 2, 2024
1 parent 2d29e76 commit 0eb663c
Show file tree
Hide file tree
Showing 6 changed files with 1,154 additions and 7 deletions.
36 changes: 36 additions & 0 deletions .verdaccio/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# path to a directory with all packages
storage: ../.nx/local-registry/storage

# a list of other known repositories we can talk to
uplinks:
npmjs:
url: https://registry.npmjs.org/
maxage: 60m
localhost:
url: http://localhost:4873/
maxage: 60m

packages:
'**':
# give all users (including non-authenticated users) full access
# because it is a local registry
access: $all
publish: $all
unpublish: $all

# if package is not available locally, proxy requests to npm registry
proxy: npmjs
"@amfrontender/*":
access: $all
publish: $all
unpublish: $all
proxy: localhost

# log settings
logs:
type: stdout
format: pretty
level: warn

publish:
allow_offline: true # set offline to true to allow publish offline
16 changes: 16 additions & 0 deletions .verdaccio/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "verdaccio",
"$schema": "node_modules/nx/schemas/project-schema.json",
"targets": {
"start": {
"executor": "@nx/js:verdaccio",
"options": {
"port": 4873,
"config": "{projectRoot}/config.yml",
"storage": "{workspaceRoot}/.nx/local-registry/storage",
"location": "user",
"clear": true
}
}
}
}
5 changes: 3 additions & 2 deletions libs/ngx-multi-keywords-highlighter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"name": "@amfrontender/ngx-multi-keywords-highlighter",
"version": "1.3.0",
"license": "MIT",
"homepage": "https://www.yunfei.li",
"author": "Yunfei Li <dylannnnlee@gmail.com> (https://yunfei.li)",
"homepage": "https://github.com/dylannnn/ngx-multi-keywords-highlighter#readme",
"repository": {
"type": "git",
"url": "https://github.com/dylannnn/ngx-multi-keywords-highlighter.git",
"url": "git+https://github.com/dylannnn/ngx-multi-keywords-highlighter.git",
"directory": "libs/ngx-multi-keywords-highlighter"
},
"bugs": {
Expand Down
Loading

0 comments on commit 0eb663c

Please sign in to comment.