Skip to content

Commit

Permalink
Update Yarn to 3.3.1, Update Core Libraries (#3536)
Browse files Browse the repository at this point in the history
* upgrade to yarn 3.3.1

* update core libraries

* use rome formatter

* semver

* run rome fixes/formats

* add rome checks

* fix some yarn peerDeps

* test update

* replace prettier with rome in docsite

* update lockfile

* disable some eslint rules, add turborepo

* use turbo for build

* mark some tasks as internal

* add turbo-server to gh-action

* ignore tests with swcrc

* update tests to run per-package

* remove eslint dep from dnd-core

* push linting down into packages; use common linting config

* add release script to each package

* update vscode settings

* update rome checks

* enable turbo in ci

* add node 18 to test matrix

* set turbo-token env-var in CI

* minor doc update to test turbo

* update turbo globs

* readme update to test turbo
  • Loading branch information
darthtrevino committed Jan 20, 2023
1 parent 1c21045 commit 7c88c37
Show file tree
Hide file tree
Showing 104 changed files with 2,628 additions and 1,363 deletions.
12 changes: 0 additions & 12 deletions .eslintignore

This file was deleted.

71 changes: 0 additions & 71 deletions .eslintrc

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
.gitattributes text eol=lf
.gitignore text eol=lf
.eslintignore text eol=lf
.prettierignore text eol=lf
yarn.lock text eol=lf
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -32,10 +32,19 @@ jobs:
- run: yarn install
name: Install Dependencies

- name: TurboRepo local server
uses: felixmosh/turborepo-gh-artifacts@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
server-token: ${{ secrets.TURBO_TOKEN }}

- run: yarn ci
name: Execute Tests
env:
CI: true
TURBO_API: 'http://127.0.0.1:9080'
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: 'react-dnd'

- name: Publish coverage to codecov.io
uses: codecov/codecov-action@v1.0.13
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules/
packages/*/dist
packages/*/commonjs
packages/*/lib
.turbo/
.swc/
tsconfig.tsbuildinfo

Expand Down
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

4 changes: 0 additions & 4 deletions .lintstagedrc.json

This file was deleted.

14 changes: 0 additions & 14 deletions .prettierignore

This file was deleted.

22 changes: 0 additions & 22 deletions .prettierrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"arcanis.vscode-zipfs"
"arcanis.vscode-zipfs",
"rome.rome"
]
}
26 changes: 23 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,33 @@
"editor.formatOnSave": true
},
"[typescript]": {
"editor.formatOnSave": true
"editor.formatOnSave": true,
"editor.defaultFormatter": "rome.rome"
},
"[typescriptreact]": {
"editor.formatOnSave": true
"editor.formatOnSave": true,
"editor.defaultFormatter": "rome.rome"
},
"[javascript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "rome.rome"
},
"[javascriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "rome.rome"
},
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
"package.json": ".npmignore, turbo.json, tsconfig.json, tsconfig.*.json, jest.config.js, rome.json, .eslintrc.*, .swcrc",
".yarnrc.yml": "yarn.lock, .pnp.cjs, .pnp.loader.mjs",
".eslintrc": ".eslintignore",
".gitignore": ".gitattributes",
"README.md": "LICENSE, CODEOWNERS, CHANGELOG.md, CONTRIBUTING.md, SECURITY.md, SUPPORT.md, CODE_OF_CONDUCT.md"
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
"typescript.enablePromptUseWorkspaceTsdk": true,

}
510 changes: 263 additions & 247 deletions .yarn/releases/yarn-3.3.0.cjs → .yarn/releases/yarn-3.3.1.cjs

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions .yarn/versions/e5f3b114.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
releases:
"@react-dnd/asap": patch
"@react-dnd/invariant": patch
"@react-dnd/shallowequal": patch
dnd-core: patch
react-dnd: patch
react-dnd-examples: patch
react-dnd-html5-backend: patch
react-dnd-test-backend: patch
react-dnd-test-utils: patch
react-dnd-touch-backend: patch

declined:
- react-dnd-documentation
- test-suite-cra
- test-suite-vite
15 changes: 7 additions & 8 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ enableInlineHunks: true
npmAuthToken: "${NPM_AUTH_TOKEN-emptytoken}"

packageExtensions:
alex@*:
dependencies:
supports-color: ^7.2.0
babel-preset-react-app@*:
dependencies:
"@babel/plugin-proposal-private-property-in-object": "*"
gatsby@*:
dependencies:
"@babel/types": ^7.12.0
babel-plugin-styled-components: ^1.11.1
react-frame-component@*:
peerDependenciesMeta:
react-dom: { optional: true }
'@testing-library/react@*':
peerDependenciesMeta:
react-dom: { optional: true }

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
Expand All @@ -29,4 +28,4 @@ plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

yarnPath: .yarn/releases/yarn-3.3.0.cjs
yarnPath: .yarn/releases/yarn-3.3.1.cjs
40 changes: 0 additions & 40 deletions jest.config.js

This file was deleted.

0 comments on commit 7c88c37

Please sign in to comment.