Skip to content

Commit c090ee4

Browse files
authored
Update Libraries (#1545)
* chore: update libraries * chore: udpate libraries * build: update prettier rules for json files * docs: udpate gatsby configuration * fix: various linting updates * build: remove direct typescript dependency from examples packages * fix: lint corrections * fix: lint fixes, docsite alias corrections
1 parent 1d1c158 commit c090ee4

File tree

44 files changed

+4414
-5276
lines changed

Some content is hidden

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

44 files changed

+4414
-5276
lines changed

__tests__/cjs-builds.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-var-requires */
12
describe('CommonJS Builds', () => {
23
it('dnd-core', () => expect(require('dnd-core-cjs')).toBeDefined())
34
it('react-dnd', () => expect(require('react-dnd-cjs')).toBeDefined())

package.json

Lines changed: 194 additions & 185 deletions
Original file line numberDiff line numberDiff line change
@@ -1,187 +1,196 @@
11
{
2-
"name": "react-dnd-parent",
3-
"private": true,
4-
"description": "React-DnD Monorepo",
5-
"repository": {
6-
"type": "git",
7-
"url": "https://github.com/react-dnd/react-dnd.git"
8-
},
9-
"keywords": [
10-
"react",
11-
"reactjs",
12-
"file",
13-
"drag",
14-
"drop",
15-
"html5",
16-
"draggable",
17-
"droppable",
18-
"drag-and-drop",
19-
"dnd",
20-
"javascript",
21-
"react-component",
22-
"hoc"
23-
],
24-
"author": "Dan Abramov <dan.abramov@me.com> (http://github.com/gaearon)",
25-
"contributors": [
26-
"Chris Trevino <darthtrevino@gmail.com> (http://github.com/darthtrevino)",
27-
"Jordan Gensler (http://github.com/kesne)",
28-
"Gagan (https://github.com/thetechie)"
29-
],
30-
"license": "MIT",
31-
"bugs": {
32-
"url": "https://github.com/react-dnd/react-dnd/issues"
33-
},
34-
"homepage": "https://github.com/react-dnd/react-dnd",
35-
"scripts": {
36-
"clean": "lerna run clean",
37-
"build_packages": "lerna run build --stream",
38-
"build_cjs": "node scripts/execute_cjs_replacements.js",
39-
"build": "run-s build_packages build_cjs bundle_umd_libs copy_umd_libs",
40-
"bundle_umd_libs:development": "webpack --mode development",
41-
"bundle_umd_libs:production": "webpack --mode production",
42-
"bundle_umd_libs": "run-p bundle_umd_libs:*",
43-
"copy_umd_libs": "./scripts/copy_umd_packages.sh",
44-
"unit_test": "jest",
45-
"jest:watch": "jest --watch",
46-
"jest:cov": "jest --coverage",
47-
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
48-
"changelog": "conventional-changelog -p eslint -i CHANGELOG.md -s -r 0",
49-
"release": "run-s clean build go_no_go release:packages changelog",
50-
"release:packages": "lerna publish",
51-
"test_modules": "CI=true lerna run test --stream",
52-
"go_no_go": "node scripts/go_no_go.js",
53-
"release_docs": "lerna run release --stream --scope react-dnd-documentation",
54-
"test": "run-s clean lint build test_modules jest:cov",
55-
"prettify": "prettier 'packages/*/**/*.js' 'examples/**/*.js' 'site/**/*.js'",
56-
"precommit:lint": "lint-staged",
57-
"precommit:format": "pretty-quick --staged",
58-
"preinstall": "node scripts/create_cjs_modules.js",
59-
"start": "lerna run --parallel --stream start",
60-
"start_docs": "lerna run --stream start --scope react-dnd-documentation",
61-
"watch": "lerna run --parallel --stream watch"
62-
},
63-
"husky": {
64-
"hooks": {
65-
"pre-commit": "run-s precommit:lint precommit:format",
66-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
67-
}
68-
},
69-
"devDependencies": {
70-
"@babel/cli": "^7.5.0",
71-
"@babel/core": "^7.5.4",
72-
"@babel/plugin-proposal-class-properties": "^7.5.0",
73-
"@babel/plugin-proposal-object-rest-spread": "^7.5.4",
74-
"@babel/preset-env": "^7.5.4",
75-
"@commitlint/cli": "^8.0.0",
76-
"@commitlint/config-conventional": "^8.0.0",
77-
"@types/jest": "^24.0.15",
78-
"@typescript-eslint/eslint-plugin": "^1.11.0",
79-
"@typescript-eslint/parser": "^1.11.0",
80-
"conventional-changelog-cli": "^2.0.23",
81-
"enzyme": "^3.9.0",
82-
"enzyme-adapter-react-16": "^1.11.2",
83-
"eslint": "^6.0.1",
84-
"eslint-config-prettier": "^6.0.0",
85-
"eslint-config-react-app": "^4.0.1",
86-
"eslint-plugin-no-for-of-loops": "^1.0.1",
87-
"eslint-plugin-prettier": "^3.1.0",
88-
"eslint-plugin-react": "^7.14.2",
89-
"eslint-plugin-react-hooks": "^1.6.1",
90-
"husky": "^3.0.0",
91-
"inquirer": "^6.5.0",
92-
"jest": "^24.8.0",
93-
"jest-environment-jsdom": "^24.8.0",
94-
"lerna": "^3.15.0",
95-
"lint-staged": "^9.0.2",
96-
"npm": "^6.9.0",
97-
"npm-run-all": "^4.1.5",
98-
"prettier": "^1.18.2",
99-
"pretty-quick": "^1.11.1",
100-
"react": "^16.8.6",
101-
"react-dom": "^16.8.6",
102-
"replace-in-file": "^4.1.0",
103-
"ts-jest": "^24.0.2",
104-
"typescript": "^3.5.2",
105-
"webpack-cli": "^3.3.5"
106-
},
107-
"jest": {
108-
"clearMocks": true,
109-
"setupFilesAfterEnv": [
110-
"<rootDir>/jest/setup-enzyme.js"
111-
],
112-
"moduleFileExtensions": [
113-
"ts",
114-
"tsx",
115-
"js",
116-
"jsx"
117-
],
118-
"modulePaths": [
119-
"<rootDir>/packages/core/",
120-
"<rootDir>/packages/testing/"
121-
],
122-
"moduleNameMapper": {
123-
"^dnd-core$": "dnd-core/dist/cjs",
124-
"^react-dnd$": "react-dnd/dist/cjs",
125-
"^react-dnd-html5-backend$": "html5-backend/dist/cjs",
126-
"^react-dnd-touch-backend$": "touch-backend/dist/cjs",
127-
"^react-dnd-test-backend$": "react-dnd-test-backend/dist/cjs",
128-
"^react-dnd-test-utils$": "react-dnd-test-utils/dist/cjs"
129-
},
130-
"collectCoverageFrom": [
131-
"packages/core/**/*.{ts,tsx}",
132-
"!**/node_modules/**",
133-
"!**/lib/**",
134-
"!**/__tests__/**"
135-
],
136-
"testMatch": [
137-
"<rootDir>/__tests__/**/?(*.)(spec|test).ts(x|)",
138-
"<rootDir>/packages/core/dnd-core/src/**/__tests__/**/?(*.)(spec|test).ts(x|)",
139-
"<rootDir>/packages/core/react-dnd/src/**/__tests__/**/?(*.)(spec|test).ts(x|)",
140-
"<rootDir>/packages/core/html5-backend/src/**/__tests__/**/?(*.)(spec|test).ts(x|)",
141-
"<rootDir>/packages/core/touch-backend/src/**/__tests__/**/?(*.)(spec|test).ts(x|)"
142-
],
143-
"transform": {
144-
"^.+\\.(ts|tsx)$": "ts-jest"
145-
},
146-
"globals": {
147-
"ts-jest": {
148-
"tsConfig": "tsconfig.jest.json",
149-
"diagnostics": {
150-
"pathRegex": "/.(spec|test).ts$/"
151-
}
152-
}
153-
}
154-
},
155-
"lint-staged": {
156-
"*.{ts,tsx}": [
157-
"eslint --fix",
158-
"git add"
159-
]
160-
},
161-
"prettier": {
162-
"semi": false,
163-
"singleQuote": true,
164-
"trailingComma": "all",
165-
"useTabs": true,
166-
"overrides": [
167-
{
168-
"files": "*.md",
169-
"options": {
170-
"useTabs": false
171-
}
172-
}
173-
]
174-
},
175-
"workspaces": {
176-
"packages": [
177-
"packages/alternative_builds/umd",
178-
"packages/alternative_builds/cjs/*",
179-
"packages/documentation/*",
180-
"packages/testing/*",
181-
"packages/core/*"
182-
]
183-
},
184-
"dependencies": {
185-
"@types/enzyme": "^3.9.3"
186-
}
2+
"name": "react-dnd-parent",
3+
"private": true,
4+
"description": "React-DnD Monorepo",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/react-dnd/react-dnd.git"
8+
},
9+
"keywords": [
10+
"react",
11+
"reactjs",
12+
"file",
13+
"drag",
14+
"drop",
15+
"html5",
16+
"draggable",
17+
"droppable",
18+
"drag-and-drop",
19+
"dnd",
20+
"javascript",
21+
"react-component",
22+
"hoc"
23+
],
24+
"author": "Dan Abramov <dan.abramov@me.com> (http://github.com/gaearon)",
25+
"contributors": [
26+
"Chris Trevino <darthtrevino@gmail.com> (http://github.com/darthtrevino)",
27+
"Jordan Gensler (http://github.com/kesne)",
28+
"Gagan (https://github.com/thetechie)"
29+
],
30+
"license": "MIT",
31+
"bugs": {
32+
"url": "https://github.com/react-dnd/react-dnd/issues"
33+
},
34+
"homepage": "https://github.com/react-dnd/react-dnd",
35+
"scripts": {
36+
"clean": "lerna run clean",
37+
"build_packages": "lerna run build --stream",
38+
"build_cjs": "node scripts/execute_cjs_replacements.js",
39+
"build": "run-s build_packages build_cjs bundle_umd_libs copy_umd_libs",
40+
"bundle_umd_libs:development": "webpack --mode development",
41+
"bundle_umd_libs:production": "webpack --mode production",
42+
"bundle_umd_libs": "run-p bundle_umd_libs:*",
43+
"copy_umd_libs": "./scripts/copy_umd_packages.sh",
44+
"unit_test": "jest",
45+
"jest:watch": "jest --watch",
46+
"jest:cov": "jest --coverage",
47+
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
48+
"changelog": "conventional-changelog -p eslint -i CHANGELOG.md -s -r 0",
49+
"release": "run-s clean build go_no_go release:packages changelog",
50+
"release:packages": "lerna publish",
51+
"test_modules": "CI=true lerna run test --stream",
52+
"go_no_go": "node scripts/go_no_go.js",
53+
"release_docs": "lerna run release --stream --scope react-dnd-documentation",
54+
"test": "run-s clean lint build test_modules jest:cov",
55+
"prettify": "prettier 'packages/*/**/*.js' 'examples/**/*.js' 'site/**/*.js'",
56+
"precommit:lint": "lint-staged",
57+
"precommit:format": "pretty-quick --staged",
58+
"preinstall": "node scripts/create_cjs_modules.js",
59+
"start": "lerna run --parallel --stream start",
60+
"start_docs": "lerna run --stream start --scope react-dnd-documentation",
61+
"watch": "lerna run --parallel --stream watch"
62+
},
63+
"husky": {
64+
"hooks": {
65+
"pre-commit": "run-s precommit:lint precommit:format",
66+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
67+
}
68+
},
69+
"devDependencies": {
70+
"@babel/cli": "^7.6.0",
71+
"@babel/core": "^7.6.0",
72+
"@babel/plugin-proposal-class-properties": "^7.5.5",
73+
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
74+
"@babel/preset-env": "^7.6.0",
75+
"@commitlint/cli": "^8.2.0",
76+
"@commitlint/config-conventional": "^8.2.0",
77+
"@types/jest": "^24.0.18",
78+
"@typescript-eslint/eslint-plugin": "^2.3.0",
79+
"@typescript-eslint/parser": "^2.3.0",
80+
"conventional-changelog-cli": "^2.0.23",
81+
"enzyme": "^3.10.0",
82+
"enzyme-adapter-react-16": "^1.14.0",
83+
"eslint": "^6.4.0",
84+
"eslint-config-prettier": "^6.3.0",
85+
"eslint-config-react-app": "^5.0.2",
86+
"eslint-plugin-no-for-of-loops": "^1.0.1",
87+
"eslint-plugin-prettier": "^3.1.1",
88+
"eslint-plugin-react": "^7.14.3",
89+
"eslint-plugin-react-hooks": "^2.0.1",
90+
"husky": "^3.0.5",
91+
"inquirer": "^7.0.0",
92+
"jest": "^24.9.0",
93+
"jest-environment-jsdom": "^24.9.0",
94+
"lerna": "^3.16.4",
95+
"lint-staged": "^9.2.5",
96+
"npm-run-all": "^4.1.5",
97+
"prettier": "^1.18.2",
98+
"pretty-quick": "^1.11.1",
99+
"react": "^16.9.0",
100+
"react-dom": "16.9.0",
101+
"replace-in-file": "^4.1.3",
102+
"ts-jest": "^24.1.0",
103+
"typescript": "^3.6.3",
104+
"webpack-cli": "^3.3.9"
105+
},
106+
"jest": {
107+
"clearMocks": true,
108+
"setupFilesAfterEnv": [
109+
"<rootDir>/jest/setup-enzyme.js"
110+
],
111+
"moduleFileExtensions": [
112+
"ts",
113+
"tsx",
114+
"js",
115+
"jsx"
116+
],
117+
"modulePaths": [
118+
"<rootDir>/packages/core/",
119+
"<rootDir>/packages/testing/"
120+
],
121+
"moduleNameMapper": {
122+
"^dnd-core$": "dnd-core/dist/cjs",
123+
"^react-dnd$": "react-dnd/dist/cjs",
124+
"^react-dnd-html5-backend$": "html5-backend/dist/cjs",
125+
"^react-dnd-touch-backend$": "touch-backend/dist/cjs",
126+
"^react-dnd-test-backend$": "react-dnd-test-backend/dist/cjs",
127+
"^react-dnd-test-utils$": "react-dnd-test-utils/dist/cjs"
128+
},
129+
"collectCoverageFrom": [
130+
"packages/core/**/*.{ts,tsx}",
131+
"!**/node_modules/**",
132+
"!**/lib/**",
133+
"!**/__tests__/**"
134+
],
135+
"testMatch": [
136+
"<rootDir>/__tests__/**/?(*.)(spec|test).ts(x|)",
137+
"<rootDir>/packages/core/dnd-core/src/**/__tests__/**/?(*.)(spec|test).ts(x|)",
138+
"<rootDir>/packages/core/react-dnd/src/**/__tests__/**/?(*.)(spec|test).ts(x|)",
139+
"<rootDir>/packages/core/html5-backend/src/**/__tests__/**/?(*.)(spec|test).ts(x|)",
140+
"<rootDir>/packages/core/touch-backend/src/**/__tests__/**/?(*.)(spec|test).ts(x|)"
141+
],
142+
"transform": {
143+
"^.+\\.(ts|tsx)$": "ts-jest"
144+
},
145+
"globals": {
146+
"ts-jest": {
147+
"tsConfig": "tsconfig.jest.json",
148+
"diagnostics": {
149+
"pathRegex": "/.(spec|test).ts$/"
150+
}
151+
}
152+
}
153+
},
154+
"lint-staged": {
155+
"*.{ts,tsx}": [
156+
"eslint --fix",
157+
"git add"
158+
]
159+
},
160+
"prettier": {
161+
"semi": false,
162+
"singleQuote": true,
163+
"trailingComma": "all",
164+
"useTabs": true,
165+
"overrides": [
166+
{
167+
"files": "*.md",
168+
"options": {
169+
"useTabs": false
170+
}
171+
},
172+
{
173+
"files": "*.json",
174+
"options": {
175+
"useTabs": false,
176+
"tabWidth": 2
177+
}
178+
}
179+
]
180+
},
181+
"workspaces": {
182+
"packages": [
183+
"packages/alternative_builds/umd",
184+
"packages/alternative_builds/cjs/*",
185+
"packages/documentation/*",
186+
"packages/testing/*",
187+
"packages/core/*"
188+
],
189+
"nohoist": [
190+
"react-dnd-documentation/**"
191+
]
192+
},
193+
"dependencies": {
194+
"@types/enzyme": "^3.10.3"
195+
}
187196
}

0 commit comments

Comments
 (0)