mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
feat: refactor test and use verdaccio 6 core modules (#3569)
chore: clean up comments remove commitlint update deps add new tests test separate ci test test test test test test chore: add preprelase test test test test test chore: update deps Update release-snapshot.yml Update .npmignore test chore: remove @verdaccio/commons-api dep chore: cleanup remove normalizeContributors remove validateMetadata fix test clean up getLocalRegistryTarballUri Update store.spec.ts clean up convertDistRemoteToLocalTarballUrls chore: update libraries reuse getPublic url clean up Update jest.config.js Update jest.config.js update nvmrc add tests
This commit is contained in:
parent
50a20e922b
commit
bae430fe24
341 changed files with 7673 additions and 5605 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -9,7 +9,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node_version: [14, 16, 18, 19]
|
||||
node_version: [12, 14, 16, 18, 19]
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
@ -22,10 +22,14 @@ jobs:
|
|||
- name: Install
|
||||
run: yarn install --immutable
|
||||
- name: Format
|
||||
run: yarn format:check
|
||||
run: yarn format:check
|
||||
- name: Lint
|
||||
## eslint does not support node 12
|
||||
if: "!contains(matrix.node_version, '12')"
|
||||
run: yarn lint
|
||||
- name: Build
|
||||
run: yarn build
|
||||
- name: Lint
|
||||
run: yarn lint
|
||||
- name: Test
|
||||
## jest does not support node 12
|
||||
if: "!contains(matrix.node_version, '12')"
|
||||
run: yarn test
|
||||
|
|
31
.github/workflows/release-snapshot.yml
vendored
Normal file
31
.github/workflows/release-snapshot.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: Release Canary 5.x
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- 5.x
|
||||
- 'jota/**'
|
||||
- 'canary/**'
|
||||
- '5x-refactor-test'
|
||||
jobs:
|
||||
release:
|
||||
name: Release Snapshot
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
||||
- name: Use Node (latest)
|
||||
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=v2.5.1
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install
|
||||
run: yarn install
|
||||
- name: Build
|
||||
run: yarn build
|
||||
- name: Bump up package
|
||||
run: npm version prerelease --no-git-tag-version --preid $(date +%s%N)
|
||||
- name: Publish
|
||||
run: sh scripts/publish-prerelease.sh
|
||||
env:
|
||||
REGISTRY_AUTH_TOKEN: ${{ secrets.VERDACCIO_REGISTRY_TOKEN_CANARY }}
|
||||
REGISTRY_URL: registry.verdaccio.org
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn commitlint --edit "$1"
|
|
@ -42,3 +42,7 @@ storage_default_storage/
|
|||
docker-bin/
|
||||
yarn-plugins/
|
||||
tsconfig.json
|
||||
CHANGELOG.md
|
||||
SECURITY.md
|
||||
CONTRIBUTING.md
|
||||
CONTRIBUTORS.md
|
||||
|
|
2
.nvmrc
2
.nvmrc
|
@ -1 +1 @@
|
|||
14
|
||||
16
|
||||
|
|
1795
.pnp.loader.mjs
generated
1795
.pnp.loader.mjs
generated
File diff suppressed because it is too large
Load diff
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.
BIN
.yarn/cache/@jest-environment-npm-29.4.1-f0da2dacdc-f6fed37d2e.zip
vendored
Normal file
BIN
.yarn/cache/@jest-environment-npm-29.4.1-f0da2dacdc-f6fed37d2e.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jest-expect-utils-npm-29.4.1-0f3d7bdf3c-865b4ee79d.zip
vendored
Normal file
BIN
.yarn/cache/@jest-expect-utils-npm-29.4.1-0f3d7bdf3c-865b4ee79d.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jest-globals-npm-29.4.1-58d261291a-492af8f7c1.zip
vendored
Normal file
BIN
.yarn/cache/@jest-globals-npm-29.4.1-58d261291a-492af8f7c1.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jest-schemas-npm-29.4.0-8bccf324f8-005c90b7b6.zip
vendored
Normal file
BIN
.yarn/cache/@jest-schemas-npm-29.4.0-8bccf324f8-005c90b7b6.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jest-test-result-npm-29.4.1-9d29e577eb-8909e5033b.zip
vendored
Normal file
BIN
.yarn/cache/@jest-test-result-npm-29.4.1-9d29e577eb-8909e5033b.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jest-transform-npm-29.4.1-3e76d2a0ec-ae8aa3ec32.zip
vendored
Normal file
BIN
.yarn/cache/@jest-transform-npm-29.4.1-3e76d2a0ec-ae8aa3ec32.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jest-types-npm-29.4.1-bbfdda8a30-0aa0b6a210.zip
vendored
Normal file
BIN
.yarn/cache/@jest-types-npm-29.4.1-bbfdda8a30-0aa0b6a210.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@octokit-openapi-types-npm-16.0.0-2fe91e346e-844f30a545.zip
vendored
Normal file
BIN
.yarn/cache/@octokit-openapi-types-npm-16.0.0-2fe91e346e-844f30a545.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@octokit-plugin-paginate-rest-npm-6.0.0-ccfed9f0b1-4ad89568d8.zip
vendored
Normal file
BIN
.yarn/cache/@octokit-plugin-paginate-rest-npm-6.0.0-ccfed9f0b1-4ad89568d8.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@octokit-plugin-rest-endpoint-methods-npm-7.0.1-6524223f9b-cdb8734ec9.zip
vendored
Normal file
BIN
.yarn/cache/@octokit-plugin-rest-endpoint-methods-npm-7.0.1-6524223f9b-cdb8734ec9.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@octokit-rest-npm-19.0.7-f05ed3b2ee-1f970c4de2.zip
vendored
Normal file
BIN
.yarn/cache/@octokit-rest-npm-19.0.7-f05ed3b2ee-1f970c4de2.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@octokit-types-npm-9.0.0-3a83131100-5c7f5cca8f.zip
vendored
Normal file
BIN
.yarn/cache/@octokit-types-npm-9.0.0-3a83131100-5c7f5cca8f.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@sinclair-typebox-npm-0.25.21-83efa5a294-763af1163f.zip
vendored
Normal file
BIN
.yarn/cache/@sinclair-typebox-npm-0.25.21-83efa5a294-763af1163f.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@sinonjs-fake-timers-npm-10.0.2-c5fa80f1cc-c62aa98e7c.zip
vendored
Normal file
BIN
.yarn/cache/@sinonjs-fake-timers-npm-10.0.2-c5fa80f1cc-c62aa98e7c.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-async-npm-3.2.16-176346da98-42b26d59e6.zip
vendored
Normal file
BIN
.yarn/cache/@types-async-npm-3.2.16-176346da98-42b26d59e6.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-http-errors-npm-2.0.1-c59d5079a7-3bb0c50b0a.zip
vendored
Normal file
BIN
.yarn/cache/@types-http-errors-npm-2.0.1-c59d5079a7-3bb0c50b0a.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-jest-npm-29.2.6-6feedd29f5-90190ac830.zip
vendored
Normal file
BIN
.yarn/cache/@types-jest-npm-29.2.6-6feedd29f5-90190ac830.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-lodash-npm-4.14.191-67a04a969b-ba0d5434e1.zip
vendored
Normal file
BIN
.yarn/cache/@types-lodash-npm-4.14.191-67a04a969b-ba0d5434e1.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-node-npm-18.11.18-d61e8a4a20-03f17f9480.zip
vendored
Normal file
BIN
.yarn/cache/@types-node-npm-18.11.18-d61e8a4a20-03f17f9480.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-scope-manager-npm-5.49.0-0005af4706-466047e24f.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-scope-manager-npm-5.49.0-0005af4706-466047e24f.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-types-npm-5.49.0-251dc345e3-41f72a0430.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-types-npm-5.49.0-251dc345e3-41f72a0430.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-typescript-estree-npm-5.49.0-059eb7e57f-f331af9f0e.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-typescript-estree-npm-5.49.0-059eb7e57f-f331af9f0e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-utils-npm-5.49.0-b459097c00-8218c56663.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-utils-npm-5.49.0-b459097c00-8218c56663.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-visitor-keys-npm-5.49.0-407e7753d8-46dc7bc713.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-visitor-keys-npm-5.49.0-407e7753d8-46dc7bc713.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@verdaccio-config-npm-6.0.0-6-next.55-ade614a724-6af29e3e1e.zip
vendored
Normal file
BIN
.yarn/cache/@verdaccio-config-npm-6.0.0-6-next.55-ade614a724-6af29e3e1e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@verdaccio-core-npm-6.0.0-6-next.55-35143ffa02-91252d8cf2.zip
vendored
Normal file
BIN
.yarn/cache/@verdaccio-core-npm-6.0.0-6-next.55-35143ffa02-91252d8cf2.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@verdaccio-tarball-npm-11.0.0-6-next.24-56fd0fe905-fe2898de79.zip
vendored
Normal file
BIN
.yarn/cache/@verdaccio-tarball-npm-11.0.0-6-next.24-56fd0fe905-fe2898de79.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@verdaccio-types-npm-11.0.0-6-next.19-6dbcb99e5b-bf792d43be.zip
vendored
Normal file
BIN
.yarn/cache/@verdaccio-types-npm-11.0.0-6-next.19-6dbcb99e5b-bf792d43be.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@verdaccio-ui-theme-npm-6.0.0-6-next.55-47f55db1fe-be1dd76281.zip
vendored
Normal file
BIN
.yarn/cache/@verdaccio-ui-theme-npm-6.0.0-6-next.55-47f55db1fe-be1dd76281.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@verdaccio-url-npm-11.0.0-6-next.21-07aa97109d-79df8e2dae.zip
vendored
Normal file
BIN
.yarn/cache/@verdaccio-url-npm-11.0.0-6-next.21-07aa97109d-79df8e2dae.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@verdaccio-utils-npm-6.0.0-6-next.23-c9d31b3408-33f250c6df.zip
vendored
Normal file
BIN
.yarn/cache/@verdaccio-utils-npm-6.0.0-6-next.23-c9d31b3408-33f250c6df.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/core-js-npm-3.27.0-a4e072d590-14bf6772e1.zip
vendored
Normal file
BIN
.yarn/cache/core-js-npm-3.27.0-a4e072d590-14bf6772e1.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/d-npm-1.0.1-64afbbc689-49ca0639c7.zip
vendored
BIN
.yarn/cache/d-npm-1.0.1-64afbbc689-49ca0639c7.zip
vendored
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.
BIN
.yarn/cache/eslint-plugin-jest-npm-27.2.1-c936ce0bdd-579a4d2630.zip
vendored
Normal file
BIN
.yarn/cache/eslint-plugin-jest-npm-27.2.1-c936ce0bdd-579a4d2630.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/eslint-plugin-simple-import-sort-npm-9.0.0-c1fad367f5-09dac706f1.zip
vendored
Normal file
BIN
.yarn/cache/eslint-plugin-simple-import-sort-npm-9.0.0-c1fad367f5-09dac706f1.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue