Skip to content

Commit 34501ec

Browse files
committed
feat: add vscode extension
1 parent 6a9e9b5 commit 34501ec

40 files changed

Lines changed: 725 additions & 968 deletions

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"esbenp.prettier-vscode",
55
"firsttris.vscode-jest-runner",
66
"dbaeumer.vscode-eslint",
7-
"stylelint.vscode-stylelint"
7+
"stylelint.vscode-stylelint",
8+
"xiejay97.react-devui"
89
]
910
}

jest.config.js

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

jest.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { getJestProjects } from '@nrwl/jest';
2+
3+
export default {
4+
projects: getJestProjects(),
5+
};

jest.preset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const nxPreset = require('@nrwl/jest/preset');
1+
const nxPreset = require('@nrwl/jest/preset').default;
22

33
module.exports = { ...nxPreset };

jest.setup.js

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

package.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,21 @@
6161
"@nrwl/tao": "14.5.6",
6262
"@nrwl/web": "14.5.6",
6363
"@nrwl/workspace": "14.5.6",
64-
"@testing-library/jest-dom": "^5.16.5",
65-
"@testing-library/react": "13.3.0",
66-
"@testing-library/react-hooks": "^8.0.1",
64+
"@testing-library/react": "^13.3.0",
6765
"@types/fs-extra": "^9.0.13",
68-
"@types/jest": "^28.1.6",
66+
"@types/glob": "^7.2.0",
67+
"@types/jest": "^27.4.1",
6968
"@types/lodash": "^4.14.182",
7069
"@types/marked": "^4.0.3",
70+
"@types/mocha": "^9.1.1",
7171
"@types/node": "^18.7.3",
7272
"@types/react": "^18.0.17",
7373
"@types/react-dom": "^18.0.6",
74+
"@types/vscode": "^1.70.0",
7475
"@typescript-eslint/eslint-plugin": "^5.33.0",
7576
"@typescript-eslint/parser": "^5.33.0",
76-
"babel-jest": "^28.1.3",
77-
"dotenv": "^16.0.1",
77+
"@vscode/test-electron": "^2.1.5",
78+
"babel-jest": "^27.5.1",
7879
"eslint": "^8.22.0",
7980
"eslint-config-prettier": "^8.5.0",
8081
"eslint-plugin-import": "^2.26.0",
@@ -86,9 +87,12 @@
8687
"eslint-plugin-react-hooks": "^4.6.0",
8788
"eslint-plugin-tsdoc": "^0.2.16",
8889
"fs-extra": "^10.1.0",
90+
"glob": "^8.0.3",
8991
"husky": "^8.0.1",
90-
"jest": "^28.1.3",
92+
"jest": "^27.5.1",
9193
"lerna": "^5.4.2",
94+
"mocha": "^10.0.0",
95+
"nx": "14.5.6",
9296
"postcss-html": "^1.5.0",
9397
"postcss-markdown": "^1.2.0",
9498
"prettier": "^2.7.1",
@@ -101,7 +105,7 @@
101105
"stylelint-config-recommended-scss": "^7.0.0",
102106
"stylelint-config-standard": "^27.0.0",
103107
"stylelint-scss": "^4.3.0",
104-
"ts-jest": "^28.0.8",
108+
"ts-jest": "^27.1.4",
105109
"ts-node": "^10.9.1",
106110
"typescript": "~4.7.4",
107111
"yaml-front-matter": "^4.1.1"

packages/hooks/jest.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ export default {
66
},
77
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
88
coverageDirectory: '../../coverage/packages/hooks',
9-
setupFilesAfterEnv: ['../../jest.setup.js'],
109
};

packages/hooks/project.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@
4343
"outputs": ["coverage/packages/hooks"],
4444
"options": {
4545
"jestConfig": "packages/hooks/jest.config.ts",
46-
"passWithNoTests": true,
47-
"codeCoverage": true,
48-
"coverageReporters": ["clover", "json", "lcov", "text"]
46+
"passWithNoTests": true
4947
}
5048
}
5149
}

packages/hooks/tsconfig.spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc",
55
"module": "commonjs",
6-
"types": ["jest", "node", "@testing-library/jest-dom"]
6+
"types": ["jest", "node"]
77
},
88
"include": [
99
"jest.config.ts",

packages/icons/jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export default {
55
'^.+\\.[tj]sx?$': 'babel-jest',
66
},
77
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
8+
collectCoverageFrom: ['!./dist/**'],
89
coverageDirectory: '../../coverage/packages/icons',
9-
setupFilesAfterEnv: ['../../jest.setup.js'],
1010
};

0 commit comments

Comments
 (0)