create-dovite 1.0.3 → 1.0.4
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/README.md +4 -3
- package/index.js +7 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Vite template featuring Tailwind(v4), ShadCN, and DOMO integration.
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
> **Note:** This package requires yarn and the DOMO CLI to be installed before use.
|
|
7
6
|
|
|
8
7
|
## Prerequisites
|
|
@@ -10,16 +9,17 @@ Vite template featuring Tailwind(v4), ShadCN, and DOMO integration.
|
|
|
10
9
|
```bash
|
|
11
10
|
# Install yarn if you don't have it
|
|
12
11
|
npm install -g yarn
|
|
12
|
+
```
|
|
13
13
|
|
|
14
14
|
# For DOMO CLI installation, refer to:
|
|
15
|
+
|
|
15
16
|
[DOMO CLI](https://developer.domo.com/portal/6hlzv1hinkq19-setup-and-installation)
|
|
16
|
-
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
# Using yarn (recommended)
|
|
22
|
-
yarn create
|
|
22
|
+
yarn create dovite my-app
|
|
23
23
|
|
|
24
24
|
# Using npm
|
|
25
25
|
npx create-dovite my-app
|
|
@@ -44,4 +44,5 @@ npx create-dovite my-app
|
|
|
44
44
|
- [Vitawind](https://vitawind.vercel.app/)
|
|
45
45
|
|
|
46
46
|
## License
|
|
47
|
+
|
|
47
48
|
MIT
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
const { execSync } = require("child_process");
|
|
3
3
|
const path = require("path");
|
|
4
4
|
const fs = require("fs");
|
|
@@ -15,9 +15,12 @@ async function main() {
|
|
|
15
15
|
console.log(`Creating new project: ${projectName}`);
|
|
16
16
|
|
|
17
17
|
// Create Vite project
|
|
18
|
-
execSync(
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
execSync(
|
|
19
|
+
`yarn create vite ${projectName} --template react --no-interactive`,
|
|
20
|
+
{
|
|
21
|
+
stdio: "inherit",
|
|
22
|
+
}
|
|
23
|
+
);
|
|
21
24
|
|
|
22
25
|
// Move into project directory
|
|
23
26
|
process.chdir(projectName);
|