Skip to content

Commit

Permalink
chore: update deps and CI config (#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored May 17, 2022
1 parent eb372f2 commit 716b515
Show file tree
Hide file tree
Showing 9 changed files with 2,396 additions and 1,878 deletions.
26 changes: 21 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -101,43 +101,51 @@ 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
test_unit:
<<: *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
release:
<<: *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
test_cypress:
<<: *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
Expand All @@ -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
4 changes: 2 additions & 2 deletions bundlesize.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -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/"

Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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"
}
Expand Down
1 change: 0 additions & 1 deletion packages/docsearch-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/\""
}
}
1 change: 0 additions & 1 deletion packages/docsearch-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 1 addition & 2 deletions packages/docsearch-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading

0 comments on commit 716b515

Please sign in to comment.