Skip to content

Commit

Permalink
internal: Explicitly include only examples needed by CI (#3329)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Dec 24, 2024
1 parent 96bb786 commit a06cf20
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 38 deletions.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ jobs:
name: Add examples/* to yarn workspace
command: |
npm pkg delete workspaces[4]
npm pkg delete workspaces[3]
npm pkg delete workspaces[2]
npm pkg delete workspaces[1]
npm pkg set 'workspaces[]'='examples/todo-app'
npm pkg set 'workspaces[]'='examples/github-app'
npm pkg set 'workspaces[]'='examples/normalizr-relationships'
- restore_cache:
keys:
- v14-dependencies-{{ checksum "yarn.lock" }}-{{ checksum "examples/github-app/package.json" }}-{{ checksum "examples/todo-app/package.json" }}
Expand All @@ -55,7 +59,9 @@ jobs:
# explicitly list so we can ignore some directories that are not needed
- project/.yarn
- project/__tests__
- project/examples
- project/examples/todo-app
- project/examples/github-app
- project/examples/normalizr-relationships
- project/node_modules
- project/packages
- project/scripts
Expand Down
10 changes: 1 addition & 9 deletions examples/normalizr-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@
"devDependencies": {
"@babel/core": "7.26.0",
"@babel/node": "7.26.0",
"@types/babel__core": "^7",
"rollup": "2.79.2",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-filesize": "^9.1.2",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^7.0.2"
"@types/babel__core": "^7"
}
}
14 changes: 3 additions & 11 deletions examples/normalizr-redux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,14 @@
"devDependencies": {
"@babel/core": "7.26.0",
"@babel/node": "7.26.0",
"@data-client/normalizr": "workspace:*",
"@octokit/rest": "21.0.2",
"@types/babel__core": "^7",
"inquirer": "^12.0.0",
"redux": "5.0.1",
"redux-thunk": "^2.3.0",
"rollup": "2.79.2",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-filesize": "^9.1.2",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^7.0.2"
"redux-thunk": "^2.3.0"
},
"dependencies": {
"@data-client/endpoint": "workspace:^"
"@data-client/endpoint": "workspace:*",
"@data-client/normalizr": "workspace:*"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build:bundle": "yarn workspaces foreach -Wptiv --no-private run build:bundle",
"build:clean": "yarn workspaces foreach -Wpti --no-private run build:clean",
"build:types": "yarn build:copy:ambient && tsc --build && yarn workspaces foreach -Wpti --no-private run build:legacy-types",
"ci:build": "yarn ci:build:types && yarn workspaces foreach -Wptiv --no-private run build:lib",
"ci:build:types": "yarn build:copy:ambient && tsc --build",
"ci:build:legacy-types": "yarn workspaces foreach -WptivR -j 10 --from @data-client/react --from @data-client/rest --from @data-client/graphql run build:legacy-types",
"ci:build-test-lib": "yarn workspace @data-client/test run build:lib && yarn workspace @data-client/test run build:bundle",
Expand Down
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"@docusaurus/theme-live-codeblock": "^3.0.1",
"@docusaurus/theme-mermaid": "^3.0.1",
"@js-temporal/polyfill": "^0.4.4",
"@mdx-js/react": "^3.1.0",
"@monaco-editor/react": "^4.4.6",
"@number-flow/react": "^0.4.0",
"bignumber.js": "9.1.2",
Expand Down
31 changes: 14 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5125,6 +5125,18 @@ __metadata:
languageName: node
linkType: hard

"@mdx-js/react@npm:^3.1.0":
version: 3.1.0
resolution: "@mdx-js/react@npm:3.1.0"
dependencies:
"@types/mdx": "npm:^2.0.0"
peerDependencies:
"@types/react": ">=16"
react: ">=16"
checksum: 10c0/381ed1211ba2b8491bf0ad9ef0d8d1badcdd114e1931d55d44019d4b827cc2752586708f9c7d2f9c3244150ed81f1f671a6ca95fae0edd5797fb47a22e06ceca
languageName: node
linkType: hard

"@mermaid-js/parser@npm:^0.3.0":
version: 0.3.0
resolution: "@mermaid-js/parser@npm:0.3.0"
Expand Down Expand Up @@ -21984,14 +21996,6 @@ __metadata:
"@data-client/endpoint": "workspace:^"
"@data-client/normalizr": "workspace:^"
"@types/babel__core": "npm:^7"
rollup: "npm:2.79.2"
rollup-plugin-babel: "npm:^4.4.0"
rollup-plugin-commonjs: "npm:^10.1.0"
rollup-plugin-filesize: "npm:^9.1.2"
rollup-plugin-json: "npm:^4.0.0"
rollup-plugin-node-resolve: "npm:^5.2.0"
rollup-plugin-replace: "npm:^2.2.0"
rollup-plugin-terser: "npm:^7.0.2"
languageName: unknown
linkType: soft

Expand All @@ -22001,21 +22005,13 @@ __metadata:
dependencies:
"@babel/core": "npm:7.26.0"
"@babel/node": "npm:7.26.0"
"@data-client/endpoint": "workspace:^"
"@data-client/endpoint": "workspace:*"
"@data-client/normalizr": "workspace:*"
"@octokit/rest": "npm:21.0.2"
"@types/babel__core": "npm:^7"
inquirer: "npm:^12.0.0"
redux: "npm:5.0.1"
redux-thunk: "npm:^2.3.0"
rollup: "npm:2.79.2"
rollup-plugin-babel: "npm:^4.4.0"
rollup-plugin-commonjs: "npm:^10.1.0"
rollup-plugin-filesize: "npm:^9.1.2"
rollup-plugin-json: "npm:^4.0.0"
rollup-plugin-node-resolve: "npm:^5.2.0"
rollup-plugin-replace: "npm:^2.2.0"
rollup-plugin-terser: "npm:^7.0.2"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -25452,6 +25448,7 @@ __metadata:
"@docusaurus/theme-live-codeblock": "npm:^3.0.1"
"@docusaurus/theme-mermaid": "npm:^3.0.1"
"@js-temporal/polyfill": "npm:^0.4.4"
"@mdx-js/react": "npm:^3.1.0"
"@monaco-editor/react": "npm:^4.4.6"
"@number-flow/react": "npm:^0.4.0"
"@tsconfig/docusaurus": "npm:^2.0.0"
Expand Down

0 comments on commit a06cf20

Please sign in to comment.