@chatbi-v/cli 2.1.5 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +932 -926
- package/package.json +11 -7
- package/templates/app/.env.hbs +1 -1
- package/templates/app/package.json.hbs +4 -7
- package/templates/app/postcss.config.js.hbs +14 -0
- package/templates/app/{tailwind.config.cjs.hbs → tailwind.config.js.hbs} +7 -4
- package/templates/app/tsconfig.json.hbs +1 -1
- package/templates/monorepo/package.json.hbs +4 -2
- package/templates/plugin/package.json.hbs +3 -3
- package/templates/plugin/tsconfig.json.hbs +1 -1
- package/templates/app/postcss.config.cjs.hbs +0 -10
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chatbi-v/cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"description": "Standardized CLI tooling for ChatBI Monorepo",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./dist/index.js",
|
|
11
|
+
"./package.json": "./package.json"
|
|
12
|
+
},
|
|
9
13
|
"bin": {
|
|
10
14
|
"chatbi-cli": "./bin/chatbi-cli.js"
|
|
11
15
|
},
|
|
@@ -17,11 +21,6 @@
|
|
|
17
21
|
"publishConfig": {
|
|
18
22
|
"access": "public"
|
|
19
23
|
},
|
|
20
|
-
"scripts": {
|
|
21
|
-
"build": "tsup",
|
|
22
|
-
"dev": "tsup --watch",
|
|
23
|
-
"test": "vitest"
|
|
24
|
-
},
|
|
25
24
|
"dependencies": {
|
|
26
25
|
"boxen": "^8.0.1",
|
|
27
26
|
"cac": "^6.7.14",
|
|
@@ -49,5 +48,10 @@
|
|
|
49
48
|
"@vitest/coverage-v8": "1.6.1",
|
|
50
49
|
"tsup": "^8.5.1",
|
|
51
50
|
"vitest": "^1.0.0"
|
|
51
|
+
},
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "tsup",
|
|
54
|
+
"dev": "tsup --watch",
|
|
55
|
+
"test": "vitest"
|
|
52
56
|
}
|
|
53
|
-
}
|
|
57
|
+
}
|
package/templates/app/.env.hbs
CHANGED
|
@@ -12,12 +12,8 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@ant-design/icons": "^5.2.6",
|
|
14
14
|
"@ant-design/x": "^2.1.1",
|
|
15
|
-
"@chatbi-v/core": "^2.1.
|
|
16
|
-
"@chatbi-v/mocks": "^2.1.
|
|
17
|
-
"@chatbi-v/cli": "^2.1.5",
|
|
18
|
-
"@chatbi-v/plugin-theme-manager": "2.0.4",
|
|
19
|
-
"@chatbi-v/plugin-layout-transform": "2.0.4",
|
|
20
|
-
"@chatbi-v/plugin-system-monitor": "2.0.4",
|
|
15
|
+
"@chatbi-v/core": "^2.1.6",
|
|
16
|
+
"@chatbi-v/mocks": "^2.1.6",
|
|
21
17
|
"antd": "^5.29.3",
|
|
22
18
|
"react": "^18.3.1",
|
|
23
19
|
"react-dom": "^18.3.1",
|
|
@@ -25,7 +21,8 @@
|
|
|
25
21
|
"zustand": "^5.0.9"
|
|
26
22
|
},
|
|
27
23
|
"devDependencies": {
|
|
28
|
-
"@chatbi-v/
|
|
24
|
+
"@chatbi-v/cli": "^2.1.7",
|
|
25
|
+
"@chatbi-v/config":"^2.1.7",
|
|
29
26
|
"@types/node": "^25.0.3",
|
|
30
27
|
"@types/react": "^18.2.43",
|
|
31
28
|
"@types/react-dom": "^18.2.17",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { fileURLToPath } from 'url';
|
|
3
|
+
|
|
4
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
plugins: {
|
|
8
|
+
'tailwindcss/nesting': {},
|
|
9
|
+
tailwindcss: {
|
|
10
|
+
config: path.resolve(__dirname, 'tailwind.config.js'),
|
|
11
|
+
},
|
|
12
|
+
autoprefixer: {},
|
|
13
|
+
},
|
|
14
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import baseConfig from '@chatbi-v/config/tailwind';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { fileURLToPath } from 'url';
|
|
4
|
+
|
|
5
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
3
6
|
|
|
4
7
|
/** @type {import('tailwindcss').Config} */
|
|
5
|
-
|
|
8
|
+
export default {
|
|
6
9
|
...baseConfig,
|
|
7
10
|
darkMode: 'class',
|
|
8
11
|
content: [
|
|
@@ -32,4 +35,4 @@ module.exports = {
|
|
|
32
35
|
}
|
|
33
36
|
},
|
|
34
37
|
plugins: []
|
|
35
|
-
}
|
|
38
|
+
}
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
"plugins/*"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
+
"@chatbi-v/core": "^2.1.7",
|
|
18
|
+
"@chatbi-v/mocks": "^2.1.7",
|
|
17
19
|
"react": "^18.3.1",
|
|
18
20
|
"react-dom": "^18.3.1",
|
|
19
21
|
"antd": "^5.29.3",
|
|
@@ -24,8 +26,8 @@
|
|
|
24
26
|
},
|
|
25
27
|
"devDependencies": {
|
|
26
28
|
"typescript": "^5.0.0",
|
|
27
|
-
"@chatbi-v/config": "^2.1.
|
|
28
|
-
"@chatbi-v/cli": "^2.1.
|
|
29
|
+
"@chatbi-v/config": "^2.1.7",
|
|
30
|
+
"@chatbi-v/cli": "^2.1.7",
|
|
29
31
|
"@ant-design/icons": "^5.6.1",
|
|
30
32
|
"@types/react": "^18.3.1",
|
|
31
33
|
"@types/react-dom": "^18.3.1",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"plugin": true,
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@chatbi-v/core": "^2.1.
|
|
24
|
+
"@chatbi-v/core": "^2.1.7",
|
|
25
25
|
"antd": "^5.20.0",
|
|
26
26
|
"react": ">=18.0.0",
|
|
27
27
|
"react-dom": ">=18.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@chatbi-v/core": "^2.1.
|
|
31
|
-
"@chatbi-v/config": "^2.1.
|
|
30
|
+
"@chatbi-v/core": "^2.1.7",
|
|
31
|
+
"@chatbi-v/config": "^2.1.7",
|
|
32
32
|
"tsup": "^8.5.1",
|
|
33
33
|
"vite": "^5.0.0"
|
|
34
34
|
}
|