Skip to content

Commit

Permalink
setup verdaccio
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Aug 31, 2024
1 parent bf9e8fb commit ee14bfb
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .verdaccio/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# path to a directory with all packages
storage: ../tmp/local-registry/storage

# a list of other known repositories we can talk to
uplinks:
npmjs:
url: https://registry.npmjs.org/
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

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

publish:
allow_offline: true # set offline to true to allow publish offline
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
"nx": "18.2.4",
"prettier": "^2.6.2",
"typescript": "~5.4.2",
"verdaccio": "^5.0.4",
"vite": "~5.0.0",
"vitest": "^1.3.1"
},
"nx": {
"includedScripts": []
}
}
14 changes: 14 additions & 0 deletions project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "@nx-verdaccio-e2e-setup/source",
"$schema": "node_modules/nx/schemas/project-schema.json",
"targets": {
"local-registry": {
"executor": "@nx/js:verdaccio",
"options": {
"port": 4873,
"config": ".verdaccio/config.yml",
"storage": "tmp/local-registry/storage"
}
}
}
}

0 comments on commit ee14bfb

Please sign in to comment.