Skip to content

Commit d6fc37a

Browse files
authored
Improve build tooling (#2775)
* build: upgrade yarn * build: yarn formatted yarnrc * docs: documentation update * build: add version check build step * build: replace clean/build scripts with just-scripts * build: use a gulp-based build system * build: make watch task consistent * build: move rollup deps to build pkg * build: remove shx from top, push it into docsite * build: delete old watch script * build: remove unnecessary lage command * build: pkg updates * build: define changeset * build: move version check outside of long build loop * build: move babel plugin to build pkg; break out dotfiles * build: add plugin-proposal-optional-chaining to babel stack * build: restore pipeline name to prevent build loops from parent pkg * build: work on pnp mode * build: get unit tests running in pnp * build: yarn config updates * build: pnpify some sdks, get tests running without a build * build: describe peer deps more completele in react-dnd * build: remove unnecessary devDeps from html5-backend; improve peerDeps * build: remove cra-test * build: use react 17-rc.3 * build: get docsite running * build: use yarn zero-install * build: remove pipeline script * build: use --topological-dev in build_all * build: correct hoist-non-react-statics import * build: remove SDI from react-dnd * build: revert sdi for now * build: revert react, get tests running
1 parent 5ff9fbf commit d6fc37a

File tree

2,706 files changed

+3592
-4988
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,706 files changed

+3592
-4988
lines changed

.eslintrc

Lines changed: 0 additions & 30 deletions
This file was deleted.

.eslintrc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["@typescript-eslint", "react-hooks", "no-for-of-loops"],
4+
"extends": [
5+
"eslint:recommended",
6+
"plugin:react/recommended",
7+
"plugin:@typescript-eslint/recommended",
8+
"prettier",
9+
"prettier/@typescript-eslint"
10+
],
11+
"settings": {
12+
"react": {
13+
"version": "16.8"
14+
}
15+
},
16+
"env": {
17+
"browser": true,
18+
"jest": true,
19+
"es6": true,
20+
"node": true
21+
},
22+
"rules": {
23+
"no-for-of-loops/no-for-of-loops": 2,
24+
"react/prop-types": 0,
25+
26+
// TODO: re-enable
27+
"@typescript-eslint/no-explicit-any": 0,
28+
"@typescript-eslint/explicit-module-boundary-types": 0
29+
}
30+
}

.github/workflows/node-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020

21+
- name: Changelog Chcek
22+
run: yarn version check
23+
2124
- run: yarn install
2225
name: Install Dependencies
2326

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ test-results.xml
1717
!.yarn/plugins
1818
!.yarn/sdks
1919
!.yarn/versions
20+
!.yarn/cache
2021
.pnp.*

.huskyrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "run-s precommit:lint precommit:format",
4+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
5+
}
6+
}

.lintstagedrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.{ts,tsx}": ["eslint --fix", "prettier"]
3+
}

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"useTabs": true,
6+
"overrides": [
7+
{
8+
"files": "*.md",
9+
"options": {
10+
"useTabs": false,
11+
"trailingComma": "none"
12+
}
13+
},
14+
{
15+
"files": "*.json",
16+
"options": {
17+
"useTabs": false,
18+
"tabWidth": 2
19+
}
20+
}
21+
]
22+
}

.vscode/extensions.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"esbenp.prettier-vscode",
5+
"arcanis.vscode-zipfs"
6+
]
37
}

.vscode/settings.json

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
{
2-
"search.exclude": {
3-
"**/node_modules": true,
4-
"**/bower_components": true
5-
},
6-
"editor.tabSize": 2,
7-
"[markdown]": {
8-
"editor.formatOnSave": true
9-
},
10-
"[typescript]": {
11-
"editor.formatOnSave": true
12-
},
13-
"[typescriptreact]": {
14-
"editor.formatOnSave": true
15-
}
2+
"search.exclude": {
3+
"**/node_modules": true,
4+
"**/bower_components": true,
5+
"**/.yarn": true,
6+
"**/.pnp.*": true
7+
},
8+
"editor.tabSize": 2,
9+
"[markdown]": {
10+
"editor.formatOnSave": true
11+
},
12+
"[typescript]": {
13+
"editor.formatOnSave": true
14+
},
15+
"[typescriptreact]": {
16+
"editor.formatOnSave": true
17+
},
18+
"eslint.nodePath": ".yarn/sdks",
19+
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
20+
"typescript.tsdk": ".yarn/sdks/typescript/lib",
21+
"typescript.enablePromptUseWorkspaceTsdk": true
1622
}

0 commit comments

Comments
 (0)