-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for running a local registry for local weaver package dev…
…elopment. Verdaccio is installed locally to the project and should be run within the project as a service. When running, the service is started at: http://localhost:4873/. This adds the following new commands: - `clean:npm-local`: clean the verdaccio repository. - `publish:npm-local`: publish to the local repository (which must already be running). - `start:npm-local`: start the local repository (runs in the foreground). This updates the following commands: - `npm run clean`: updated to also clean the verdaccio repository. - `publish:npm`: the build script `scripts/build-publish.js` is updated to support a third argument to designate using the local registry.
- Loading branch information
Showing
4 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,3 +60,5 @@ src/assets/tinymce/ | |
!src/assets/icons/feather/chevron-right.svg | ||
|
||
.wvr-ud/static-assets/styles.css | ||
|
||
.verdaccio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Look here for more config file examples: | ||
# https://github.com/verdaccio/verdaccio/tree/master/conf | ||
|
||
# path to a directory with all packages | ||
storage: .verdaccio/storage | ||
# path to a directory with plugins to include | ||
plugins: .verdaccio/plugins | ||
|
||
web: | ||
title: Verdaccio - Weaver Components | ||
|
||
# a list of other known repositories we can talk to | ||
uplinks: | ||
npmjs: | ||
url: https://registry.npmjs.org/ | ||
|
||
packages: | ||
'@wvr/*': | ||
# and three keywords: "$all", "$anonymous", "$authenticated" | ||
access: $all | ||
publish: $all | ||
unpublish: $all | ||
|
||
'**': | ||
access: $all | ||
|
||
# if package is not available locally, proxy requests to 'npmjs' registry | ||
proxy: npmjs | ||
|
||
server: | ||
keepAliveTimeout: 60 | ||
|
||
middlewares: | ||
audit: | ||
enabled: true | ||
|
||
logs: { type: stdout, format: pretty, level: http } |