ui-thing 0.2.8 → 0.2.9
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/CHANGELOG.md +26 -0
- package/bun.lock +941 -0
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/package.json +28 -27
- package/src/templates/css.ts +5 -0
- package/src/templates/vs-code.ts +0 -8
- package/src/utils/config.ts +2 -1
- package/tsup.config.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui-thing",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "CLI used to add Nuxt components to a project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -30,65 +30,66 @@
|
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsup",
|
|
33
|
-
"clean": "rm -rf dist coverage node_modules package-lock.json &&
|
|
33
|
+
"clean": "rm -rf dist coverage node_modules bun.lock package-lock.json && bun install",
|
|
34
34
|
"coverage": "vitest run --coverage",
|
|
35
35
|
"dev": "tsup --watch",
|
|
36
36
|
"format": "npx prettier --write .",
|
|
37
37
|
"knip": "knip",
|
|
38
38
|
"knip:fix": "knip --fix",
|
|
39
39
|
"lint": "eslint src",
|
|
40
|
-
"lint-staged": "lint-staged",
|
|
41
40
|
"lint:fix": "eslint src --fix",
|
|
41
|
+
"lint-staged": "lint-staged",
|
|
42
42
|
"prepare": "husky",
|
|
43
|
-
"release": "
|
|
43
|
+
"release": "bun run build && npx changelogen@latest --release && npm publish && git push --follow-tags",
|
|
44
44
|
"start": "node dist/index.js",
|
|
45
45
|
"test": "vitest"
|
|
46
46
|
},
|
|
47
47
|
"lint-staged": {
|
|
48
|
-
"
|
|
48
|
+
"**/*.{ts,js}": [
|
|
49
49
|
"prettier --write",
|
|
50
50
|
"eslint --fix"
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"axios": "^1.
|
|
54
|
+
"axios": "^1.17.0",
|
|
55
55
|
"boxen": "^8.0.1",
|
|
56
|
-
"c12": "^3.3.
|
|
57
|
-
"commander": "^
|
|
56
|
+
"c12": "^3.3.4",
|
|
57
|
+
"commander": "^15.0.0",
|
|
58
58
|
"consola": "^3.4.2",
|
|
59
|
-
"dotenv": "^17.
|
|
60
|
-
"es-toolkit": "^1.
|
|
59
|
+
"dotenv": "^17.4.2",
|
|
60
|
+
"es-toolkit": "^1.47.0",
|
|
61
61
|
"execa": "^9.6.1",
|
|
62
62
|
"figlet": "^1.11.0",
|
|
63
|
-
"fs-extra": "^11.3.
|
|
63
|
+
"fs-extra": "^11.3.5",
|
|
64
64
|
"kleur": "^4.1.5",
|
|
65
|
-
"lodash": "^4.
|
|
66
|
-
"magicast": "^0.5.
|
|
67
|
-
"ora": "^9.
|
|
65
|
+
"lodash": "^4.18.1",
|
|
66
|
+
"magicast": "^0.5.3",
|
|
67
|
+
"ora": "^9.4.0",
|
|
68
68
|
"prompts": "^2.4.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@eslint/js": "^
|
|
71
|
+
"@eslint/js": "^10.0.1",
|
|
72
72
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
73
73
|
"@types/fs-extra": "^11.0.4",
|
|
74
74
|
"@types/lodash": "^4.17.24",
|
|
75
|
-
"@types/node": "^25.
|
|
75
|
+
"@types/node": "^25.9.2",
|
|
76
76
|
"@types/prompts": "^2.4.9",
|
|
77
|
-
"@vitest/coverage-v8": "^4.1.
|
|
78
|
-
"@vitest/ui": "^4.1.
|
|
77
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
78
|
+
"@vitest/ui": "^4.1.8",
|
|
79
79
|
"axios-mock-adapter": "^2.1.0",
|
|
80
|
-
"eslint": "^
|
|
81
|
-
"globals": "^17.
|
|
80
|
+
"eslint": "^10.4.1",
|
|
81
|
+
"globals": "^17.6.0",
|
|
82
82
|
"husky": "^9.1.7",
|
|
83
|
-
"jiti": "^2.
|
|
84
|
-
"knip": "^5.
|
|
85
|
-
"lint-staged": "^
|
|
86
|
-
"prettier": "^3.8.
|
|
83
|
+
"jiti": "^2.7.0",
|
|
84
|
+
"knip": "^5.88.1",
|
|
85
|
+
"lint-staged": "^17.0.7",
|
|
86
|
+
"prettier": "^3.8.4",
|
|
87
87
|
"tsup": "^8.5.1",
|
|
88
|
-
"typescript": "^
|
|
89
|
-
"typescript-eslint": "^8.
|
|
90
|
-
"vitest": "^4.1.
|
|
88
|
+
"typescript": "^6.0.3",
|
|
89
|
+
"typescript-eslint": "^8.61.0",
|
|
90
|
+
"vitest": "^4.1.8"
|
|
91
91
|
},
|
|
92
|
+
"packageManager": "bun@1.3.9",
|
|
92
93
|
"publishConfig": {
|
|
93
94
|
"access": "public"
|
|
94
95
|
}
|
package/src/templates/css.ts
CHANGED
package/src/templates/vs-code.ts
CHANGED
|
@@ -8,7 +8,6 @@ export const VS_CODE_RECOMMENDATIONS = {
|
|
|
8
8
|
"antfu.iconify",
|
|
9
9
|
"formulahendry.auto-close-tag",
|
|
10
10
|
"formulahendry.auto-rename-tag",
|
|
11
|
-
"prettier.prettier-vscode",
|
|
12
11
|
],
|
|
13
12
|
};
|
|
14
13
|
|
|
@@ -21,13 +20,6 @@ export const VS_CODE_SETTINGS = {
|
|
|
21
20
|
"files.associations": { "*.css": "tailwindcss" },
|
|
22
21
|
"tailwindCSS.classFunctions": ["tw", "clsx", "tw\\.[a-z-]+"],
|
|
23
22
|
"tailwindCSS.experimental.classRegex": [
|
|
24
|
-
[
|
|
25
|
-
"tv\\(([^)(]*(?:\\([^)(]*(?:\\([^)(]*(?:\\([^)(]*\\)[^)(]*)*\\)[^)(]*)*\\)[^)(]*)*)\\)",
|
|
26
|
-
'"(.*?)"',
|
|
27
|
-
],
|
|
28
|
-
"tw`(.*?)`",
|
|
29
|
-
"tw\\('(.*?)'\\)",
|
|
30
|
-
"tw\\(\\s*('(.*?)'|\"(.*?)\")\\s*\\)",
|
|
31
23
|
[
|
|
32
24
|
"\\btv\\(\\s*((?:\"(?:\\\\.|[^\"\\\\])*\"|'(?:\\\\.|[^'\\\\])*'|`(?:\\\\.|[^`\\\\])*`|[^)]*)*)\\)",
|
|
33
25
|
"[\"']([^\"']*)[\"']",
|
package/src/utils/config.ts
CHANGED
|
@@ -18,7 +18,8 @@ const currentDir = process.cwd();
|
|
|
18
18
|
*/
|
|
19
19
|
export const getUIConfig = async (options?: InitOptions): Promise<UIConfig> => {
|
|
20
20
|
const configExists = fse.existsSync(UI_CONFIG_FILENAME);
|
|
21
|
-
|
|
21
|
+
// eslint-disable-next-line no-useless-assignment
|
|
22
|
+
let uiConfig = {} as UIConfig;
|
|
22
23
|
const nuxtVersion = Number(options?.nuxtVersion) || detectNuxtVersion();
|
|
23
24
|
|
|
24
25
|
// Force creation or first-time setup
|
package/tsup.config.ts
CHANGED