|
4 | 4 | "author": "Coder",
|
5 | 5 | "license": "MIT",
|
6 | 6 | "description": "Run VS Code remotely.",
|
| 7 | + "private": true, |
| 8 | + "workspaces": ["packages/*", "packages/app/*", "lib/vscode"], |
7 | 9 | "scripts": {
|
8 | 10 | "build:rules": "cd ./rules && tsc -p .",
|
9 |
| - "packages:install": "cd ./packages && yarn", |
10 |
| - "postinstall": "npm-run-all --parallel packages:install build:rules", |
11 |
| - "start": "cd ./packages/server && yarn start", |
| 11 | + "preinstall": "yarn task vscode:install", |
| 12 | + "postinstall": "yarn build:rules", |
| 13 | + "watch": "yarn task watch", |
| 14 | + "build": "yarn task build", |
12 | 15 | "task": "ts-node -r tsconfig-paths/register build/tasks.ts",
|
13 |
| - "test": "cd ./packages && yarn test" |
| 16 | + "test": "jest" |
14 | 17 | },
|
15 | 18 | "devDependencies": {
|
16 | 19 | "@types/fs-extra": "^5.0.4",
|
|
28 | 31 | "html-webpack-plugin": "^3.2.0",
|
29 | 32 | "http-browserify": "^1.7.0",
|
30 | 33 | "ignore-loader": "^0.1.2",
|
| 34 | + "jest": "^23.6.0", |
31 | 35 | "mini-css-extract-plugin": "^0.5.0",
|
32 | 36 | "node-sass": "^4.11.0",
|
33 | 37 | "npm-run-all": "^4.1.5",
|
|
38 | 42 | "style-loader": "^0.23.1",
|
39 | 43 | "tar": "^4.4.8",
|
40 | 44 | "terser-webpack-plugin": "^1.2.3",
|
41 |
| - "ts-loader": "^5.3.3", |
| 45 | + "ts-jest": "^23.10.5", |
| 46 | + "ts-loader": "^6.0.0", |
42 | 47 | "ts-node": "^7.0.1",
|
43 | 48 | "tsconfig-paths": "^3.8.0",
|
44 | 49 | "tslib": "^1.9.3",
|
45 |
| - "tslint": "^5.12.1", |
46 |
| - "typescript": "^3.2.2", |
47 |
| - "typescript-tslint-plugin": "^0.2.1", |
| 50 | + "tslint": "^5.16.0", |
| 51 | + "typescript": "^3.4.5", |
| 52 | + "typescript-tslint-plugin": "^0.3.1", |
48 | 53 | "uglifyjs-webpack-plugin": "^2.1.1",
|
49 | 54 | "url-loader": "^1.1.2",
|
50 | 55 | "util": "^0.11.1",
|
|
66 | 71 | "node-pty": "0.8.1",
|
67 | 72 | "spdlog": "0.8.1",
|
68 | 73 | "webpack-merge": "^4.2.1"
|
| 74 | + }, |
| 75 | + "jest": { |
| 76 | + "globals": { |
| 77 | + "ts-jest": { |
| 78 | + "diagnostics": false |
| 79 | + } |
| 80 | + }, |
| 81 | + "moduleFileExtensions": [ |
| 82 | + "ts", |
| 83 | + "tsx", |
| 84 | + "js", |
| 85 | + "json" |
| 86 | + ], |
| 87 | + "setupFiles": [ |
| 88 | + "<rootDir>/../scripts/test-setup.js" |
| 89 | + ], |
| 90 | + "moduleNameMapper": { |
| 91 | + "^.+\\.(s?css|png|svg)$": "<rootDir>/../scripts/dummy.js", |
| 92 | + "@coder/ide/src/fill/evaluation": "<rootDir>/ide/src/fill/evaluation", |
| 93 | + "@coder/ide/src/fill/client": "<rootDir>/ide/src/fill/client", |
| 94 | + "@coder/(.*)/test": "<rootDir>/$1/test", |
| 95 | + "@coder/(.*)": "<rootDir>/$1/src", |
| 96 | + "vs/(.*)": "<rootDir>/../lib/vscode/src/vs/$1", |
| 97 | + "vszip": "<rootDir>/../lib/vscode/src/vs/base/node/zip.ts" |
| 98 | + }, |
| 99 | + "transform": { |
| 100 | + "^.+\\.tsx?$": "ts-jest" |
| 101 | + }, |
| 102 | + "testPathIgnorePatterns": [ |
| 103 | + "/node_modules/", |
| 104 | + "/logger/" |
| 105 | + ], |
| 106 | + "testRegex": ".*\\.test\\.tsx?" |
69 | 107 | }
|
70 | 108 | }
|
0 commit comments