@vira-ui/cli 0.3.1-alpha → 0.3.3-alpha
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 +10 -9
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -137,6 +137,7 @@ async function createProjectStructure(projectPath, template) {
|
|
|
137
137
|
dependencies: {
|
|
138
138
|
"@vira-ui/core": "^0.3.0-alpha",
|
|
139
139
|
"@vira-ui/ui": "^0.3.0-alpha",
|
|
140
|
+
"lucide-react": "^0.400.0",
|
|
140
141
|
},
|
|
141
142
|
devDependencies: {
|
|
142
143
|
"@vira-ui/babel-plugin": "^0.3.0-alpha",
|
|
@@ -158,7 +159,6 @@ async function createProjectStructure(projectPath, template) {
|
|
|
158
159
|
module: "ESNext",
|
|
159
160
|
lib: ["ES2020", "DOM", "DOM.Iterable"],
|
|
160
161
|
jsx: "react-jsx",
|
|
161
|
-
jsxImportSource: "@vira-ui/core",
|
|
162
162
|
moduleResolution: "bundler",
|
|
163
163
|
resolveJsonModule: true,
|
|
164
164
|
allowJs: true,
|
|
@@ -167,6 +167,10 @@ async function createProjectStructure(projectPath, template) {
|
|
|
167
167
|
esModuleInterop: true,
|
|
168
168
|
skipLibCheck: true,
|
|
169
169
|
forceConsistentCasingInFileNames: true,
|
|
170
|
+
paths: {
|
|
171
|
+
"@vira-ui/ui": ["./node_modules/@vira-ui/ui/src"],
|
|
172
|
+
"@vira-ui/core": ["./node_modules/@vira-ui/core/src"],
|
|
173
|
+
},
|
|
170
174
|
},
|
|
171
175
|
include: ["src"],
|
|
172
176
|
};
|
|
@@ -175,15 +179,12 @@ async function createProjectStructure(projectPath, template) {
|
|
|
175
179
|
const viteConfig = `import { defineConfig } from 'vite';
|
|
176
180
|
import react from '@vitejs/plugin-react';
|
|
177
181
|
|
|
182
|
+
// https://vitejs.dev/config/
|
|
178
183
|
export default defineConfig({
|
|
179
|
-
plugins: [
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
// plugins: [['@vira-ui/babel-plugin', {}]],
|
|
184
|
-
// },
|
|
185
|
-
}),
|
|
186
|
-
],
|
|
184
|
+
plugins: [react()],
|
|
185
|
+
optimizeDeps: {
|
|
186
|
+
exclude: ['lucide-react'],
|
|
187
|
+
},
|
|
187
188
|
});
|
|
188
189
|
`;
|
|
189
190
|
await fs.writeFile(path.join(projectPath, "vite.config.ts"), viteConfig);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vira-ui/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3-alpha",
|
|
4
4
|
"description": "CLI tool for ViraJS project generation",
|
|
5
5
|
"author": "Vira Team",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/
|
|
9
|
+
"url": "https://github.com/skrolikov/vira-cli"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
12
12
|
"vira",
|