@builderos/create-agent-os 0.0.4 → 0.0.5
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/bin/cli.js +15 -1
- package/package.json +1 -1
- package/src/template/agent-os-ui/package.json +3 -3
- package/src/template/agent-os-ui/tailwind.config.js +3 -42
- package/src/template/control-center/frontend/package.json +4 -2
- package/src/template/control-center/frontend/postcss.config.js +6 -0
- package/src/template/control-center/frontend/tailwind.config.js +14 -0
- package/src/template/control-center/frontend/vite.config.ts +1 -2
- package/src/template/design/package.json +4 -2
- package/src/template/design/postcss.config.js +6 -0
- package/src/template/design/tailwind.config.js +13 -0
- package/src/template/design/vite.config.ts +1 -2
- package/src/template/index.css +7 -0
- package/src/template/postcss.config.js +6 -0
- package/src/template/tailwind.config.js +11 -0
package/bin/cli.js
CHANGED
|
@@ -94,7 +94,10 @@ async function init() {
|
|
|
94
94
|
"@builderos/agent-os-ui": "*", // Use workspace version
|
|
95
95
|
"lucide-react": "^0.469.0",
|
|
96
96
|
"clsx": "^2.1.0",
|
|
97
|
-
"tailwind-merge": "^2.2.0"
|
|
97
|
+
"tailwind-merge": "^2.2.0",
|
|
98
|
+
"autoprefixer": "^10.4.20",
|
|
99
|
+
"postcss": "^8.4.49",
|
|
100
|
+
"tailwindcss": "^3.4.17"
|
|
98
101
|
};
|
|
99
102
|
|
|
100
103
|
// Inject App Template (App.tsx, vite.config.ts) - we need to make sure these exist in template dir or just write them
|
|
@@ -111,6 +114,17 @@ async function init() {
|
|
|
111
114
|
if (fs.existsSync(path.join(appTemplateDir, 'vite.config.ts'))) {
|
|
112
115
|
fs.copyFileSync(path.join(appTemplateDir, 'vite.config.ts'), path.join(appDir, 'vite.config.ts'));
|
|
113
116
|
}
|
|
117
|
+
// Copy Tailwind config
|
|
118
|
+
if (fs.existsSync(path.join(appTemplateDir, 'postcss.config.js'))) {
|
|
119
|
+
fs.copyFileSync(path.join(appTemplateDir, 'postcss.config.js'), path.join(appDir, 'postcss.config.js'));
|
|
120
|
+
}
|
|
121
|
+
if (fs.existsSync(path.join(appTemplateDir, 'tailwind.config.js'))) {
|
|
122
|
+
fs.copyFileSync(path.join(appTemplateDir, 'tailwind.config.js'), path.join(appDir, 'tailwind.config.js'));
|
|
123
|
+
}
|
|
124
|
+
// Copy CSS
|
|
125
|
+
if (fs.existsSync(path.join(appTemplateDir, 'index.css'))) {
|
|
126
|
+
fs.copyFileSync(path.join(appTemplateDir, 'index.css'), path.join(appDir, 'src/index.css'));
|
|
127
|
+
}
|
|
114
128
|
|
|
115
129
|
|
|
116
130
|
fs.writeFileSync(appPkgPath, JSON.stringify(appPkg, null, 2));
|
package/package.json
CHANGED
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@types/react": "^18.2.0",
|
|
40
40
|
"@types/react-dom": "^18.2.0",
|
|
41
41
|
"@vitejs/plugin-react": "^4.2.1",
|
|
42
|
-
"autoprefixer": "^10.4.
|
|
43
|
-
"postcss": "^8.4.
|
|
42
|
+
"autoprefixer": "^10.4.20",
|
|
43
|
+
"postcss": "^8.4.49",
|
|
44
44
|
"react": "^18.3.1",
|
|
45
45
|
"react-dom": "^18.3.1",
|
|
46
|
-
"tailwindcss": "^3.4.
|
|
46
|
+
"tailwindcss": "^3.4.17",
|
|
47
47
|
"tailwindcss-animate": "^1.0.7",
|
|
48
48
|
"typescript": "^5.3.3",
|
|
49
49
|
"vite": "^5.0.10",
|
|
@@ -1,50 +1,11 @@
|
|
|
1
1
|
/** @type {import('tailwindcss').Config} */
|
|
2
2
|
export default {
|
|
3
3
|
content: [
|
|
4
|
+
"./index.html",
|
|
4
5
|
"./src/**/*.{js,ts,jsx,tsx}",
|
|
5
6
|
],
|
|
6
|
-
darkMode: 'class',
|
|
7
7
|
theme: {
|
|
8
|
-
extend: {
|
|
9
|
-
colors: {
|
|
10
|
-
border: "hsl(var(--border))",
|
|
11
|
-
input: "hsl(var(--input))",
|
|
12
|
-
ring: "hsl(var(--ring))",
|
|
13
|
-
background: "hsl(var(--background))",
|
|
14
|
-
foreground: "hsl(var(--foreground))",
|
|
15
|
-
primary: {
|
|
16
|
-
DEFAULT: "hsl(var(--primary))",
|
|
17
|
-
foreground: "hsl(var(--primary-foreground))",
|
|
18
|
-
},
|
|
19
|
-
secondary: {
|
|
20
|
-
DEFAULT: "hsl(var(--secondary))",
|
|
21
|
-
foreground: "hsl(var(--secondary-foreground))",
|
|
22
|
-
},
|
|
23
|
-
destructive: {
|
|
24
|
-
DEFAULT: "hsl(var(--destructive))",
|
|
25
|
-
foreground: "hsl(var(--destructive-foreground))",
|
|
26
|
-
},
|
|
27
|
-
muted: {
|
|
28
|
-
DEFAULT: "hsl(var(--muted))",
|
|
29
|
-
foreground: "hsl(var(--muted-foreground))",
|
|
30
|
-
},
|
|
31
|
-
accent: {
|
|
32
|
-
DEFAULT: "hsl(var(--accent))",
|
|
33
|
-
foreground: "hsl(var(--accent-foreground))",
|
|
34
|
-
},
|
|
35
|
-
popover: {
|
|
36
|
-
DEFAULT: "hsl(var(--popover))",
|
|
37
|
-
foreground: "hsl(var(--popover-foreground))",
|
|
38
|
-
},
|
|
39
|
-
card: {
|
|
40
|
-
DEFAULT: "hsl(var(--card))",
|
|
41
|
-
foreground: "hsl(var(--card-foreground))",
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
8
|
+
extend: {},
|
|
45
9
|
},
|
|
46
|
-
plugins: [
|
|
47
|
-
require('tailwindcss-animate'),
|
|
48
|
-
require('@tailwindcss/typography'),
|
|
49
|
-
],
|
|
10
|
+
plugins: [],
|
|
50
11
|
}
|
|
@@ -30,13 +30,15 @@
|
|
|
30
30
|
"@types/react": "^19.2.5",
|
|
31
31
|
"@types/react-dom": "^19.2.3",
|
|
32
32
|
"@vitejs/plugin-react": "^5.1.1",
|
|
33
|
+
"autoprefixer": "^10.4.23",
|
|
33
34
|
"eslint": "^9.39.1",
|
|
34
35
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
35
36
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
36
37
|
"globals": "^16.5.0",
|
|
37
|
-
"
|
|
38
|
+
"postcss": "^8.5.6",
|
|
39
|
+
"tailwindcss": "^3.4.17",
|
|
38
40
|
"typescript": "~5.9.3",
|
|
39
41
|
"typescript-eslint": "^8.46.4",
|
|
40
42
|
"vite": "^7.2.4"
|
|
41
43
|
}
|
|
42
|
-
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
export default {
|
|
3
|
+
content: [
|
|
4
|
+
"./index.html",
|
|
5
|
+
"./src/**/*.{js,ts,jsx,tsx}",
|
|
6
|
+
"../../packages/agent-os-ui/src/**/*.{js,ts,jsx,tsx}"
|
|
7
|
+
],
|
|
8
|
+
theme: {
|
|
9
|
+
extend: {},
|
|
10
|
+
},
|
|
11
|
+
plugins: [
|
|
12
|
+
require('@tailwindcss/typography'),
|
|
13
|
+
],
|
|
14
|
+
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineConfig } from 'vite'
|
|
2
2
|
import react from '@vitejs/plugin-react'
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
|
|
5
5
|
// https://vitejs.dev/config/
|
|
6
6
|
export default defineConfig({
|
|
7
7
|
plugins: [
|
|
8
8
|
react(),
|
|
9
|
-
tailwindcss(),
|
|
10
9
|
],
|
|
11
10
|
server: {
|
|
12
11
|
port: parseInt(process.env.PORT || '5173'),
|
|
@@ -39,9 +39,11 @@
|
|
|
39
39
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
40
40
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
41
41
|
"globals": "^16.5.0",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"autoprefixer": "^10.4.20",
|
|
43
|
+
"postcss": "^8.4.49",
|
|
44
|
+
"tailwindcss": "^3.4.17",
|
|
44
45
|
"typescript-eslint": "^8.46.4",
|
|
45
46
|
"vite": "^7.2.4"
|
|
46
47
|
}
|
|
47
48
|
}
|
|
49
|
+
```
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { defineConfig } from 'vite'
|
|
2
2
|
import react from '@vitejs/plugin-react'
|
|
3
|
-
import tailwindcss from '@tailwindcss/vite'
|
|
4
3
|
import path from 'path'
|
|
5
4
|
|
|
6
5
|
// https://vite.dev/config/
|
|
7
6
|
export default defineConfig({
|
|
8
|
-
plugins: [react()
|
|
7
|
+
plugins: [react()],
|
|
9
8
|
resolve: {
|
|
10
9
|
alias: {
|
|
11
10
|
'@': path.resolve(__dirname, './src'),
|