create-uni-app-tailwindcss 0.1.2 → 0.1.3
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/templates/default/.vscode/extensions.json +7 -0
- package/dist/templates/default/.vscode/settings.json +100 -0
- package/dist/templates/default/.vscode/tailwind.json +56 -0
- package/dist/templates/default/eslint.config.mjs +6 -0
- package/dist/templates/default/package.json +13 -13
- package/dist/templates/default/src/auto-imports.d.ts +2 -0
- package/dist/templates/registry.json +4 -1
- package/package.json +4 -4
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Disable the default formatter, use eslint instead
|
|
3
|
+
"prettier.enable": false,
|
|
4
|
+
"editor.formatOnSave": false,
|
|
5
|
+
// Auto fix
|
|
6
|
+
"editor.codeActionsOnSave": {
|
|
7
|
+
"source.fixAll.eslint": "explicit",
|
|
8
|
+
"source.organizeImports": "never"
|
|
9
|
+
},
|
|
10
|
+
// Reuse diagnostics collected while editing instead of linting the whole file again on save.
|
|
11
|
+
"eslint.codeActionsOnSave.mode": "problems",
|
|
12
|
+
// This is a single-package workspace; keep config and dependency resolution at its root.
|
|
13
|
+
"eslint.workingDirectories": [
|
|
14
|
+
{
|
|
15
|
+
"mode": "location"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
// https://github.com/tailwindlabs/tailwindcss/discussions/5258
|
|
19
|
+
"css.customData": [
|
|
20
|
+
".vscode/tailwind.json"
|
|
21
|
+
],
|
|
22
|
+
"tailwindCSS.experimental.classRegex": [
|
|
23
|
+
// https://github.com/lukeed/clsx?tab=readme-ov-file#tailwind-support
|
|
24
|
+
[
|
|
25
|
+
"clsx\\(([^)]*)\\)",
|
|
26
|
+
"(?:'|\"|`)([^']*)(?:'|\"|`)"
|
|
27
|
+
],
|
|
28
|
+
// https://cva.style/docs/getting-started/installation
|
|
29
|
+
[
|
|
30
|
+
"cva\\(([^)]*)\\)",
|
|
31
|
+
"[\"'`]([^\"'`]*).*?[\"'`]"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"cx\\(([^)]*)\\)",
|
|
35
|
+
"(?:'|\"|`)([^']*)(?:'|\"|`)"
|
|
36
|
+
]
|
|
37
|
+
],
|
|
38
|
+
// Mini Program rpx arbitrary text sizes, for example text-[24rpx],
|
|
39
|
+
// can be misreported as conflicting with text color utilities.
|
|
40
|
+
"tailwindCSS.lint.cssConflict": "ignore",
|
|
41
|
+
// Silent the stylistic rules in you IDE, but still auto fix them
|
|
42
|
+
"eslint.rules.customizations": [
|
|
43
|
+
{
|
|
44
|
+
"rule": "style/*",
|
|
45
|
+
"severity": "off"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"rule": "format/*",
|
|
49
|
+
"severity": "off"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"rule": "*-indent",
|
|
53
|
+
"severity": "off"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"rule": "*-spacing",
|
|
57
|
+
"severity": "off"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"rule": "*-spaces",
|
|
61
|
+
"severity": "off"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"rule": "*-order",
|
|
65
|
+
"severity": "off"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"rule": "*-dangle",
|
|
69
|
+
"severity": "off"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"rule": "*-newline",
|
|
73
|
+
"severity": "off"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"rule": "*quotes",
|
|
77
|
+
"severity": "off"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"rule": "*semi",
|
|
81
|
+
"severity": "off"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
// Validate source languages only. Stylelint owns CSS/SCSS in the editor.
|
|
85
|
+
"eslint.validate": [
|
|
86
|
+
"javascript",
|
|
87
|
+
"javascriptreact",
|
|
88
|
+
"typescript",
|
|
89
|
+
"typescriptreact",
|
|
90
|
+
"vue"
|
|
91
|
+
],
|
|
92
|
+
"css.validate": false,
|
|
93
|
+
"less.validate": false,
|
|
94
|
+
"scss.validate": false,
|
|
95
|
+
"stylelint.validate": [
|
|
96
|
+
"vue",
|
|
97
|
+
"css",
|
|
98
|
+
"scss"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// https://github.com/tailwindlabs/tailwindcss/discussions/5258
|
|
2
|
+
{
|
|
3
|
+
"version": 1.1,
|
|
4
|
+
"atDirectives": [
|
|
5
|
+
{
|
|
6
|
+
"name": "@tailwind",
|
|
7
|
+
"description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.",
|
|
8
|
+
"references": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Tailwind Documentation",
|
|
11
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#tailwind"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "@apply",
|
|
17
|
+
"description": "Use the `@apply` directive to inline any existing utility classes into your own custom CSS. This is useful when you find a common utility pattern in your HTML that you’d like to extract to a new component.",
|
|
18
|
+
"references": [
|
|
19
|
+
{
|
|
20
|
+
"name": "Tailwind Documentation",
|
|
21
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#apply"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "@responsive",
|
|
27
|
+
"description": "You can generate responsive variants of your own classes by wrapping their definitions in the `@responsive` directive:\n```css\n@responsive {\n .alert {\n background-color: #E53E3E;\n }\n}\n```\n",
|
|
28
|
+
"references": [
|
|
29
|
+
{
|
|
30
|
+
"name": "Tailwind Documentation",
|
|
31
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#responsive"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "@screen",
|
|
37
|
+
"description": "The `@screen` directive allows you to create media queries that reference your breakpoints by **name** instead of duplicating their values in your own CSS:\n```css\n@screen sm {\n /* ... */\n}\n```\n…gets transformed into this:\n```css\n@media (min-width: 640px) {\n /* ... */\n}\n```\n",
|
|
38
|
+
"references": [
|
|
39
|
+
{
|
|
40
|
+
"name": "Tailwind Documentation",
|
|
41
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#screen"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "@variants",
|
|
47
|
+
"description": "Generate `hover`, `focus`, `active` and other **variants** of your own utilities by wrapping their definitions in the `@variants` directive:\n```css\n@variants hover, focus {\n .btn-brand {\n background-color: #3182CE;\n }\n}\n```\n",
|
|
48
|
+
"references": [
|
|
49
|
+
{
|
|
50
|
+
"name": "Tailwind Documentation",
|
|
51
|
+
"url": "https://tailwindcss.com/docs/functions-and-directives#variants"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "uni-app-tailwindcss-template-default",
|
|
3
3
|
"version": "0.0.0",
|
|
4
4
|
"private": true,
|
|
5
|
-
"packageManager": "pnpm@
|
|
5
|
+
"packageManager": "pnpm@12.4.1",
|
|
6
6
|
"imports": {
|
|
7
7
|
"#tailwind.css": "./src/tailwind.css"
|
|
8
8
|
},
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@dcloudio/uni-mp-xhs": "3.0.0-5020420260813003",
|
|
68
68
|
"@dcloudio/uni-quickapp-webview": "3.0.0-5020420260813003",
|
|
69
69
|
"@vue/shared": "3.4.21",
|
|
70
|
-
"@weapp-tailwindcss/merge": "^2.2.
|
|
70
|
+
"@weapp-tailwindcss/merge": "^2.2.3",
|
|
71
71
|
"pinia": "2.2.4",
|
|
72
72
|
"vue": "^3.4.21",
|
|
73
73
|
"vue-i18n": "^9.1.9"
|
|
@@ -78,24 +78,24 @@
|
|
|
78
78
|
"@dcloudio/uni-cli-shared": "3.0.0-5020420260813003",
|
|
79
79
|
"@dcloudio/uni-stacktracey": "3.0.0-5020420260813003",
|
|
80
80
|
"@dcloudio/vite-plugin-uni": "3.0.0-5020420260813003",
|
|
81
|
-
"@icebreakers/eslint-config": "^
|
|
82
|
-
"@icebreakers/stylelint-config": "^5.0
|
|
81
|
+
"@icebreakers/eslint-config": "^8.0.0",
|
|
82
|
+
"@icebreakers/stylelint-config": "^5.1.0",
|
|
83
83
|
"@iconify-json/mdi": "^1.2.3",
|
|
84
84
|
"@iconify-json/svg-spinners": "^1.2.4",
|
|
85
85
|
"@iconify/tailwind4": "^1.2.3",
|
|
86
|
-
"@types/node": "^26.
|
|
86
|
+
"@types/node": "^26.5.1",
|
|
87
87
|
"@vue/runtime-core": "^3.4.21",
|
|
88
|
-
"autoprefixer": "^10.5.
|
|
89
|
-
"eslint": "^10.
|
|
90
|
-
"postcss": "^8.5.
|
|
88
|
+
"autoprefixer": "^10.5.6",
|
|
89
|
+
"eslint": "^10.10.0",
|
|
90
|
+
"postcss": "^8.5.28",
|
|
91
91
|
"rollup": "4.14.3",
|
|
92
|
-
"sass": "^1.
|
|
93
|
-
"stylelint": "^17.
|
|
92
|
+
"sass": "^1.104.0",
|
|
93
|
+
"stylelint": "^17.15.0",
|
|
94
94
|
"tailwindcss": "^4.3.3",
|
|
95
95
|
"typescript": "^6.0.3",
|
|
96
|
-
"unplugin-auto-import": "^
|
|
96
|
+
"unplugin-auto-import": "^21.1.0",
|
|
97
97
|
"vite": "5.2.8",
|
|
98
|
-
"weapp-ide-cli": "^6.
|
|
99
|
-
"weapp-tailwindcss": "^5.3
|
|
98
|
+
"weapp-ide-cli": "^6.1.3",
|
|
99
|
+
"weapp-tailwindcss": "^5.5.3"
|
|
100
100
|
}
|
|
101
101
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-uni-app-tailwindcss",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Create a uni-app project with Vite, Vue 3, Tailwind CSS, and weapp-tailwindcss.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"prompts": "^2.4.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@playwright/test": "^1.
|
|
45
|
-
"@types/node": "^26.
|
|
44
|
+
"@playwright/test": "^1.63.0",
|
|
45
|
+
"@types/node": "^26.5.1",
|
|
46
46
|
"@types/prompts": "^2.4.9",
|
|
47
|
-
"tsup": "^8.5.
|
|
47
|
+
"tsup": "^8.5.1",
|
|
48
48
|
"typescript": "^6.0.3"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|