Skip to content

Commit 3668c7f

Browse files
committed
chore: migration to workspaces
1 parent c6477fd commit 3668c7f

28 files changed

Lines changed: 141 additions & 3611 deletions

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
node_modules
33
__fixtures__
44
editor-log.txt
5+
*.log
56

67
cliQuery
78
devQuery
89
devFile
910

10-
dist
11-
dist-babel
12-
dist-ts
11+
dist

package.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,25 @@
44
"private": true,
55
"workspaces": [
66
"packages/*"
7-
]
7+
],
8+
"devDependencies": {
9+
"@babel/cli": "^7.16.0",
10+
"@babel/core": "^7.16.0",
11+
"@babel/preset-env": "^7.16.4",
12+
"@babel/preset-typescript": "^7.16.0",
13+
"@typescript-eslint/eslint-plugin": "^5.16.0",
14+
"@typescript-eslint/parser": "^5.16.0",
15+
"@types/node": "^16.11.11",
16+
"babel-plugin-root-import": "^6.6.0",
17+
"eslint": "^7.11.0",
18+
"eslint-config-prettier": "^8.5.0",
19+
"eslint-plugin-jest": "^24.1.0",
20+
"eslint-plugin-node": "^11.1.0",
21+
"eslint-plugin-prettier": "^4.0.0",
22+
"typescript": "^4.5.2"
23+
},
24+
"scripts": {
25+
"lint": "yarn workspaces run lint",
26+
"typecheck": "yarn workspaces run typecheck"
27+
}
828
}

packages/cli/.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/dev.js

packages/cli/babel.config.js

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

packages/cli/package.json

Lines changed: 7 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -14,79 +14,26 @@
1414
"main": "dist/cli.js",
1515
"files": [
1616
"bin.js",
17-
"dist/cli.js",
18-
"dist/worker.js",
17+
"dist/**/*.js",
1918
"LICENSE.md"
2019
],
2120
"publishConfig": {
2221
"access": "public"
2322
},
24-
"devDependencies": {
25-
"@babel/cli": "^7.16.0",
26-
"@babel/core": "^7.16.0",
27-
"@babel/preset-env": "^7.16.4",
28-
"@babel/preset-typescript": "^7.16.0",
29-
"@types/babel__code-frame": "^7.0.3",
30-
"@types/babel__generator": "^7.6.3",
31-
"@types/dedent": "^0.7.0",
32-
"@types/glob": "^7.2.0",
33-
"@types/jest": "^27.0.3",
34-
"@types/node": "^16.11.11",
35-
"@types/node-fetch": "^3.0.3",
36-
"@types/object.omit": "^3.0.0",
37-
"@types/unzipper": "^0.10.4",
38-
"@typescript-eslint/eslint-plugin": "^5.16.0",
39-
"@typescript-eslint/parser": "^5.16.0",
40-
"babel-jest": "^27.4.4",
41-
"babel-loader": "^8.2.3",
42-
"babel-plugin-root-import": "^6.6.0",
43-
"copy-webpack-plugin": "^10.2.0",
44-
"deep-object-diff": "^1.1.7",
45-
"dependency-cruiser": "^11.3.0",
46-
"eslint": "^7.11.0",
47-
"eslint-config-prettier": "^8.5.0",
48-
"eslint-plugin-jest": "^24.1.0",
49-
"eslint-plugin-node": "^11.1.0",
50-
"eslint-plugin-prettier": "^4.0.0",
51-
"fs-extra": "^10.0.0",
52-
"jest": "^27.4.4",
53-
"node-fetch-commonjs": "^3.1.1",
54-
"release-it": "^15.0.0",
55-
"ts-jest": "^27.1.1",
56-
"typescript": "^4.5.2",
57-
"unzipper": "^0.10.11",
58-
"webpack": "^5.65.0",
59-
"webpack-cli": "^4.9.1"
60-
},
6123
"dependencies": {
62-
"@babel/code-frame": "^7.16.0",
63-
"@babel/generator": "7.16.0",
64-
"@babel/parser": "7.16.4",
65-
"@babel/plugin-syntax-typescript": "7.16.0",
66-
"@babel/types": "^7.17.0",
6724
"colorette": "^2.0.16",
6825
"commander": "^8.3.0",
69-
"dedent": "^0.7.0",
70-
"dpdm": "^3.8.0",
71-
"glob-escape": "^0.0.2",
72-
"ignore": "^5.1.9",
7326
"ora": "^5.0",
7427
"prettier": "^2.5.1",
7528
"@codeque/core": "^0.1.0-beta.4"
7629
},
7730
"scripts": {
78-
"build:watch": "webpack --mode development",
79-
"build": "webpack --mode production",
80-
"build:standalone": "STANDALONE=true yarn build",
81-
"build:ts": "tsc --skipLibCheck --project tsconfig.json --outDir dist-ts",
82-
"build:babel": "rm -rf dist-babel && BABEL_ENV=production babel ./ --extensions \".ts,.tsx\" -d dist-babel",
83-
"build:types": "tsc -p tsconfig.json --emitDeclarationOnly --declaration --declarationDir ./dist/@types --skipLibCheck",
84-
"typecheck": "tsc --skipLibCheck --noEmit --project tsconfig.json",
85-
"dev": "node ./dist/dev.js",
86-
"cli": "node ./dist/cli.js",
87-
"test": "jest",
88-
"test:setup": "yarn build:babel && node ./dist-babel/tools/getFixtures.js",
89-
"cruise": "depcruise --include-only \"^src\" --output-type dot src | dot -T svg > dependencygraph.svg",
31+
"cli": "node dist/cli.js",
32+
"dev": "node dist/dev.js",
33+
"build": "rm -rf dist && BABEL_ENV=production yarn build:code",
34+
"build:watch": "rm -rf dist && yarn build:code --watch",
35+
"build:code": "tsc --project tsconfig.json",
36+
"typecheck": "tsc --noEmit --project tsconfig.json",
9037
"lint": "eslint --ext .js,.ts src",
9138
"lint:fix": "yarn lint --fix",
9239
"release": "release-it"

packages/cli/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
3+
"include": ["src"],
34
"compilerOptions": {
4-
"baseUrl": "./",
5+
"baseUrl": "./src",
56
"paths": {},
6-
"outDir": "./ts-dist",
7+
"outDir": "./dist",
78
}
89
}

packages/cli/webpack.config.js

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

packages/core/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This is beta release of CodeQue
2+
3+
___
4+
5+
It's internal CodeQue core package.
6+
7+
Check [`@codeque/cli`](https://www.npmjs.com/package/@codeque/cli)

packages/core/__tests__/astUtils.test.js

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

0 commit comments

Comments
 (0)