weapp-tailwindcss 5.2.13 → 5.3.0
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 +55 -8
- package/README.zh-CN.md +64 -0
- package/dist/bundlers/rspack/rule-match.d.ts +13 -0
- package/dist/bundlers/shared/source-candidates/scan-root.d.ts +1 -1
- package/dist/bundlers/shared/source-candidates/types-and-cache.d.ts +2 -0
- package/dist/bundlers/vite/generate-bundle/root-style-output.d.ts +7 -0
- package/dist/bundlers/vite/shared/create-framework-plugins.d.ts +1 -0
- package/dist/bundlers/vite/shared/framework-plugin-order.d.ts +2 -0
- package/dist/bundlers/vite/shared/framework-source-scan-session.d.ts +2 -2
- package/dist/{transform-BiHG42Rp.cjs → component-local-style-BirkN5f8.cjs} +33 -168
- package/dist/{transform-52FLRu-0.js → component-local-style-CFL4ClhS.js} +22 -174
- package/dist/generator/index.d.ts +2 -2
- package/dist/generator.cjs +7 -0
- package/dist/generator.js +2 -2
- package/dist/{gulp-DxKLSgXX.cjs → gulp-B0qcNiuP.cjs} +2 -2
- package/dist/{gulp-G--cGMcR.js → gulp-D1vDx4H1.js} +1 -1
- package/dist/gulp.cjs +1 -1
- package/dist/gulp.js +1 -1
- package/dist/{hmr-timing-iTua_Z55.js → hmr-timing-Dq1_msos.js} +19 -15
- package/dist/{hmr-timing-BtqnyxAO.cjs → hmr-timing-pF6k35pP.cjs} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/{pipeline-helpers-DnYpfbat.cjs → pipeline-helpers-DA5-EzbO.cjs} +1 -1
- package/dist/rspack.cjs +124 -7
- package/dist/rspack.js +124 -7
- package/dist/{source-candidate-scan-signature-Ggn8fzkT.cjs → source-candidate-scan-signature-DGQufJk3.cjs} +1 -1
- package/dist/{source-candidate-scan-signature-TKJIs7VF.js → source-candidate-scan-signature-DSsjYtlq.js} +1 -1
- package/dist/tailwindcss/candidates.d.ts +2 -2
- package/dist/transform-BYhgJszj.cjs +200 -0
- package/dist/transform-Ck31voUU.js +201 -0
- package/dist/uni-app-x/component-local-style.d.ts +3 -1
- package/dist/uni-app-x/transform.d.ts +2 -0
- package/dist/uni-app-x/vite/style-request.d.ts +1 -0
- package/dist/uni-app-x/vite/web-local-style.d.ts +6 -0
- package/dist/{v4-generation-core-D-zVR2mt.cjs → v4-generation-core-BEYGV4eB.cjs} +19 -15
- package/dist/{vite-B577QMUl.js → vite-DBgbFsei.js} +240 -82
- package/dist/{vite-BFWJAH16.cjs → vite-jftHIupF.cjs} +240 -82
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +1 -1
- package/dist/weapp-tw-css-import-rewrite-loader.cjs +2 -2
- package/dist/{webpack-DLJkStre.js → webpack-BSIWFzAA.js} +3 -3
- package/dist/{webpack-DTqFKvcE.cjs → webpack-DhwW2cva.cjs} +4 -4
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +1 -1
- package/package.json +9 -14
- package/README.en.md +0 -17
- package/bin/weapp-tailwindcss.cjs +0 -8
- package/dist/cli/context.d.ts +0 -3
- package/dist/cli/doctor/constants.d.ts +0 -7
- package/dist/cli/doctor/types.d.ts +0 -31
- package/dist/cli/doctor.d.ts +0 -4
- package/dist/cli/helpers/options/format.d.ts +0 -2
- package/dist/cli/helpers/options/parse.d.ts +0 -3
- package/dist/cli/helpers/options/resolve.d.ts +0 -1
- package/dist/cli/helpers/options.d.ts +0 -3
- package/dist/cli/helpers.d.ts +0 -4
- package/dist/cli/mount-options.d.ts +0 -4
- package/dist/cli/types.d.ts +0 -15
- package/dist/cli/vscode-entry.d.ts +0 -14
- package/dist/cli.cjs +0 -37065
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -2298
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "5.3.0",
|
|
5
|
+
"description": "Bring Tailwind CSS to every platform! 把 Tailwind CSS 的原子化开发体验带到全端!",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://tw.icebreaker.top",
|
|
@@ -154,12 +154,7 @@
|
|
|
154
154
|
]
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
|
-
"bin": {
|
|
158
|
-
"weapp-tailwindcss": "bin/weapp-tailwindcss.cjs",
|
|
159
|
-
"weapp-tw": "bin/weapp-tailwindcss.cjs"
|
|
160
|
-
},
|
|
161
157
|
"files": [
|
|
162
|
-
"bin",
|
|
163
158
|
"css",
|
|
164
159
|
"dist",
|
|
165
160
|
"generator-placeholder.css",
|
|
@@ -207,6 +202,7 @@
|
|
|
207
202
|
"debug": "~4.4.3",
|
|
208
203
|
"fast-glob": "^3.3.3",
|
|
209
204
|
"htmlparser2": "^12.0.0",
|
|
205
|
+
"lightningcss": "^1.33.0",
|
|
210
206
|
"local-pkg": "^1.2.1",
|
|
211
207
|
"lru-cache": "11.5.2",
|
|
212
208
|
"magic-string": "^1.1.0",
|
|
@@ -215,12 +211,12 @@
|
|
|
215
211
|
"oxc-walker": "^1.1.1",
|
|
216
212
|
"semver": "~7.8.5",
|
|
217
213
|
"yaml": "^2.9.0",
|
|
218
|
-
"@weapp-tailwindcss/logger": "2.0.
|
|
219
|
-
"@weapp-tailwindcss/postcss": "3.2.
|
|
220
|
-
"@weapp-tailwindcss/reset": "0.1.
|
|
221
|
-
"@weapp-tailwindcss/shared": "2.0.
|
|
222
|
-
"tailwindcss-config": "2.0.
|
|
223
|
-
"weapp-style-injector": "1.0.
|
|
214
|
+
"@weapp-tailwindcss/logger": "2.0.2",
|
|
215
|
+
"@weapp-tailwindcss/postcss": "3.2.11",
|
|
216
|
+
"@weapp-tailwindcss/reset": "0.1.3",
|
|
217
|
+
"@weapp-tailwindcss/shared": "2.0.2",
|
|
218
|
+
"tailwindcss-config": "2.0.3",
|
|
219
|
+
"weapp-style-injector": "1.0.3"
|
|
224
220
|
},
|
|
225
221
|
"devDependencies": {
|
|
226
222
|
"@mpxjs/webpack-plugin": "^2.11.1",
|
|
@@ -231,7 +227,6 @@
|
|
|
231
227
|
"build": "tsdown && tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --declarationDir dist --noEmit false && tsx ../../tools/weapp-tailwindcss-scripts/src/rewrite-dts-aliases.ts && tsx ../../tools/weapp-tailwindcss-scripts/src/create-entry-dts.ts && tsx ../../tools/weapp-tailwindcss-scripts/src/ensure-escape-dts.ts",
|
|
232
228
|
"build:types": "tsc -p tsconfig.build.json --declaration --emitDeclarationOnly --declarationDir dist --noEmit false && tsx ../../tools/weapp-tailwindcss-scripts/src/rewrite-dts-aliases.ts && tsx ../../tools/weapp-tailwindcss-scripts/src/create-entry-dts.ts",
|
|
233
229
|
"build:tsc": "cross-env NODE_ENV=development tsc --build tsconfig.json",
|
|
234
|
-
"build:cli": "cd plugins/cli && pnpm run build",
|
|
235
230
|
"build:css": "pnpm --filter @weapp-tailwindcss/scripts build:css",
|
|
236
231
|
"build:weapp-theme": "pnpm --filter @weapp-tailwindcss/scripts build:weapp-theme",
|
|
237
232
|
"test": "vitest run",
|
package/README.en.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# weapp-tailwindcss
|
|
2
|
-
|
|
3
|
-
> English | [简体中文](./README.md)
|
|
4
|
-
|
|
5
|
-
This is the core package that brings Tailwind CSS to mini program ecosystems, handling class transformation, CSS compatibility, framework build adapters, and Tailwind v4 support.
|
|
6
|
-
|
|
7
|
-
## Website
|
|
8
|
-
|
|
9
|
-
For setup guides, configuration references, and framework examples, see the [official weapp-tailwindcss documentation](https://tw.icebreaker.top).
|
|
10
|
-
|
|
11
|
-
For Tailwind CSS 4 projects, the entry CSS must still be imported by the application. Configure `cssEntries` explicitly with absolute paths resolved from the project root, but do not treat it as a replacement for importing the CSS entry into the build graph.
|
|
12
|
-
|
|
13
|
-
## Runtime requirements
|
|
14
|
-
|
|
15
|
-
Starting with `weapp-tailwindcss@5.2.0`, Node.js `>=22.12.0` is required. This is the first Node.js 22 release where loading ESM from CommonJS is enabled by default.
|
|
16
|
-
|
|
17
|
-
When using `uni-app` or `uni-app x` through HBuilderX, HBuilderX `>=5.11` is also required. Older HBuilderX releases may bundle a Node.js runtime that cannot load the current ESM dependencies.
|
package/dist/cli/context.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { UserDefinedOptions } from '../types/index.js';
|
|
2
|
-
export declare function createCliContext(overrides: Partial<UserDefinedOptions> | undefined, resolvedCwd: string | undefined): import("../types/index.js").InternalUserDefinedOptions;
|
|
3
|
-
export declare function formatOutputPath(target: string, baseDir?: string): string;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export type DoctorCheckStatus = 'ok' | 'warn' | 'error' | 'info';
|
|
2
|
-
export interface DoctorCheck {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
status: DoctorCheckStatus;
|
|
6
|
-
message: string;
|
|
7
|
-
suggestion?: string | undefined;
|
|
8
|
-
}
|
|
9
|
-
export interface DoctorReport {
|
|
10
|
-
cwd: string;
|
|
11
|
-
nodeVersion: string;
|
|
12
|
-
detected: {
|
|
13
|
-
packageManager?: string | undefined;
|
|
14
|
-
frameworks: string[];
|
|
15
|
-
tailwindcssVersion?: string | undefined;
|
|
16
|
-
weappTailwindcssVersion?: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
summary: Record<DoctorCheckStatus, number>;
|
|
19
|
-
checks: DoctorCheck[];
|
|
20
|
-
}
|
|
21
|
-
export interface DoctorOptions {
|
|
22
|
-
cwd?: string | undefined;
|
|
23
|
-
nodeVersion?: string | undefined;
|
|
24
|
-
}
|
|
25
|
-
export interface PackageJson {
|
|
26
|
-
dependencies?: Record<string, string> | undefined;
|
|
27
|
-
devDependencies?: Record<string, string> | undefined;
|
|
28
|
-
optionalDependencies?: Record<string, string> | undefined;
|
|
29
|
-
peerDependencies?: Record<string, string> | undefined;
|
|
30
|
-
packageManager?: string | undefined;
|
|
31
|
-
}
|
package/dist/cli/doctor.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { DoctorOptions, DoctorReport } from './doctor/types.js';
|
|
2
|
-
export declare function createDoctorReport(options?: DoctorOptions): DoctorReport;
|
|
3
|
-
export declare function hasDoctorFailure(report: DoctorReport, strict?: boolean): boolean;
|
|
4
|
-
export declare function formatDoctorReport(report: DoctorReport): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function resolveCliCwd(value: unknown): string | undefined;
|
package/dist/cli/helpers.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { normalizeExtractFormat, normalizeTokenFormat, readStringArrayOption, readStringOption, resolveCliCwd, toBoolean } from './helpers/options.js';
|
|
2
|
-
export declare function ensureDir(dir: string): Promise<void>;
|
|
3
|
-
export declare function commandAction<T extends unknown[]>(handler: (...args: T) => Promise<void>): (...args: T) => Promise<void>;
|
|
4
|
-
export { normalizeExtractFormat, normalizeTokenFormat, readStringArrayOption, readStringOption, resolveCliCwd, toBoolean, };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const PATCH_COMMAND_OBSOLETE_NOTICE = "\u63D0\u793A\uFF1Aweapp-tailwindcss@5 \u5DF2\u7531\u6784\u5EFA\u8FD0\u884C\u65F6\u63A5\u7BA1 Tailwind CSS \u5904\u7406\uFF0Cweapp-tw patch \u5DF2\u65E0\u9700\u6267\u884C\uFF1B\u8BF7\u79FB\u9664 package.json \u4E2D\u7684 postinstall \u94A9\u5B50\u3002";
|
|
2
|
-
export declare const obsoletePatchCommands: readonly ["extract", "tokens", "init", "migrate", "restore", "validate"];
|
|
3
|
-
export declare function logPatchCommandObsoleteNotice(): void;
|
|
4
|
-
export declare function logObsoletePatchCommand(command: string): void;
|
package/dist/cli/types.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface CommonCommandOptions {
|
|
2
|
-
cwd?: string | boolean;
|
|
3
|
-
}
|
|
4
|
-
export interface ExtractCommandOptions extends CommonCommandOptions {
|
|
5
|
-
output?: string | boolean;
|
|
6
|
-
format?: string | boolean;
|
|
7
|
-
css?: string | boolean;
|
|
8
|
-
write?: boolean | string;
|
|
9
|
-
}
|
|
10
|
-
export interface TokensCommandOptions extends CommonCommandOptions {
|
|
11
|
-
output?: string | boolean;
|
|
12
|
-
format?: string | boolean;
|
|
13
|
-
groupKey?: string | boolean;
|
|
14
|
-
write?: boolean | string;
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const DEFAULT_VSCODE_ENTRY_OUTPUT = ".vscode/weapp-tailwindcss.intellisense.css";
|
|
2
|
-
export declare const DEFAULT_VSCODE_SOURCES: string[];
|
|
3
|
-
export interface GenerateVscodeEntryOptions {
|
|
4
|
-
baseDir: string;
|
|
5
|
-
cssEntry: string;
|
|
6
|
-
output?: string | undefined;
|
|
7
|
-
sources?: string[] | undefined;
|
|
8
|
-
force?: boolean | undefined;
|
|
9
|
-
}
|
|
10
|
-
export interface GenerateVscodeEntryResult {
|
|
11
|
-
outputPath: string;
|
|
12
|
-
cssEntryPath: string;
|
|
13
|
-
}
|
|
14
|
-
export declare function generateVscodeIntellisenseEntry(options: GenerateVscodeEntryOptions): Promise<GenerateVscodeEntryResult>;
|