ui-thing 0.0.5 → 0.0.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/.github/workflows/main.yml +19 -19
- package/.github/workflows/test.yml +19 -0
- package/.prettierrc +12 -12
- package/CHANGELOG.md +60 -26
- package/README.md +69 -69
- package/dist/index.d.ts +0 -0
- package/dist/index.js +3851 -2724
- package/dist/index.js.map +1 -1
- package/package.json +13 -7
- package/src/commands/add.ts +285 -237
- package/src/commands/init.ts +72 -72
- package/src/commands/prettier.ts +47 -47
- package/src/commands/theme.ts +61 -61
- package/src/comp.ts +2261 -2134
- package/src/index.ts +30 -30
- package/src/templates/css.ts +641 -641
- package/src/templates/prettier.ts +16 -16
- package/src/templates/tailwind.ts +101 -101
- package/src/types.ts +33 -13
- package/src/utils/addPrettierConfig.ts +24 -24
- package/src/utils/compareUIConfig.ts +35 -35
- package/src/utils/config.ts +84 -84
- package/src/utils/constants.ts +36 -36
- package/src/utils/fileExists.ts +10 -10
- package/src/utils/installPackages.ts +28 -28
- package/src/utils/printFancyBoxMessage.ts +19 -19
- package/src/utils/promptForComponents.ts +17 -17
- package/src/utils/uiConfigPrompt.ts +73 -73
- package/src/utils/writeFile.ts +18 -18
- package/tests/utils/addPrettierConfig.test.ts +71 -0
- package/tests/utils/fileExists.test.ts +38 -0
- package/tsconfig.json +16 -16
- package/tsup.config.ts +12 -12
- package/vite.config.ts +9 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
build:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v3
|
|
13
|
-
- name: Install dependencies
|
|
14
|
-
run: npm install
|
|
15
|
-
- uses: actions/setup-node@v4
|
|
16
|
-
with:
|
|
17
|
-
node-version: "18.x"
|
|
18
|
-
- name: Build
|
|
19
|
-
run: npm run format && npm run build
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v3
|
|
13
|
+
- name: Install dependencies
|
|
14
|
+
run: npm install
|
|
15
|
+
- uses: actions/setup-node@v4
|
|
16
|
+
with:
|
|
17
|
+
node-version: "18.x"
|
|
18
|
+
- name: Build
|
|
19
|
+
run: npm run format && npm run build
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "**"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v3
|
|
13
|
+
- name: Install dependencies
|
|
14
|
+
run: npm install
|
|
15
|
+
- uses: actions/setup-node@v4
|
|
16
|
+
with:
|
|
17
|
+
node-version: "18.x"
|
|
18
|
+
- name: Test
|
|
19
|
+
run: npm run test
|
package/.prettierrc
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"arrowParens": "always",
|
|
3
|
-
"endOfLine": "lf",
|
|
4
|
-
"plugins": ["@ianvs/prettier-plugin-sort-imports"],
|
|
5
|
-
"printWidth": 100,
|
|
6
|
-
"semi": true,
|
|
7
|
-
"singleQuote": false,
|
|
8
|
-
"tabWidth": 2,
|
|
9
|
-
"trailingComma": "es5",
|
|
10
|
-
"useTabs": false,
|
|
11
|
-
"importOrder": ["<BUILTIN_MODULES>", "<THIRD_PARTY_MODULES>", "<TYPES>", "", "^[.]"]
|
|
12
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"arrowParens": "always",
|
|
3
|
+
"endOfLine": "lf",
|
|
4
|
+
"plugins": ["@ianvs/prettier-plugin-sort-imports"],
|
|
5
|
+
"printWidth": 100,
|
|
6
|
+
"semi": true,
|
|
7
|
+
"singleQuote": false,
|
|
8
|
+
"tabWidth": 2,
|
|
9
|
+
"trailingComma": "es5",
|
|
10
|
+
"useTabs": false,
|
|
11
|
+
"importOrder": ["<BUILTIN_MODULES>", "<THIRD_PARTY_MODULES>", "<TYPES>", "", "^[.]"]
|
|
12
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## v0.0.7
|
|
4
|
+
|
|
5
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.6...v0.0.7)
|
|
6
|
+
|
|
7
|
+
### 🏡 Chore
|
|
8
|
+
|
|
9
|
+
- Update add command and components ([a294316](https://github.com/BayBreezy/ui-thing-cli/commit/a294316))
|
|
10
|
+
- Update add command ([641e474](https://github.com/BayBreezy/ui-thing-cli/commit/641e474))
|
|
11
|
+
- Update add command ([81d0d4e](https://github.com/BayBreezy/ui-thing-cli/commit/81d0d4e))
|
|
12
|
+
|
|
13
|
+
### ❤️ Contributors
|
|
14
|
+
|
|
15
|
+
- BayBreezy <behon.baker@yahoo.com>
|
|
16
|
+
|
|
17
|
+
## v0.0.6
|
|
18
|
+
|
|
19
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.5...v0.0.6)
|
|
20
|
+
|
|
21
|
+
### 🚀 Enhancements
|
|
22
|
+
|
|
23
|
+
- Add test workflow ([c00e2f4](https://github.com/BayBreezy/ui-thing-cli/commit/c00e2f4))
|
|
24
|
+
- Update test workflow ([c0f0662](https://github.com/BayBreezy/ui-thing-cli/commit/c0f0662))
|
|
25
|
+
|
|
26
|
+
### 🏡 Chore
|
|
27
|
+
|
|
28
|
+
- Update prompts deps ([8fdf5ce](https://github.com/BayBreezy/ui-thing-cli/commit/8fdf5ce))
|
|
29
|
+
- Update comps ([f232b69](https://github.com/BayBreezy/ui-thing-cli/commit/f232b69))
|
|
30
|
+
- Update types ([6f6b347](https://github.com/BayBreezy/ui-thing-cli/commit/6f6b347))
|
|
31
|
+
- Update deps ([7624ff0](https://github.com/BayBreezy/ui-thing-cli/commit/7624ff0))
|
|
32
|
+
|
|
33
|
+
### ❤️ Contributors
|
|
34
|
+
|
|
35
|
+
- Behon Baker <behon.baker@yahoo.com>
|
|
36
|
+
|
|
3
37
|
## v0.0.5
|
|
4
38
|
|
|
5
39
|
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.3...v0.0.5)
|
|
@@ -15,27 +49,27 @@
|
|
|
15
49
|
|
|
16
50
|
- Behon Baker <behon.baker@yahoo.com>
|
|
17
51
|
|
|
18
|
-
## v0.0.3
|
|
19
|
-
|
|
20
|
-
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.2...v0.0.3)
|
|
21
|
-
|
|
22
|
-
### 🏡 Chore
|
|
23
|
-
|
|
24
|
-
- Update readme ([88be325](https://github.com/BayBreezy/ui-thing-cli/commit/88be325))
|
|
25
|
-
- Change package name ([bd17f8d](https://github.com/BayBreezy/ui-thing-cli/commit/bd17f8d))
|
|
26
|
-
- Set version back to 0.0.2 ([1c7b6b2](https://github.com/BayBreezy/ui-thing-cli/commit/1c7b6b2))
|
|
27
|
-
|
|
28
|
-
### ❤️ Contributors
|
|
29
|
-
|
|
30
|
-
- Behon Baker <behon.baker@yahoo.com>
|
|
31
|
-
|
|
32
|
-
## v0.0.2
|
|
33
|
-
|
|
34
|
-
### 🏡 Chore
|
|
35
|
-
|
|
36
|
-
- Add 1st changeset ([ec0083c](https://github.com/BayBreezy/ui-thing-cli/commit/ec0083c))
|
|
37
|
-
- Add release script ([ea11cae](https://github.com/BayBreezy/ui-thing-cli/commit/ea11cae))
|
|
38
|
-
|
|
39
|
-
### ❤️ Contributors
|
|
40
|
-
|
|
41
|
-
- Behon Baker <behon.baker@yahoo.com>
|
|
52
|
+
## v0.0.3
|
|
53
|
+
|
|
54
|
+
[compare changes](https://github.com/BayBreezy/ui-thing-cli/compare/v0.0.2...v0.0.3)
|
|
55
|
+
|
|
56
|
+
### 🏡 Chore
|
|
57
|
+
|
|
58
|
+
- Update readme ([88be325](https://github.com/BayBreezy/ui-thing-cli/commit/88be325))
|
|
59
|
+
- Change package name ([bd17f8d](https://github.com/BayBreezy/ui-thing-cli/commit/bd17f8d))
|
|
60
|
+
- Set version back to 0.0.2 ([1c7b6b2](https://github.com/BayBreezy/ui-thing-cli/commit/1c7b6b2))
|
|
61
|
+
|
|
62
|
+
### ❤️ Contributors
|
|
63
|
+
|
|
64
|
+
- Behon Baker <behon.baker@yahoo.com>
|
|
65
|
+
|
|
66
|
+
## v0.0.2
|
|
67
|
+
|
|
68
|
+
### 🏡 Chore
|
|
69
|
+
|
|
70
|
+
- Add 1st changeset ([ec0083c](https://github.com/BayBreezy/ui-thing-cli/commit/ec0083c))
|
|
71
|
+
- Add release script ([ea11cae](https://github.com/BayBreezy/ui-thing-cli/commit/ea11cae))
|
|
72
|
+
|
|
73
|
+
### ❤️ Contributors
|
|
74
|
+
|
|
75
|
+
- Behon Baker <behon.baker@yahoo.com>
|
package/README.md
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
# UI Thing CLI
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
## Credits
|
|
6
|
-
|
|
7
|
-
- shadcn/ui
|
|
8
|
-
- Radiv-Vue
|
|
9
|
-
- TailwindCSS
|
|
10
|
-
- Nuxt
|
|
11
|
-
- Nuxt UI
|
|
12
|
-
|
|
13
|
-
Thanks to the maintainers of the other third party libraries used in this project.
|
|
14
|
-
|
|
15
|
-
## Getting Started
|
|
16
|
-
|
|
17
|
-
- Create a Nuxt 3 project
|
|
18
|
-
- Install the dependencies
|
|
19
|
-
- Run the init command
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npx ui-thing@latest init
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
- Start the dev server
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
npm run dev
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
- Add components to your project with the `add` command
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
npx ui-thing@latest add
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## Commands
|
|
38
|
-
|
|
39
|
-
### `init`
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npx ui-thing@latest init
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
This command will install the dependencies and add the required configuration to your project.
|
|
46
|
-
|
|
47
|
-
### `add`
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
npx ui-thing@latest add
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
This command will add the components to your project.
|
|
54
|
-
|
|
55
|
-
### `theme`
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
npx ui-thing@latest theme
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
This command will add the theme to your project.
|
|
62
|
-
|
|
63
|
-
### `prettier`
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
npx ui-thing@latest prettier
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
This command will add the prettier configuration to your project.
|
|
1
|
+
# UI Thing CLI
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
## Credits
|
|
6
|
+
|
|
7
|
+
- shadcn/ui
|
|
8
|
+
- Radiv-Vue
|
|
9
|
+
- TailwindCSS
|
|
10
|
+
- Nuxt
|
|
11
|
+
- Nuxt UI
|
|
12
|
+
|
|
13
|
+
Thanks to the maintainers of the other third party libraries used in this project.
|
|
14
|
+
|
|
15
|
+
## Getting Started
|
|
16
|
+
|
|
17
|
+
- Create a Nuxt 3 project
|
|
18
|
+
- Install the dependencies
|
|
19
|
+
- Run the init command
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx ui-thing@latest init
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
- Start the dev server
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm run dev
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- Add components to your project with the `add` command
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npx ui-thing@latest add
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Commands
|
|
38
|
+
|
|
39
|
+
### `init`
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npx ui-thing@latest init
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
This command will install the dependencies and add the required configuration to your project.
|
|
46
|
+
|
|
47
|
+
### `add`
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx ui-thing@latest add
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
This command will add the components to your project.
|
|
54
|
+
|
|
55
|
+
### `theme`
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npx ui-thing@latest theme
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
This command will add the theme to your project.
|
|
62
|
+
|
|
63
|
+
### `prettier`
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
npx ui-thing@latest prettier
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
This command will add the prettier configuration to your project.
|
package/dist/index.d.ts
CHANGED
|
File without changes
|