Compare commits

...

42 Commits

Author SHA1 Message Date
Juan Picado
1308ab295d chore(release): 5.1.3 2021-08-20 08:31:27 +02:00
Juan Picado
d63dcc02fa fix: update docker base image to v14.17.5 2021-08-20 08:30:59 +02:00
Juan Picado
7d9fcfb5e3 chore: disable release note steps 2021-08-20 08:28:41 +02:00
Juan Picado
2e995f5981 fix: update docker and core dependencies (#2375)
* fix: update docker base to node:14.17.5

* fix: update base dependencies

* chore: change to node:14.17.4
2021-08-12 07:56:20 +02:00
weifan she
ecfc4c3304 fix: plugin allow_publish (pkg) got a undefined version (#2315) 2021-08-12 07:41:00 +02:00
VerdaccioBot
a09a041754 Update README.md 2021-08-06 21:35:31 +02:00
Juan Picado
bab7a7f6bc chore(release): 5.1.2 2021-07-14 20:25:44 +02:00
Juan Picado
29240544b1 fix: remove token experiment flag (#2332) 2021-07-14 20:22:15 +02:00
Juan Picado
7180338c44 fix: update dependencies (#2333) 2021-07-14 20:21:41 +02:00
Juan Picado
2bc590895c fix: update docker base image node 14.17.3 2021-07-14 19:57:46 +02:00
Juan Picado
b8f711afab fix: update docker base image node 14.17.1 (#2314)
* fix: update docker base image node 14.17.2

* fix: update docker base image node 14.17.1
2021-07-03 13:09:37 +02:00
Juan Picado
4fe8ddf7c7 fix: update dependencies (#2303) 2021-06-23 19:39:20 +02:00
Juan Picado
b421ed87c4 fix: update dependencies (#2291)
* chore: update deps

* chore: restore jest
2021-06-12 07:59:26 +02:00
Juan Picado
da810f4a18 chore: fix release script (#2289)
* chore: fix release script

* chore: fix lint

* chore: restore file
2021-06-12 07:39:33 +02:00
Juan Picado
f272c11c48 chore(release): 5.1.1 2021-06-12 06:22:51 +02:00
Juan Picado
558dd3f3c6 fix: add logger fatal if fails on startup (#2288)
fix #2287
2021-06-12 06:19:26 +02:00
Juan Picado
38ca095fb0 fix: improve get headers from request #2190 (#2271)
* fix: improve request header handling

* chore: fix test

* chore: apply suggestion
2021-05-26 20:07:13 +02:00
Juan Picado
b5ee7039e3 chore(release): 5.1.0 2021-05-24 08:33:50 +02:00
Juan Picado
f1cfae4d35 chore: remove prepublish 2021-05-24 08:31:00 +02:00
Juan Picado
b2d6f3657a chore: add missing dependency 2021-05-24 08:23:45 +02:00
Juan Picado
2d7d8143e9 chore: remove try catch not need it 2021-05-22 14:49:11 +02:00
Juan Picado
8434cc550f fix: restore using local path web logo (#2270)
* fix: logo loaded locally

* chore: fix lint
2021-05-22 14:46:47 +02:00
Juan Picado
1e4c900dcb fix: update core dependencies (#2269) 2021-05-22 09:57:07 +02:00
Juan Picado
4ed7286bcb feat: update Node.js docker image 14.17.0 (#2247) 2021-05-15 16:54:45 +02:00
Juan Picado
251bd95373 feat: implement search v1 endpoint (#2256)
* feat: implement search v1 endpoint

* add allow_access

* chore: add types

* chore: format

* fix eslint prettier

* chore: add tests

* add tests

* chore: add npm search cli
2021-05-15 16:39:03 +02:00
Juan Picado
6be108917e chore: update dependencies (#2255) 2021-05-14 08:27:54 +02:00
Juan Picado
f168b2512e chore: disable yarn local cache enableGlobalCache (#2254)
* chore: add yarn local  cache

* update list files docker publish

* add example extending with plugins and yarn2
2021-05-14 08:04:19 +02:00
Juan Picado
69d7df20d8 build: enable pnp yarn2 (#2253)
* chore: enable pnp yarn

* chore: ignore pnp

* fix type issues on run eslint

* add missing dependency and fix some errors

* fix most of the errors

some were just disabled, already fixed in master

* add missing jest-config

* update jest@26 align with other deps

* add missing @babel/register

* clean up

* use yarn node

* use yarn node on release

* chore: add husky 6

* chore: add husky 6

* chore: lint-stage

* chore: test

* chore: add hook git

* chore: test

* chore: test

* update deps

* chore: fix commit lint

* fix docker run

* update git ignore
2021-05-13 23:13:57 +02:00
Juan Picado
351ea89df6 chore: update yarn@2.4.1 (#2252)
* feat: update Node.js docker image 14.17.0

* chore: update yarn2

* feat: restore file

* chore: update docker file ignore
2021-05-13 17:41:20 +02:00
Favo Yang
78d04cf9f8 feat: tarball url redirect (#1688)
* feat: tarball url redirect

* fix: handle uplinks

* feat: allow function for config.tarball_url_redirect

* fix:  hasLocalTarball was calling localStream,abort when already aborted

* chore: simplify localStream null check in hasLocalTarball

As requested in PR feedback.

* chore: fix sonarcloud code smell on test

the variable `credentials` was already declared before the tarball url tests.

* fix: move tarball_url_redirect to experiments

Co-authored-by: Gord Lea <johlea@cisco.com>
Co-authored-by: Gord Lea <jgordonlea@gmail.com>
2021-05-03 20:53:00 +02:00
Juan Picado
255650b91a chore(release): 5.0.4 2021-04-28 07:19:25 +02:00
Claude
01c5d2ca27 fix: scoped query support (#2208) 2021-04-28 07:18:30 +02:00
Juan Picado
6fb388e366 chore(release): 5.0.3 2021-04-27 22:33:40 +02:00
Juan Picado
ced47d56fc fix: update @verdaccio/ui-theme (#2207) 2021-04-27 22:28:01 +02:00
Juan Picado
848c0ee499 chore(release): 5.0.2 2021-04-27 19:53:38 +02:00
Claude
d8b62cff53 fix: incorrect sanity check for theme plugin (#2205) 2021-04-27 19:53:12 +02:00
Juan Picado
825c1fc688 Update README.md 2021-04-22 22:55:05 +02:00
Juan Picado
8074bae190 chore: remove workflow
not need it on 5.x
2021-04-21 22:36:05 +02:00
Juan Picado
aae3e4356b chore: test on node 16 2021-04-21 21:44:12 +02:00
Juan Picado
6a1cdeaec4 chore(release): 5.0.1 2021-04-10 11:13:03 +02:00
Juan Picado
782dd1ca93 fix: logo and favicon configuration (#2180) 2021-04-10 11:09:50 +02:00
Juan Picado
e56fd19968 chore: prepare 5.x 2021-04-09 18:38:26 +02:00
1581 changed files with 34759 additions and 3623 deletions

View File

@@ -9,18 +9,21 @@
# you can add exceptions like in .gitignore to maintain a whitelist:
# e.g.
!babel.config.js
!.eslintrc
!eslintrc.js
!.prettierrc
!.eslintignore
!.stylelintrc
!.jest.config.js
!.jestEnvironment.js
!.yarnrc.yml
!.yarn/releases/yarn-berry.cjs
!.yarn/releases/yarn-*.cjs
!.yarn/plugins/*
!.pnp.js
# do not copy over node_modules we will run `npm install` anyway
# just in case, yarn 2 pnp is enabled
node_modules
.husky/
.git/
# output from test runs and similar things
*.log

View File

@@ -20,3 +20,4 @@ test/unit/partials/
types/custom.d.ts
docker-examples/
LICENSE
.pnp.js

View File

@@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node_version: [12, 14, 15]
node_version: [12, 14, 15, 16]
runs-on: ubuntu-latest

View File

@@ -1,52 +0,0 @@
name: "Code scanning - action"
on:
push:
pull_request:
schedule:
- cron: '0 2 * * 4'
jobs:
CodeQL-Build:
# CodeQL runs on ubuntu-latest and windows-latest
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2.3.3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

View File

@@ -11,6 +11,9 @@ on:
- 'bin/**'
- 'package.json'
- 'yarn.lock'
- '.yarn/**'
- '.yarnrc.yaml'
- '.pnp.js'
branches:
- '**'
tags:
@@ -36,7 +39,7 @@ jobs:
with:
images: ${{ github.repository }}
tag-custom: 5.x-next
tag-custom-only: ${{ github.ref == 'refs/heads/master' }}
tag-custom-only: ${{ github.ref == 'refs/heads/5.x' }}
tag-semver: |
{{version}}
{{major}}

View File

@@ -23,7 +23,7 @@ jobs:
# run: yarn install --pure-lockfile
# - name: 'Run verdaccio in the background'
# run: |
# nohup node ./scripts/run-verdaccio.js &
# nohup yarn node ./scripts/run-verdaccio.js &
# - name: 'Ping to verdaccio'
# run: |
# npm ping --registry http://localhost:4873
@@ -58,7 +58,7 @@ jobs:
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
@@ -95,7 +95,7 @@ jobs:
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
@@ -134,7 +134,7 @@ jobs:
# run: yarn install --pure-lockfile
# - name: 'Run verdaccio in the background'
# run: |
# nohup node ./scripts/run-verdaccio.js &
# nohup yarn node ./scripts/run-verdaccio.js &
# - name: 'Ping to verdaccio'
# run: |
# pnpm ping --registry http://localhost:4873

View File

@@ -24,7 +24,7 @@ jobs:
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873

View File

@@ -22,7 +22,7 @@ jobs:
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
@@ -53,7 +53,7 @@ jobs:
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
@@ -89,7 +89,7 @@ jobs:
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
@@ -122,7 +122,7 @@ jobs:
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
- name: 'Ping to verdaccio'
run: |
npm ping --registry http://localhost:4873
@@ -156,7 +156,7 @@ jobs:
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js &
nohup yarn node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
pnpm ping --registry http://localhost:4873
@@ -189,7 +189,7 @@ jobs:
run: yarn install
- name: 'Run verdaccio in the background'
run: |
nohup node ./scripts/run-verdaccio.js &
nohup yarn node ./scripts/run-verdaccio.js &
- name: 'Ping to verdaccio'
run: |
pnpm ping --registry http://localhost:4873

View File

@@ -4,7 +4,6 @@ on:
push:
tags:
- '*'
jobs:
release:
name: Release
@@ -19,14 +18,13 @@ jobs:
run: yarn install
- name: Build
run: yarn code:build
- name: Lint
run: yarn lint
- name: Publish
run: sh scripts/publish.sh
env:
REGISTRY_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
REGISTRY_URL: registry.npmjs.org
- name: Create release notes
run: sh scripts/github-release.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# FIXME: there is an issue where all the changelog is copied to the release notes (all versions)
# - name: Create release notes
# run: sh scripts/github-release.sh
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

12
.gitignore vendored
View File

@@ -1,4 +1,4 @@
npm-debug.log
verdaccio-*.tgz
.DS_Store
build/
@@ -21,19 +21,13 @@ package-lock.json
npm_test-fails-add-tarball*
yarn-error.log
# Istanbul
# coverage
reports/
coverage/
.nyc*
# IDE
.idea/
# React
bundle.js
bundle.js.map
__tests__
# Compiled script
static/*

1
.husky/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
_

4
.husky/commit-msg Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn commitlint --edit "$1"

4
.husky/pre-commit Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged

28252
.pnp.js generated Executable file

File diff suppressed because one or more lines are too long

View File

@@ -30,3 +30,4 @@ docker-examples/
.npmignore
.gitignore
*.ico
.pnp.js

13
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,13 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"EditorConfig.EditorConfig",
"dbaeumer.vscode-eslint",
"arcanis.vscode-zipfs",
"esbenp.prettier-vscode"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}

30
.vscode/settings.json vendored
View File

@@ -1,10 +1,26 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"**/.idea": false,
"**/.nyc_output": true,
"**/build": true,
"**/coverage": true
},
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.tsserver.watchOptions": {
"watchFile": "useFsEventsOnParentDirectory",
"watchDirectory": "useFsEvents"
},
"eslint.nodePath": ".yarn/sdks",
"eslint.validate": [
"javascript",
"typescript"
],
"files.exclude": {
"**/.idea": false,
"**/.nyc_output": true,
"**/build": true,
"**/coverage": true
},
"editor.formatOnSave": true,
"typescript.enablePromptUseWorkspaceTsdk": true,
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More