create-uni-app-tailwindcss 0.1.1 → 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/README.md CHANGED
@@ -14,10 +14,4 @@ pnpm create uni-app-tailwindcss my-app --template default
14
14
 
15
15
  When multiple templates are bundled and `--template` is omitted, the CLI prompts for one in interactive terminals and uses the registry default otherwise.
16
16
 
17
- For local development in this monorepo:
18
-
19
- ```bash
20
- pnpm install
21
- pnpm create
22
- pnpm test:e2e
23
- ```
17
+ For repository development, testing, and releases, see the root [CONTRIBUTING.md](https://github.com/sonofmagic/uni-app-tailwindcss-template/blob/main/CONTRIBUTING.md).
@@ -0,0 +1,7 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "stylelint.vscode-stylelint",
5
+ "bradlc.vscode-tailwindcss"
6
+ ]
7
+ }
@@ -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
+ }
@@ -24,4 +24,10 @@ export default icebreaker(
24
24
  'better-tailwindcss/no-unknown-classes': 'off',
25
25
  },
26
26
  },
27
+ {
28
+ files: ['src/main.ts'],
29
+ rules: {
30
+ 'wevu/no-unsupported-api': 'off',
31
+ },
32
+ },
27
33
  )
@@ -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@11.21.0",
5
+ "packageManager": "pnpm@12.4.1",
6
6
  "imports": {
7
7
  "#tailwind.css": "./src/tailwind.css"
8
8
  },
@@ -50,24 +50,24 @@
50
50
  "update:uni-app": "pnpm dlx @dcloudio/uvm@latest --manager pnpm"
51
51
  },
52
52
  "dependencies": {
53
- "@dcloudio/uni-app": "3.0.0-5020420260813002",
54
- "@dcloudio/uni-app-harmony": "3.0.0-5020420260813002",
55
- "@dcloudio/uni-app-plus": "3.0.0-5020420260813002",
56
- "@dcloudio/uni-components": "3.0.0-5020420260813002",
57
- "@dcloudio/uni-h5": "3.0.0-5020420260813002",
58
- "@dcloudio/uni-mp-alipay": "3.0.0-5020420260813002",
59
- "@dcloudio/uni-mp-baidu": "3.0.0-5020420260813002",
60
- "@dcloudio/uni-mp-harmony": "3.0.0-5020420260813002",
61
- "@dcloudio/uni-mp-jd": "3.0.0-5020420260813002",
62
- "@dcloudio/uni-mp-kuaishou": "3.0.0-5020420260813002",
63
- "@dcloudio/uni-mp-lark": "3.0.0-5020420260813002",
64
- "@dcloudio/uni-mp-qq": "3.0.0-5020420260813002",
65
- "@dcloudio/uni-mp-toutiao": "3.0.0-5020420260813002",
66
- "@dcloudio/uni-mp-weixin": "3.0.0-5020420260813002",
67
- "@dcloudio/uni-mp-xhs": "3.0.0-5020420260813002",
68
- "@dcloudio/uni-quickapp-webview": "3.0.0-5020420260813002",
53
+ "@dcloudio/uni-app": "3.0.0-5020420260813003",
54
+ "@dcloudio/uni-app-harmony": "3.0.0-5020420260813003",
55
+ "@dcloudio/uni-app-plus": "3.0.0-5020420260813003",
56
+ "@dcloudio/uni-components": "3.0.0-5020420260813003",
57
+ "@dcloudio/uni-h5": "3.0.0-5020420260813003",
58
+ "@dcloudio/uni-mp-alipay": "3.0.0-5020420260813003",
59
+ "@dcloudio/uni-mp-baidu": "3.0.0-5020420260813003",
60
+ "@dcloudio/uni-mp-harmony": "3.0.0-5020420260813003",
61
+ "@dcloudio/uni-mp-jd": "3.0.0-5020420260813003",
62
+ "@dcloudio/uni-mp-kuaishou": "3.0.0-5020420260813003",
63
+ "@dcloudio/uni-mp-lark": "3.0.0-5020420260813003",
64
+ "@dcloudio/uni-mp-qq": "3.0.0-5020420260813003",
65
+ "@dcloudio/uni-mp-toutiao": "3.0.0-5020420260813003",
66
+ "@dcloudio/uni-mp-weixin": "3.0.0-5020420260813003",
67
+ "@dcloudio/uni-mp-xhs": "3.0.0-5020420260813003",
68
+ "@dcloudio/uni-quickapp-webview": "3.0.0-5020420260813003",
69
69
  "@vue/shared": "3.4.21",
70
- "@weapp-tailwindcss/merge": "^2.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"
@@ -75,27 +75,27 @@
75
75
  "devDependencies": {
76
76
  "@dcloudio/hbuilderx-cli": "^1.2.0",
77
77
  "@dcloudio/types": "^3.4.8",
78
- "@dcloudio/uni-cli-shared": "3.0.0-5020420260813002",
79
- "@dcloudio/uni-stacktracey": "3.0.0-5020420260813002",
80
- "@dcloudio/vite-plugin-uni": "3.0.0-5020420260813002",
81
- "@icebreakers/eslint-config": "^7.0.4",
82
- "@icebreakers/stylelint-config": "^5.0.5",
78
+ "@dcloudio/uni-cli-shared": "3.0.0-5020420260813003",
79
+ "@dcloudio/uni-stacktracey": "3.0.0-5020420260813003",
80
+ "@dcloudio/vite-plugin-uni": "3.0.0-5020420260813003",
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.2.0",
86
+ "@types/node": "^26.5.1",
87
87
  "@vue/runtime-core": "^3.4.21",
88
- "autoprefixer": "^10.5.4",
89
- "eslint": "^10.8.1",
90
- "postcss": "^8.5.26",
88
+ "autoprefixer": "^10.5.6",
89
+ "eslint": "^10.10.0",
90
+ "postcss": "^8.5.28",
91
91
  "rollup": "4.14.3",
92
- "sass": "^1.102.0",
93
- "stylelint": "^17.14.1",
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": "^20.3.0",
96
+ "unplugin-auto-import": "^21.1.0",
97
97
  "vite": "5.2.8",
98
- "weapp-ide-cli": "^6.0.6",
99
- "weapp-tailwindcss": "^5.3.0"
98
+ "weapp-ide-cli": "^6.1.3",
99
+ "weapp-tailwindcss": "^5.5.3"
100
100
  }
101
101
  }
@@ -1,5 +1,7 @@
1
1
  /* eslint-disable */
2
2
  /* prettier-ignore */
3
+ /* oxlint-disable */
4
+ /* oxfmt-ignore */
3
5
  // @ts-nocheck
4
6
  // noinspection JSUnusedGlobalSymbols
5
7
  // Generated by unplugin-auto-import
@@ -13,7 +13,10 @@
13
13
  "mp-toutiao"
14
14
  ],
15
15
  "hmrTargets": [
16
- "mp-weixin"
16
+ "app",
17
+ "mp-weixin",
18
+ "mp-alipay",
19
+ "mp-toutiao"
17
20
  ],
18
21
  "smokeText": [
19
22
  "能力速览",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-uni-app-tailwindcss",
3
- "version": "0.1.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.55.0",
45
- "@types/node": "^26.2.0",
44
+ "@playwright/test": "^1.63.0",
45
+ "@types/node": "^26.5.1",
46
46
  "@types/prompts": "^2.4.9",
47
- "tsup": "^8.5.0",
47
+ "tsup": "^8.5.1",
48
48
  "typescript": "^6.0.3"
49
49
  },
50
50
  "scripts": {