chore: update deps and CI config (#1388)
This commit is contained in:
parent
eb372f2743
commit
716b515f39
9 changed files with 2374 additions and 1856 deletions
|
|
@ -10,11 +10,11 @@ aliases:
|
|||
- &restore_yarn_cache
|
||||
name: Restore Yarn cache
|
||||
keys:
|
||||
- yarn-{{ .Branch }}-packages-{{ checksum "yarn.lock" }}
|
||||
- yarn-packages-{{ checksum "yarn.lock" }}
|
||||
|
||||
- &save_yarn_cache
|
||||
name: Save Yarn cache
|
||||
key: yarn-{{ .Branch }}-packages-{{ checksum "yarn.lock" }}
|
||||
key: yarn-packages-{{ checksum "yarn.lock" }}
|
||||
paths:
|
||||
- ~/.cache/yarn
|
||||
|
||||
|
|
@ -101,10 +101,12 @@ jobs:
|
|||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- *attach_workspace
|
||||
- run: *install_yarn_version
|
||||
- restore_cache: *restore_yarn_cache
|
||||
- run: *run_yarn_install
|
||||
- save_cache: *save_yarn_cache
|
||||
- run: *restore_dist_folders
|
||||
- run:
|
||||
name: Type checking
|
||||
command: yarn run test:types
|
||||
|
|
@ -112,10 +114,12 @@ jobs:
|
|||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- *attach_workspace
|
||||
- run: *install_yarn_version
|
||||
- restore_cache: *restore_yarn_cache
|
||||
- run: *run_yarn_install
|
||||
- save_cache: *save_yarn_cache
|
||||
- run: *restore_dist_folders
|
||||
- run:
|
||||
name: Unit tests
|
||||
command: yarn run test --maxWorkers=4
|
||||
|
|
@ -123,10 +127,12 @@ jobs:
|
|||
<<: *defaults
|
||||
steps:
|
||||
- checkout
|
||||
- *attach_workspace
|
||||
- run: *install_yarn_version
|
||||
- restore_cache: *restore_yarn_cache
|
||||
- run: *run_yarn_install
|
||||
- save_cache: *save_yarn_cache
|
||||
- run: *restore_dist_folders
|
||||
- run:
|
||||
name: Release if needed
|
||||
command: yarn run shipjs trigger
|
||||
|
|
@ -134,10 +140,12 @@ jobs:
|
|||
<<: *cypress
|
||||
steps:
|
||||
- checkout
|
||||
- *attach_workspace
|
||||
- run: *install_yarn_version
|
||||
- restore_cache: *restore_yarn_cache
|
||||
- run: *run_yarn_install
|
||||
- save_cache: *save_yarn_cache
|
||||
- run: *restore_dist_folders
|
||||
- run:
|
||||
name: Cypress test Actions
|
||||
command: yarn run cy:run
|
||||
|
|
@ -150,10 +158,18 @@ workflows:
|
|||
- test_lint:
|
||||
requires:
|
||||
- build
|
||||
- test_types
|
||||
- test_unit
|
||||
- test_cypress
|
||||
- test_types:
|
||||
requires:
|
||||
- build
|
||||
- test_unit:
|
||||
requires:
|
||||
- build
|
||||
- test_cypress:
|
||||
requires:
|
||||
- build
|
||||
- release:
|
||||
requires:
|
||||
- build
|
||||
filters:
|
||||
branches:
|
||||
only: next
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@
|
|||
},
|
||||
{
|
||||
"path": "packages/docsearch-react/dist/umd/index.js",
|
||||
"maxSize": "20.15 kB"
|
||||
"maxSize": "20.25 kB"
|
||||
},
|
||||
{
|
||||
"path": "packages/docsearch-js/dist/umd/index.js",
|
||||
"maxSize": "28.05 kB"
|
||||
"maxSize": "28.15 kB"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[build]
|
||||
command="yarn run website:build"
|
||||
command="yarn build"
|
||||
publish="packages/website/build"
|
||||
ignore="git diff --quiet $COMMIT_REF $CACHED_COMMIT_REF -- packages/website/"
|
||||
|
||||
|
|
|
|||
36
package.json
36
package.json
|
|
@ -25,7 +25,6 @@
|
|||
"cy:verify": "cypress verify",
|
||||
"lint:css": "stylelint **/src/**/*.css",
|
||||
"lint": "eslint --ext .js,.ts,.tsx .",
|
||||
"prepare": "lerna run prepare",
|
||||
"playground:start": "yarn workspace @docsearch/react-example start",
|
||||
"playground-js:start": "yarn workspace @docsearch/js-example start",
|
||||
"release": "shipjs prepare",
|
||||
|
|
@ -61,38 +60,39 @@
|
|||
"babel-loader": "8.2.3",
|
||||
"babel-plugin-inline-replace-variables": "1.3.1",
|
||||
"babel-plugin-module-resolver": "4.0.0",
|
||||
"bundlesize": "0.18.0",
|
||||
"bundlesize": "0.18.1",
|
||||
"concurrently": "5.3.0",
|
||||
"cross-env": "7.0.2",
|
||||
"cross-env": "7.0.3",
|
||||
"cssnano": "4.1.10",
|
||||
"cypress": "9.6.0",
|
||||
"dotenv": "16.0.0",
|
||||
"eslint": "8.10.0",
|
||||
"cypress": "9.6.1",
|
||||
"dotenv": "16.0.1",
|
||||
"eslint": "8.15.0",
|
||||
"eslint-config-algolia": "20.0.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-plugin-cypress": "2.12.1",
|
||||
"eslint-plugin-eslint-comments": "3.2.0",
|
||||
"eslint-plugin-import": "2.25.4",
|
||||
"eslint-plugin-jest": "26.1.1",
|
||||
"eslint-plugin-jsdoc": "37.9.7",
|
||||
"eslint-plugin-import": "2.26.0",
|
||||
"eslint-plugin-jest": "26.2.2",
|
||||
"eslint-plugin-jsdoc": "39.2.9",
|
||||
"eslint-plugin-jsx-a11y": "6.5.1",
|
||||
"eslint-plugin-prettier": "4.0.0",
|
||||
"eslint-plugin-react": "7.29.3",
|
||||
"eslint-plugin-react-hooks": "4.3.0",
|
||||
"jest": "27.5.1",
|
||||
"jest-watch-typeahead": "1.0.0",
|
||||
"eslint-plugin-react": "7.29.4",
|
||||
"eslint-plugin-react-hooks": "4.5.0",
|
||||
"jest": "28.1.0",
|
||||
"jest-environment-jsdom": "28.1.0",
|
||||
"jest-watch-typeahead": "1.1.0",
|
||||
"lerna": "4.0.0",
|
||||
"postcss": "8.4.5",
|
||||
"prettier": "2.5.1",
|
||||
"react": "18.1.0",
|
||||
"react-dom": "18.1.0",
|
||||
"rollup": "1.31.0",
|
||||
"rollup": "1.32.1",
|
||||
"rollup-plugin-babel": "4.4.0",
|
||||
"rollup-plugin-commonjs": "10.1.0",
|
||||
"rollup-plugin-filesize": "9.1.2",
|
||||
"rollup-plugin-license": "2.6.1",
|
||||
"rollup-plugin-license": "2.7.0",
|
||||
"rollup-plugin-terser": "7.0.2",
|
||||
"shipjs": "0.24.3",
|
||||
"shipjs": "0.24.4",
|
||||
"start-server-and-test": "1.11.3",
|
||||
"stylelint": "14.5.3",
|
||||
"stylelint-a11y": "1.2.3",
|
||||
|
|
@ -102,8 +102,8 @@
|
|||
"stylelint-no-unsupported-browser-features": "5.0.2",
|
||||
"stylelint-order": "5.0.0",
|
||||
"stylelint-prettier": "2.0.0",
|
||||
"ts-jest": "27.1.3",
|
||||
"typescript": "4.6.2",
|
||||
"ts-jest": "28.0.2",
|
||||
"typescript": "4.6.4",
|
||||
"watch": "1.0.2",
|
||||
"webpack": "4.44.1"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
"build:clean": "rm -rf ./dist",
|
||||
"build:css": "node build-css.js",
|
||||
"build": "yarn build:clean && mkdir dist && yarn build:css",
|
||||
"prepare": "yarn build",
|
||||
"watch": "watch \"yarn build:css\" --ignoreDirectoryPattern \"/dist/\""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
"build:umd": "cross-env BUILD=umd rollup --config",
|
||||
"build": "yarn build:clean && yarn build:umd && yarn build:esm && yarn build:types",
|
||||
"on:change": "concurrently \"yarn build:esm\" \"yarn build:types\"",
|
||||
"prepare": "yarn build:esm && yarn build:types",
|
||||
"watch": "watch \"yarn on:change\" --ignoreDirectoryPattern \"/dist/\""
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -30,11 +30,10 @@
|
|||
"build:umd": "rollup --config",
|
||||
"build": "yarn build:clean && yarn build:umd && yarn build:esm && yarn build:types",
|
||||
"on:change": "concurrently \"yarn build:esm\" \"yarn build:types\"",
|
||||
"prepare": "yarn build:esm && yarn build:types",
|
||||
"watch": "watch \"yarn on:change\" --ignoreDirectoryPattern \"/dist/\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@algolia/autocomplete-core": "1.5.2",
|
||||
"@algolia/autocomplete-core": "1.6.3",
|
||||
"@docsearch/css": "3.0.0",
|
||||
"algoliasearch": "^4.0.0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
"dependencies": {
|
||||
"@algolia/ui-library": "4.0.0-beta.71",
|
||||
"@docsearch/react": "3.0.0",
|
||||
"@docusaurus/core": "2.0.0-beta.17",
|
||||
"@docusaurus/preset-classic": "2.0.0-beta.17",
|
||||
"@docusaurus/core": "2.0.0-beta.20",
|
||||
"@docusaurus/preset-classic": "2.0.0-beta.20",
|
||||
"@mdx-js/react": "1.6.22",
|
||||
"clsx": "1.1.1",
|
||||
"file-loader": "6.2.0",
|
||||
|
|
|
|||
Loading…
Reference in a new issue