chore: update dependencies

This commit is contained in:
mathuo 2023-10-22 15:15:53 +01:00
parent 318cbd6854
commit 8e6f7bf808
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
12 changed files with 1195 additions and 1942 deletions

View File

@ -24,7 +24,6 @@ jobs:
${{ runner.os }}-node- ${{ runner.os }}-node-
- run: yarn - run: yarn
- run: npm run bootstrap
- run: npm run build - run: npm run build
- run: npm run test:cov - run: npm run test:cov
- name: SonarCloud Scan - name: SonarCloud Scan

1
jest-setup.ts Normal file
View File

@ -0,0 +1 @@
import '@testing-library/jest-dom';

View File

@ -8,7 +8,7 @@ const config: JestConfigWithTsJest = {
collectCoverageFrom: ['<rootDir>/packages/*/src/**/*.{js,jsx,ts,tsx}'], collectCoverageFrom: ['<rootDir>/packages/*/src/**/*.{js,jsx,ts,tsx}'],
coveragePathIgnorePatterns: [ coveragePathIgnorePatterns: [
'/node_modules/', '/node_modules/',
'<rootDir>packages/*/src/__tests__/', '<rootDir>/packages/*/src/__tests__/',
], ],
coverageDirectory: 'coverage', coverageDirectory: 'coverage',
testResultsProcessor: 'jest-sonar-reporter', testResultsProcessor: 'jest-sonar-reporter',

View File

@ -2,7 +2,6 @@
"packages": [ "packages": [
"packages/*" "packages/*"
], ],
"useWorkspaces": true,
"version": "1.8.4", "version": "1.8.4",
"npmClient": "yarn", "npmClient": "yarn",
"command": { "command": {

View File

@ -1,76 +1,71 @@
{ {
"name": "dockview-monorepo-root", "name": "dockview-monorepo-root",
"private": true, "private": true,
"workspaces": [
"packages/*"
],
"nohoist": [
"**/babel-jest",
"**/babel-jest/**"
],
"description": "Monorepo for https://github.com/mathuo/dockview", "description": "Monorepo for https://github.com/mathuo/dockview",
"scripts": { "homepage": "https://github.com/mathuo/dockview#readme",
"test": "jest", "bugs": {
"lint": "eslint packages/**/src/** --ext .ts,.tsx,.js,.jsx", "url": "https://github.com/mathuo/dockview/issues"
"package": "node scripts/package.js",
"package-all": "lerna run docs --scope '{dockview-core,dockview}' && node scripts/package.js",
"build": "lerna run build --scope '{dockview-core,dockview}'",
"clean": "lerna run clean",
"bootstrap": "lerna bootstrap",
"test:cov": "jest --coverage",
"set-experimental-versions": "node scripts/set-experimental-versions",
"version-beta-build": "lerna version prerelease --preid beta",
"publish-app": "lerna publish",
"docs": "typedoc",
"package-docs": "node scripts/package-docs.js",
"generate-docs": "node scripts/docs.mjs"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/mathuo/dockview.git" "url": "git+https://github.com/mathuo/dockview.git"
}, },
"author": "https://github.com/mathuo",
"license": "MIT", "license": "MIT",
"bugs": { "author": "https://github.com/mathuo",
"url": "https://github.com/mathuo/dockview/issues" "workspaces": [
"packages/*"
],
"scripts": {
"build": "lerna run build --scope '{dockview-core,dockview}'",
"clean": "lerna run clean",
"docs": "typedoc",
"generate-docs": "node scripts/docs.mjs",
"lint": "eslint packages/**/src/** --ext .ts,.tsx,.js,.jsx",
"package": "node scripts/package.js",
"package-docs": "node scripts/package-docs.js",
"set-experimental-versions": "node scripts/set-experimental-versions",
"test": "jest",
"test:cov": "jest --coverage",
"version": "lerna version"
},
"resolutions": {
"@types/react": "^18.2.31",
"@types/react-dom": "^18.2.14"
}, },
"homepage": "https://github.com/mathuo/dockview#readme",
"devDependencies": { "devDependencies": {
"@testing-library/dom": "^8.20.0", "@rollup/plugin-node-resolve": "^15.2.3",
"@testing-library/jest-dom": "^5.16.5", "@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.0.0",
"@total-typescript/shoehorn": "^0.1.1", "@total-typescript/shoehorn": "^0.1.1",
"@types/jest": "^29.4.0", "@types/jest": "^29.5.6",
"@typescript-eslint/eslint-plugin": "^5.52.0", "@types/react": "^18.2.31",
"@typescript-eslint/parser": "^5.52.0", "@types/react-dom": "^18.2.14",
"codecov": "^3.8.3", "@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"css-loader": "^6.7.3", "eslint": "^8.52.0",
"eslint": "^8.34.0", "fs-extra": "^11.1.1",
"fs-extra": "^11.1.0",
"gulp": "^4.0.2", "gulp": "^4.0.2",
"gulp-concat": "^2.6.1", "gulp-concat": "^2.6.1",
"gulp-dart-sass": "^1.0.2", "gulp-dart-sass": "^1.1.0",
"jest": "^29.5.0", "jest": "^29.7.0",
"jest-environment-jsdom": "^29.4.3", "jest-environment-jsdom": "^29.7.0",
"jest-sonar-reporter": "^2.0.0", "jest-sonar-reporter": "^2.0.0",
"jsdom": "^21.1.0", "jsdom": "^22.1.0",
"lerna": "^6.5.1", "lerna": "^7.4.1",
"merge2": "^1.4.1", "react": "^18.2.0",
"rimraf": "^4.1.2", "react-dom": "^18.2.0",
"sass": "^1.58.1", "rimraf": "^5.0.5",
"sass-loader": "^13.2.0", "rollup": "^4.1.4",
"style-loader": "^3.3.1", "rollup-plugin-postcss": "^4.0.2",
"ts-jest": "^29.0.5", "ts-jest": "^29.1.1",
"ts-loader": "^9.4.2", "ts-loader": "^9.5.0",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"tslib": "^2.5.0", "tslib": "^2.6.2",
"typedoc": "^0.24.7", "typedoc": "^0.25.2",
"typescript": "^4.9.5", "typescript": "^5.2.2"
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1"
},
"dependencies": {
"@microsoft/tsdoc": "^0.14.2"
} }
} }

View File

@ -12,6 +12,7 @@ const config: JestConfigWithTsJest = {
setupFiles: [ setupFiles: [
'<rootDir>/packages/dockview-core/src/__tests__/__mocks__/resizeObserver.js', '<rootDir>/packages/dockview-core/src/__tests__/__mocks__/resizeObserver.js',
], ],
setupFilesAfterEnv: ['<rootDir>/jest-setup.ts'],
coveragePathIgnorePatterns: ['/node_modules/'], coveragePathIgnorePatterns: ['/node_modules/'],
modulePathIgnorePatterns: [ modulePathIgnorePatterns: [
'<rootDir>/packages/dockview-core/src/__tests__/__mocks__', '<rootDir>/packages/dockview-core/src/__tests__/__mocks__',

View File

@ -2,35 +2,6 @@
"name": "dockview-core", "name": "dockview-core",
"version": "1.8.4", "version": "1.8.4",
"description": "Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support", "description": "Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support",
"main": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts",
"module": "./dist/esm/index.js",
"repository": {
"type": "git",
"url": "https://github.com/mathuo/dockview.git"
},
"bugs": {
"url": "https://github.com/mathuo/dockview/issues"
},
"homepage": "https://github.com/mathuo/dockview",
"scripts": {
"build:package": "npm run build:cjs && npm run build:esm && npm run build:css",
"build:cjs": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.json --extendedDiagnostics",
"build:css": "gulp sass",
"build:esm": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.esm.json --extendedDiagnostics",
"build:bundles": "rollup -c",
"build": "npm run build:package && npm run build:bundles",
"clean": "rimraf dist/ .build/ .rollup.cache/",
"prepublishOnly": "npm run rebuild && npm run test",
"docs": "typedoc",
"rebuild": "npm run clean && npm run build",
"test": "cross-env ../../node_modules/.bin/jest --selectProjects dockview-core",
"test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview-core --coverage"
},
"files": [
"dist",
"README.md"
],
"keywords": [ "keywords": [
"splitview", "splitview",
"split-view", "split-view",
@ -52,15 +23,34 @@
"react", "react",
"react-component" "react-component"
], ],
"author": "https://github.com/mathuo", "homepage": "https://github.com/mathuo/dockview",
"bugs": {
"url": "https://github.com/mathuo/dockview/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/mathuo/dockview.git"
},
"license": "MIT", "license": "MIT",
"devDependencies": { "author": "https://github.com/mathuo",
"@rollup/plugin-terser": "^0.4.0", "main": "./dist/cjs/index.js",
"@rollup/plugin-typescript": "^11.0.0", "module": "./dist/esm/index.js",
"cross-env": "^7.0.3", "types": "./dist/cjs/index.d.ts",
"postcss": "^8.4.21", "files": [
"rimraf": "^4.1.2", "dist",
"rollup": "^3.15.0", "README.md"
"rollup-plugin-postcss": "^4.0.2" ],
"scripts": {
"build": "npm run build:package && npm run build:bundles",
"build:bundles": "rollup -c",
"build:cjs": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.json --extendedDiagnostics",
"build:css": "gulp sass",
"build:esm": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.esm.json --extendedDiagnostics",
"build:package": "npm run build:cjs && npm run build:esm && npm run build:css",
"clean": "rimraf dist/ .build/ .rollup.cache/",
"prepublishOnly": "npm run rebuild && npm run test",
"rebuild": "npm run clean && npm run build",
"test": "cross-env ../../node_modules/.bin/jest --selectProjects dockview-core",
"test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview-core --coverage"
} }
} }

View File

@ -1,7 +1,4 @@
import { JestConfigWithTsJest } from 'ts-jest'; import { JestConfigWithTsJest } from 'ts-jest';
import { join, normalize } from 'path';
const tsconfig = normalize(join(__dirname, '..', '..', 'tsconfig.test.json'));
const config: JestConfigWithTsJest = { const config: JestConfigWithTsJest = {
preset: 'ts-jest', preset: 'ts-jest',
@ -15,7 +12,7 @@ const config: JestConfigWithTsJest = {
setupFiles: [ setupFiles: [
'<rootDir>/packages/dockview/src/__tests__/__mocks__/resizeObserver.js', '<rootDir>/packages/dockview/src/__tests__/__mocks__/resizeObserver.js',
], ],
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'], setupFilesAfterEnv: ['<rootDir>/jest-setup.ts'],
coveragePathIgnorePatterns: ['/node_modules/'], coveragePathIgnorePatterns: ['/node_modules/'],
modulePathIgnorePatterns: [ modulePathIgnorePatterns: [
'<rootDir>/packages/dockview/src/__tests__/__mocks__', '<rootDir>/packages/dockview/src/__tests__/__mocks__',

View File

@ -2,35 +2,6 @@
"name": "dockview", "name": "dockview",
"version": "1.8.4", "version": "1.8.4",
"description": "Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support", "description": "Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support",
"main": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts",
"module": "./dist/esm/index.js",
"repository": {
"type": "git",
"url": "https://github.com/mathuo/dockview.git"
},
"bugs": {
"url": "https://github.com/mathuo/dockview/issues"
},
"homepage": "https://github.com/mathuo/dockview",
"scripts": {
"build:package": "npm run build:cjs && npm run build:esm && npm run build:css",
"build:cjs": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.json --extendedDiagnostics",
"build:css": "gulp sass",
"build:esm": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.esm.json --extendedDiagnostics",
"build:bundles": "rollup -c",
"build": "npm run build:package && npm run build:bundles",
"clean": "rimraf dist/ .build/ .rollup.cache/",
"docs": "typedoc",
"prepublishOnly": "npm run rebuild && npm run test",
"rebuild": "npm run clean && npm run build",
"test": "cross-env ../../node_modules/.bin/jest --selectProjects dockview",
"test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview --coverage"
},
"files": [
"dist",
"README.md"
],
"keywords": [ "keywords": [
"splitview", "splitview",
"split-view", "split-view",
@ -52,24 +23,37 @@
"react", "react",
"react-component" "react-component"
], ],
"author": "https://github.com/mathuo", "homepage": "https://github.com/mathuo/dockview",
"bugs": {
"url": "https://github.com/mathuo/dockview/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/mathuo/dockview.git"
},
"license": "MIT", "license": "MIT",
"author": "https://github.com/mathuo",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/cjs/index.d.ts",
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "npm run build:package && npm run build:bundles",
"build:bundles": "rollup -c",
"build:cjs": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.json --extendedDiagnostics",
"build:css": "gulp sass",
"build:esm": "cross-env ../../node_modules/.bin/tsc --project ./tsconfig.esm.json --extendedDiagnostics",
"build:package": "npm run build:cjs && npm run build:esm && npm run build:css",
"clean": "rimraf dist/ .build/ .rollup.cache/",
"prepublishOnly": "npm run rebuild && npm run test",
"rebuild": "npm run clean && npm run build",
"test": "cross-env ../../node_modules/.bin/jest --selectProjects dockview",
"test:cov": "cross-env ../../node_modules/.bin/jest --selectProjects dockview --coverage"
},
"dependencies": { "dependencies": {
"dockview-core": "^1.8.4" "dockview-core": "^1.8.4"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.0",
"@rollup/plugin-typescript": "^11.0.0",
"@testing-library/react": "^13.4.0",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"cross-env": "^7.0.3",
"postcss": "^8.4.21",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^4.1.2",
"rollup": "^3.15.0",
"rollup-plugin-postcss": "^4.0.2"
} }
} }

View File

@ -3,17 +3,23 @@
"version": "1.8.4", "version": "1.8.4",
"private": true, "private": true,
"scripts": { "scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build", "build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear", "clear": "docusaurus clear",
"serve": "docusaurus serve", "start": "docusaurus start",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc" "typecheck": "tsc"
}, },
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"dependencies": { "dependencies": {
"@docusaurus/core": "^2.4.3", "@docusaurus/core": "^2.4.3",
"@docusaurus/module-type-aliases": "^2.4.3", "@docusaurus/module-type-aliases": "^2.4.3",
@ -26,33 +32,14 @@
"clsx": "^1.2.1", "clsx": "^1.2.1",
"dockview": "^1.8.4", "dockview": "^1.8.4",
"prism-react-renderer": "^1.3.5", "prism-react-renderer": "^1.3.5",
"react": "^18.2.0",
"react-dnd": "^16.0.1", "react-dnd": "^16.0.1",
"react-dom": "^18.2.0",
"recoil": "^0.7.6", "recoil": "^0.7.6",
"source-map-loader": "^4.0.1", "source-map-loader": "^4.0.1",
"uuid": "^9.0.0", "uuid": "^9.0.0"
"xml2js": "^0.4.23"
}, },
"devDependencies": { "devDependencies": {
"@tsconfig/docusaurus": "^1.0.6", "@tsconfig/docusaurus": "^1.0.6",
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@types/uuid": "^9.0.0", "@types/uuid": "^9.0.0",
"docusaurus-plugin-sass": "^0.2.3", "docusaurus-plugin-sass": "^0.2.3"
"fs-extra": "^11.1.0",
"install": "^0.13.0"
},
"browserslist": {
"production": [
">0.5%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
} }
} }

View File

@ -3,5 +3,5 @@
"compilerOptions": { "compilerOptions": {
"jsx": "react-jsx" "jsx": "react-jsx"
}, },
"include": ["**/*.spec.ts"] "include": ["**/*.spec.ts", "./jest-setup.ts"]
} }

2832
yarn.lock

File diff suppressed because it is too large Load Diff