Skip to content

Commit

Permalink
chore: restore website build (verdaccio#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado committed Apr 9, 2021
1 parent c103a82 commit 8f9467c
Show file tree
Hide file tree
Showing 25 changed files with 17,383 additions and 6,323 deletions.
15 changes: 3 additions & 12 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,9 @@
"prettier/react",
"prettier/@typescript-eslint"
],
"plugins": [
"import",
"jest",
"jsx-a11y",
"react-hooks",
"prettier"
],
"plugins": ["import", "jest", "jsx-a11y", "react-hooks", "prettier"],
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
},
Expand All @@ -40,7 +33,7 @@
},
"settings": {
"react": {
"version": "detect"
"version": "detect"
},
"import/resolver": {
"node": {
Expand All @@ -50,9 +43,7 @@
},
"parser": "@typescript-eslint/parser",
"rules": {
"curly": [
"error", "all"
],
"curly": ["error", "all"],
"prettier/prettier": [
2,
{
Expand Down
34 changes: 16 additions & 18 deletions .github/workflows/ci-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
paths:
- .github/workflows/ci-website.yml
- 'website/**'
- "website/**"
jobs:
ci:
name: Node ${{ matrix.node_version }}
Expand All @@ -20,20 +20,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node_version: ${{ matrix.node_version }}
- name: Install dependencies
run: |
yarn --frozen-lockfile
yarn bootstrap
- name: Lint website
run: |
cd website
yarn lint
- name: Build website
run: |
cd website
yarn build
- uses: actions/checkout@v1
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node_version: ${{ matrix.node_version }}
- name: Install pnpm
run: npm i -g pnpm
- name: Install
run: pnpm recursive install
- name: Lint website
run: pnpm lint
- name: Build website
run: |
cd website
pnpm build
46 changes: 22 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
push:
branches:
- 5.x
- 'changeset-release/5.x'
- "changeset-release/5.x"
pull_request:
paths:
- .github/workflows/ci.yml
- 'packages/**'
- 'jest/**'
- 'package.json'
- 'pnpm-workspace.yaml'
- "packages/**"
- "jest/**"
- "package.json"
- "pnpm-workspace.yaml"

jobs:
ci:
Expand All @@ -25,22 +25,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node_version: ${{ matrix.node_version }}
- name: Install pnpm
run: npm i -g pnpm
- name: Install
run: pnpm recursive install
- name: Install packages
run: pnpm install -r
- name: Lint
run: pnpm lint
- name: Clean
run: pnpm clean
- name: Build
run: pnpm build
- name: Test
run: pnpm test
- uses: actions/[email protected]
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node_version: ${{ matrix.node_version }}
- name: Install pnpm
run: npm i -g pnpm
- name: Install
run: pnpm recursive install
- name: Lint
run: pnpm lint
- name: Clean
run: pnpm clean
- name: Build
run: pnpm build
- name: Test
run: pnpm test
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
always-auth = true
recursive-install = true
registry = https://registry.verdaccio.org/
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@babel/register": "7.10.5",
"@babel/runtime": "7.10.5",
"@changesets/changelog-github": "^0.1.1",
"@changesets/cli": "^2.9.2",
"@changesets/cli": "^2.10.1",
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.2.0",
"@octokit/rest": "17.0.0",
Expand All @@ -54,8 +54,8 @@
"@types/request": "2.48.3",
"@types/semver": "7.2.0",
"@types/supertest": "2.0.9",
"@typescript-eslint/eslint-plugin": "^3.9.1",
"@typescript-eslint/parser": "^3.9.1",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"@verdaccio/types": "workspace:*",
"@verdaccio/ui-theme": "latest",
"babel-core": "7.0.0-bridge.0",
Expand All @@ -74,8 +74,8 @@
"eslint-plugin-jest": "23.8.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "3.1.2",
"eslint-plugin-react": "^7.20.5",
"eslint-plugin-react-hooks": "^4.0.8",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.0",
"eslint-plugin-simple-import-sort": "5.0.2",
"eslint-plugin-verdaccio": "8.4.2",
"fs-extra": "8.1.0",
Expand All @@ -88,9 +88,9 @@
"kleur": "3.0.3",
"lint-staged": "8.2.1",
"nock": "12.0.3",
"npm-run-all": "^4.1.5",
"prettier": "2.0.5",
"rimraf": "3.0.2",
"npm-run-all": "^4.1.5",
"selfsigned": "1.10.7",
"standard-version": "8.0.0",
"supertest": "4.0.2",
Expand Down
28 changes: 14 additions & 14 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/auth": "5.0.0-alpha.0",
"@verdaccio/auth": "workspace:5.0.0-alpha.0",
"@verdaccio/commons-api": "workspace:*",
"@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/hooks": "5.0.0-alpha.0",
"@verdaccio/logger": "5.0.0-alpha.0",
"@verdaccio/middleware": "5.0.0-alpha.0",
"@verdaccio/store": "5.0.0-alpha.0",
"@verdaccio/utils": "5.0.0-alpha.0",
"debug": "^4.1.1",
"@verdaccio/dev-commons": "workspace:5.0.0-alpha.0",
"@verdaccio/hooks": "workspace:5.0.0-alpha.0",
"@verdaccio/logger": "workspace:5.0.0-alpha.0",
"@verdaccio/middleware": "workspace:5.0.0-alpha.0",
"@verdaccio/store": "workspace:5.0.0-alpha.0",
"@verdaccio/utils": "workspace:5.0.0-alpha.0",
"cookies": "0.8.0",
"debug": "^4.1.1",
"express": "4.17.1",
"semver": "7.3.2",
"lodash": "^4.17.15",
"mime": "2.4.4"
"lodash": "^4.17.20",
"mime": "2.4.4",
"semver": "7.3.2"
},
"devDependencies": {
"@verdaccio/config": "5.0.0-alpha.0",
"@verdaccio/server": "5.0.0-alpha.0",
"@verdaccio/dev-types": "5.0.0-alpha.0",
"@verdaccio/config": "workspace:5.0.0-alpha.0",
"@verdaccio/dev-types": "workspace:5.0.0-alpha.0",
"@verdaccio/server": "workspace:5.0.0-alpha.0",
"@verdaccio/types": "workspace:*",
"body-parser": "1.19.0",
"lodash": "^4.17.20",
Expand Down
14 changes: 7 additions & 7 deletions packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
"license": "MIT",
"dependencies": {
"@verdaccio/commons-api": "workspace:*",
"@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/loaders": "5.0.0-alpha.0",
"@verdaccio/logger": "5.0.0-alpha.0",
"@verdaccio/utils": "5.0.0-alpha.0",
"@verdaccio/dev-commons": "workspace:5.0.0-alpha.0",
"@verdaccio/loaders": "workspace:5.0.0-alpha.0",
"@verdaccio/logger": "workspace:5.0.0-alpha.0",
"@verdaccio/utils": "workspace:5.0.0-alpha.0",
"debug": "^4.1.1",
"express": "4.17.1",
"lodash": "4.17.15",
"debug": "^4.1.1"
"lodash": "4.17.15"
},
"devDependencies": {
"@verdaccio/config": "workspace:5.0.0-alpha.0",
"@verdaccio/mock": "workspace:5.0.0-alpha.0",
"@verdaccio/dev-types": "workspace:5.0.0-alpha.0",
"@verdaccio/mock": "workspace:5.0.0-alpha.0",
"@verdaccio/types": "workspace:*"
},
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
"bundle": "cross-env BABEL_ENV=registry webpack --config scripts/bundle.js --profile --json > compilation-stats.json"
},
"dependencies": {
"@verdaccio/config": "5.0.0-alpha.0",
"@verdaccio/logger": "5.0.0-alpha.0",
"@verdaccio/node-api": "5.0.0-alpha.0",
"@verdaccio/utils": "5.0.0-alpha.0",
"@verdaccio/config": "workspace:5.0.0-alpha.0",
"@verdaccio/logger": "workspace:5.0.0-alpha.0",
"@verdaccio/node-api": "workspace:5.0.0-alpha.0",
"@verdaccio/utils": "workspace:5.0.0-alpha.0",
"commander": "5.1.0",
"lodash": "^4.17.20",
"envinfo": "7.4.0",
"kleur": "3.0.3",
"lodash": "^4.17.20",
"semver": "7.3.2"
},
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
Expand Down
6 changes: 3 additions & 3 deletions packages/core/local-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"@verdaccio/file-locking": "workspace:*",
"@verdaccio/streams": "workspace:*",
"async": "^3.2.0",
"debug": "^4.1.1",
"level": "5.0.1",
"lodash": "^4.17.19",
"mkdirp": "^0.5.5",
"debug": "^4.1.1"
"lodash": "^4.17.20",
"mkdirp": "^0.5.5"
},
"devDependencies": {
"@types/minimatch": "^3.0.3",
Expand Down
18 changes: 9 additions & 9 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
"homepage": "https://verdaccio.org",
"dependencies": {
"@verdaccio/commons-api": "workspace:*",
"@verdaccio/logger": "5.0.0-alpha.0",
"@verdaccio/logger": "workspace:5.0.0-alpha.0",
"handlebars": "4.5.3",
"request": "2.87.0",
"lodash": "^4.17.20"
"lodash": "^4.17.20",
"request": "2.87.0"
},
"devDependencies": {
"@verdaccio/auth": "5.0.0-alpha.0",
"@verdaccio/config": "5.0.0-alpha.0",
"@verdaccio/utils": "5.0.0-alpha.0",
"@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/dev-types": "5.0.0-alpha.0",
"@verdaccio/types": "workspace:*"
"@verdaccio/auth": "workspace:5.0.0-alpha.0",
"@verdaccio/config": "workspace:5.0.0-alpha.0",
"@verdaccio/dev-commons": "workspace:5.0.0-alpha.0",
"@verdaccio/dev-types": "workspace:5.0.0-alpha.0",
"@verdaccio/types": "workspace:*",
"@verdaccio/utils": "workspace:5.0.0-alpha.0"
},
"scripts": {
"clean": "rimraf ./build",
Expand Down
1 change: 1 addition & 0 deletions packages/hooks/test/notify.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ describe('Notifications:: Notify', () => {
});

test('should send multiple notification', async () => {
const name = 'package';
// @ts-ignore
await notify({ name }, multiNotificationConfig, { name: 'foo' }, 'bar');

Expand Down
2 changes: 1 addition & 1 deletion packages/logger-prettify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@verdaccio/commons-api": "workspace:*",
"@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/dev-commons": "workspace:5.0.0-alpha.0",
"dayjs": "1.8.19",
"fast-safe-stringify": "2.0.7",
"kleur": "3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "cross-env BABEL_ENV=registry babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\" --source-maps"
},
"dependencies": {
"@verdaccio/logger-prettify": "5.0.0-alpha.0",
"@verdaccio/logger-prettify": "workspace:5.0.0-alpha.0",
"lodash": "4.17.15",
"pino": "5.17.0"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/middleware/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
},
"dependencies": {
"@verdaccio/commons-api": "workspace:*",
"@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/logger": "5.0.0-alpha.0",
"@verdaccio/utils": "5.0.0-alpha.0",
"@verdaccio/dev-commons": "workspace:5.0.0-alpha.0",
"@verdaccio/logger": "workspace:5.0.0-alpha.0",
"@verdaccio/utils": "workspace:5.0.0-alpha.0",
"lodash": "4.17.15"
},
"devDependencies": {
"@verdaccio/dev-types": "5.0.0-alpha.0"
"@verdaccio/dev-types": "workspace:5.0.0-alpha.0"
},
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
}
10 changes: 5 additions & 5 deletions packages/mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/utils": "5.0.0-alpha.0",
"@verdaccio/dev-commons": "workspace:5.0.0-alpha.0",
"@verdaccio/utils": "workspace:5.0.0-alpha.0",
"fs-extra": "^8.1.0",
"lodash": "^4.17.15",
"lodash": "^4.17.20",
"request": "2.87.0",
"supertest": "^4.0.2",
"verdaccio": "^4.4.0"
"verdaccio": "^4.8.1"
},
"devDependencies": {
"@verdaccio/dev-types": "5.0.0-alpha.0",
"@verdaccio/dev-types": "workspace:5.0.0-alpha.0",
"@verdaccio/types": "workspace:*"
},
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
Expand Down
Loading

0 comments on commit 8f9467c

Please sign in to comment.