Skip to content

Commit

Permalink
Merge 9307eeb into 7161664
Browse files Browse the repository at this point in the history
  • Loading branch information
kaladay committed Jul 13, 2022
2 parents 7161664 + 9307eeb commit 140a016
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -21,3 +21,6 @@ app/config/appConfig.js
app/bower_components
app/resources/styles/*
!app/resources/styles/sass/

.npmrc
.verdaccio
4 changes: 4 additions & 0 deletions .npmrc-localhost
@@ -0,0 +1,4 @@
# Work-around NPM trying to fake authentication and allow anonymous publishing.
# This file must be copied to the .npmrc of the project in order to work.
//localhost:4873/:_authToken="fake"
registry=http://localhost:4873/
11 changes: 9 additions & 2 deletions package.json
Expand Up @@ -16,7 +16,11 @@
"preupdate-webdriver": "npm install",
"update-webdriver": "webdriver-manager update",
"preprotractor": "npm run update-webdriver",
"protractor": "protractor e2e-tests/protractor.conf.js"
"protractor": "protractor e2e-tests/protractor.conf.js",
"start:registry": "verdaccio --listen localhost:4873 --config ./verdaccio-config.yaml",
"publish:local": "npm publish",
"prepublish:local": "shx cp .npmrc-localhost .npmrc",
"postpublish:local": "shx rm -f .npmrc"
},
"dependencies": {
"angular": "1.8.2",
Expand Down Expand Up @@ -52,6 +56,9 @@
"karma-jasmine": "4.0.2",
"karma-junit-reporter": "2.0.1",
"karma-ng-html2js-preprocessor": "1.0.0",
"protractor": "7.0.0"
"protractor": "7.0.0",
"shx": "^0.3.4",
"verdaccio": "^5.13.1",
"verdaccio-memory": "^10.3.0"
}
}
61 changes: 61 additions & 0 deletions verdaccio-config.yaml
@@ -0,0 +1,61 @@
# https://verdaccio.org/docs/configuration/

# 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 - Localhost

# Disable login requirement for localhost.
login: false

# List of other known repositories to use.
uplinks:
npmjs:
url: https://registry.npmjs.org/
cache: false

# For verdaccio-memory, designate memory limit.
# Comment this out to store package in .verdaccio directory rather than in memory.
store:
memory:
limit: 10000

packages:
'@wvr/*':
# Choices: "$all", "$anonymous", "$authenticated".
access: $all
publish: $all
unpublish: $all

'**':
access: $all

# Proxy non-local packages to 'npmjs' registry.
proxy: npmjs

# Allow for publishing while offline.
publish:
allow_offline: true

server:
keepAliveTimeout: 60

security:
api:
jwt:
sign:
expiresIn: 15d
notBefore: 0
web:
sign:
expiresIn: 1h

middlewares:
audit:
enabled: true

logs: { type: stdout, format: pretty, level: http }

0 comments on commit 140a016

Please sign in to comment.