weapp-tailwindcss 3.2.0-alpha.5 → 3.2.0-alpha.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/dist/cli.js +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/core.js +1 -1
- package/dist/core.mjs +1 -1
- package/dist/gulp.js +2 -2
- package/dist/gulp.mjs +2 -2
- package/dist/{index-Dvql74Wk.mjs → index-BUSWfTII.mjs} +1 -1
- package/dist/{index-DmqpnxU7.js → index-BVkWxeac.js} +1 -1
- package/dist/{index-MwT55xLq.js → index-D39btBag.js} +1 -1
- package/dist/{index-g-GuskYv.mjs → index-DTZy_RpB.mjs} +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/{options-B4Q7Koe2.mjs → options-Bx4whTEl.mjs} +1 -1
- package/dist/{options-CJjfTssp.js → options-D_WlG4zX.js} +1 -1
- package/dist/{v5-CKEUnfnw.js → v5-8gu_iMbg.js} +1 -1
- package/dist/{v5-CNoWga-V.mjs → v5-CFnJIK3x.mjs} +1 -1
- package/dist/vite.js +2 -2
- package/dist/vite.mjs +2 -2
- package/dist/webpack.js +2 -2
- package/dist/webpack.mjs +2 -2
- package/dist/webpack4.js +1 -1
- package/dist/webpack4.mjs +1 -1
- package/package.json +4 -106
package/dist/cli.js
CHANGED
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import semver from 'semver';
|
|
2
|
-
import { g as getOptions, a as createPatch } from './options-
|
|
2
|
+
import { g as getOptions, a as createPatch } from './options-Bx4whTEl.mjs';
|
|
3
3
|
import { W as WEAPP_TW_REQUIRED_NODE_VERSION } from './index-Br8RI9kF.mjs';
|
|
4
4
|
import 'magic-string';
|
|
5
5
|
import './replace.mjs';
|
package/dist/core.js
CHANGED
package/dist/core.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-Bx4whTEl.mjs';
|
|
2
2
|
import 'magic-string';
|
|
3
3
|
import './replace.mjs';
|
|
4
4
|
import '@weapp-core/escape';
|
package/dist/gulp.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
require('./options-
|
|
5
|
+
var index = require('./index-BVkWxeac.js');
|
|
6
|
+
require('./options-D_WlG4zX.js');
|
|
7
7
|
require('magic-string');
|
|
8
8
|
require('./replace.js');
|
|
9
9
|
require('@weapp-core/escape');
|
package/dist/gulp.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { c as createPlugins } from './index-
|
|
2
|
-
import './options-
|
|
1
|
+
export { c as createPlugins } from './index-DTZy_RpB.mjs';
|
|
2
|
+
import './options-Bx4whTEl.mjs';
|
|
3
3
|
import 'magic-string';
|
|
4
4
|
import './replace.mjs';
|
|
5
5
|
import '@weapp-core/escape';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-Bx4whTEl.mjs';
|
|
2
2
|
import { v as vitePluginName } from './index-Br8RI9kF.mjs';
|
|
3
3
|
import { g as getGroupedEntries } from './defaults-Cpt1fUNP.mjs';
|
|
4
4
|
import { c as createDebug } from './index-BEIjgKpF.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-Bx4whTEl.mjs';
|
|
2
2
|
import stream from 'node:stream';
|
|
3
3
|
import { c as createDebug } from './index-BEIjgKpF.mjs';
|
|
4
4
|
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var v5 = require('./v5-
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var index$1 = require('./index-
|
|
8
|
-
require('./options-
|
|
5
|
+
var v5 = require('./v5-8gu_iMbg.js');
|
|
6
|
+
var index = require('./index-D39btBag.js');
|
|
7
|
+
var index$1 = require('./index-BVkWxeac.js');
|
|
8
|
+
require('./options-D_WlG4zX.js');
|
|
9
9
|
require('magic-string');
|
|
10
10
|
require('./replace.js');
|
|
11
11
|
require('@weapp-core/escape');
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { U as UnifiedWebpackPluginV5 } from './v5-
|
|
2
|
-
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-
|
|
3
|
-
export { c as createPlugins } from './index-
|
|
4
|
-
import './options-
|
|
1
|
+
export { U as UnifiedWebpackPluginV5 } from './v5-CFnJIK3x.mjs';
|
|
2
|
+
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-BUSWfTII.mjs';
|
|
3
|
+
export { c as createPlugins } from './index-DTZy_RpB.mjs';
|
|
4
|
+
import './options-Bx4whTEl.mjs';
|
|
5
5
|
import 'magic-string';
|
|
6
6
|
import './replace.mjs';
|
|
7
7
|
import '@weapp-core/escape';
|
|
@@ -580,7 +580,7 @@ function monkeyPatchForSupportingCustomUnit(rootDir, options) {
|
|
|
580
580
|
}
|
|
581
581
|
function internalPatch(pkgJsonPath, options, overwrite = true) {
|
|
582
582
|
if (pkgJsonPath) {
|
|
583
|
-
const pkgJson =
|
|
583
|
+
const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf8'));
|
|
584
584
|
const dangerousOptions = options.dangerousOptions;
|
|
585
585
|
const version = pkgJson.version;
|
|
586
586
|
if (gte(version, dangerousOptions.gteVersion)) {
|
|
@@ -611,7 +611,7 @@ function monkeyPatchForSupportingCustomUnit(rootDir, options) {
|
|
|
611
611
|
}
|
|
612
612
|
function internalPatch(pkgJsonPath, options, overwrite = true) {
|
|
613
613
|
if (pkgJsonPath) {
|
|
614
|
-
const pkgJson =
|
|
614
|
+
const pkgJson = JSON.parse(fs__default["default"].readFileSync(pkgJsonPath, 'utf8'));
|
|
615
615
|
const dangerousOptions = options.dangerousOptions;
|
|
616
616
|
const version = pkgJson.version;
|
|
617
617
|
if (semver.gte(version, dangerousOptions.gteVersion)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-Bx4whTEl.mjs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import fs from 'node:fs';
|
|
4
4
|
import { b as pluginName } from './index-Br8RI9kF.mjs';
|
package/dist/vite.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
require('./options-
|
|
5
|
+
var index = require('./index-D39btBag.js');
|
|
6
|
+
require('./options-D_WlG4zX.js');
|
|
7
7
|
require('magic-string');
|
|
8
8
|
require('./replace.js');
|
|
9
9
|
require('@weapp-core/escape');
|
package/dist/vite.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-
|
|
2
|
-
import './options-
|
|
1
|
+
export { U as UnifiedViteWeappTailwindcssPlugin } from './index-BUSWfTII.mjs';
|
|
2
|
+
import './options-Bx4whTEl.mjs';
|
|
3
3
|
import 'magic-string';
|
|
4
4
|
import './replace.mjs';
|
|
5
5
|
import '@weapp-core/escape';
|
package/dist/webpack.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var v5 = require('./v5-
|
|
6
|
-
require('./options-
|
|
5
|
+
var v5 = require('./v5-8gu_iMbg.js');
|
|
6
|
+
require('./options-D_WlG4zX.js');
|
|
7
7
|
require('magic-string');
|
|
8
8
|
require('./replace.js');
|
|
9
9
|
require('@weapp-core/escape');
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { U as UnifiedWebpackPluginV5 } from './v5-
|
|
2
|
-
import './options-
|
|
1
|
+
export { U as UnifiedWebpackPluginV5 } from './v5-CFnJIK3x.mjs';
|
|
2
|
+
import './options-Bx4whTEl.mjs';
|
|
3
3
|
import 'magic-string';
|
|
4
4
|
import './replace.mjs';
|
|
5
5
|
import '@weapp-core/escape';
|
package/dist/webpack4.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var options = require('./options-
|
|
5
|
+
var options = require('./options-D_WlG4zX.js');
|
|
6
6
|
var path = require('node:path');
|
|
7
7
|
var fs = require('node:fs');
|
|
8
8
|
var webpackSources = require('webpack-sources');
|
package/dist/webpack4.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-
|
|
1
|
+
import { g as getOptions, c as createTailwindcssPatcher, _ as __awaiter } from './options-Bx4whTEl.mjs';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import fs from 'node:fs';
|
|
4
4
|
import { ConcatSource, RawSource } from 'webpack-sources';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "3.2.0-alpha.
|
|
3
|
+
"version": "3.2.0-alpha.7",
|
|
4
4
|
"description": "把tailwindcss jit引擎,带给小程序开发者们! bring tailwindcss jit engine to miniprogram developers!",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -121,90 +121,6 @@
|
|
|
121
121
|
"url": "https://github.com/sonofmagic/weapp-tailwindcss-webpack-plugin/issues"
|
|
122
122
|
},
|
|
123
123
|
"homepage": "https://weapp-tw.icebreaker.top",
|
|
124
|
-
"devDependencies": {
|
|
125
|
-
"@ast-grep/napi": "^0.20.5",
|
|
126
|
-
"@babel/core": "^7.24.4",
|
|
127
|
-
"@icebreakers/cli": "0.1.1",
|
|
128
|
-
"@icebreakers/readme": "0.1.0",
|
|
129
|
-
"@rollup/plugin-alias": "^5.1.0",
|
|
130
|
-
"@rollup/plugin-commonjs": "^25.0.7",
|
|
131
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
132
|
-
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
133
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
134
|
-
"@rollup/plugin-typescript": "^11.1.6",
|
|
135
|
-
"@tsconfig/recommended": "^1.0.6",
|
|
136
|
-
"@types/babel__generator": "^7.6.8",
|
|
137
|
-
"@types/babel__traverse": "^7.20.5",
|
|
138
|
-
"@types/debug": "^4.1.12",
|
|
139
|
-
"@types/diff": "^5.2.0",
|
|
140
|
-
"@types/fs-extra": "^11.0.4",
|
|
141
|
-
"@types/gulp": "^4.0.17",
|
|
142
|
-
"@types/gulp-postcss": "^8.0.6",
|
|
143
|
-
"@types/js-beautify": "^1.14.3",
|
|
144
|
-
"@types/klaw": "^3.0.6",
|
|
145
|
-
"@types/loader-utils": "^2.0.6",
|
|
146
|
-
"@types/lodash": "^4.17.0",
|
|
147
|
-
"@types/md5": "^2.3.5",
|
|
148
|
-
"@types/micromatch": "^4.0.7",
|
|
149
|
-
"@types/node": "^20.12.7",
|
|
150
|
-
"@types/semver": "^7.5.8",
|
|
151
|
-
"@types/vinyl": "^2.0.12",
|
|
152
|
-
"@types/webpack": "^5.28.5",
|
|
153
|
-
"@types/webpack-sources": "^3.2.3",
|
|
154
|
-
"@types/webpack4": "npm:@types/webpack@4",
|
|
155
|
-
"@vitest/coverage-v8": "^1.5.0",
|
|
156
|
-
"@vitest/ui": "^1.5.0",
|
|
157
|
-
"@weapp-tailwindcss/cli": "0.0.0-alpha.5",
|
|
158
|
-
"autoprefixer": "^10.4.19",
|
|
159
|
-
"babel-loader": "^9.1.3",
|
|
160
|
-
"bumpp": "^9.4.0",
|
|
161
|
-
"colorette": "^2.0.20",
|
|
162
|
-
"cross-env": "^7.0.3",
|
|
163
|
-
"css-loader": "^7.1.1",
|
|
164
|
-
"css-to-tailwindcss-plugin": "^0.3.0",
|
|
165
|
-
"dedent": "^1.5.3",
|
|
166
|
-
"defu": "6.1.4",
|
|
167
|
-
"del": "^7.1.0",
|
|
168
|
-
"diff": "^5.2.0",
|
|
169
|
-
"domhandler": "^5.0.3",
|
|
170
|
-
"eslint": "8.57.0",
|
|
171
|
-
"eslint-config-icebreaker": "^1.2.3",
|
|
172
|
-
"eslint-config-prettier": "^9.1.0",
|
|
173
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
174
|
-
"execa": "^8.0.1",
|
|
175
|
-
"fast-glob": "^3.3.2",
|
|
176
|
-
"fs-extra": "^11.2.0",
|
|
177
|
-
"gulp": "^5.0.0",
|
|
178
|
-
"gulp-postcss": "^10.0.0",
|
|
179
|
-
"html-loader": "^5.0.0",
|
|
180
|
-
"js-beautify": "^1.15.1",
|
|
181
|
-
"klaw": "^4.1.0",
|
|
182
|
-
"lodash": "^4.17.21",
|
|
183
|
-
"mini-css-extract-plugin": "^2.9.0",
|
|
184
|
-
"miniprogram-automator": "^0.12.1",
|
|
185
|
-
"pkg-types": "^1.1.0",
|
|
186
|
-
"postcss-load-config": "^5.0.3",
|
|
187
|
-
"postcss-loader": "^8.1.1",
|
|
188
|
-
"prettier": "^3.2.5",
|
|
189
|
-
"promisify-loader-runner": "^1.0.1",
|
|
190
|
-
"rollup": "^4.16.1",
|
|
191
|
-
"rollup-plugin-visualizer": "^5.12.0",
|
|
192
|
-
"sass": "^1.75.0",
|
|
193
|
-
"style-loader": "^4.0.0",
|
|
194
|
-
"tailwindcss": "^3.4.3",
|
|
195
|
-
"ts-node": "^10.9.2",
|
|
196
|
-
"ts-patch": "^3.1.2",
|
|
197
|
-
"tsd": "^0.31.0",
|
|
198
|
-
"tslib": "^2.6.2",
|
|
199
|
-
"typescript": "^5.4.5",
|
|
200
|
-
"typescript-transform-paths": "^3.4.7",
|
|
201
|
-
"vinyl": "^3.0.0",
|
|
202
|
-
"vite": "^5.2.10",
|
|
203
|
-
"vitest": "^1.5.0",
|
|
204
|
-
"weapp-tailwindcss-children": "^0.1.0",
|
|
205
|
-
"webpack": "^5.91.0",
|
|
206
|
-
"webpack-build-utils": "^0.0.7"
|
|
207
|
-
},
|
|
208
124
|
"dependencies": {
|
|
209
125
|
"@ast-core/escape": "^1.0.1",
|
|
210
126
|
"@babel/generator": "7.24.4",
|
|
@@ -235,33 +151,17 @@
|
|
|
235
151
|
"scripts": {
|
|
236
152
|
"dev": "pnpm clean && pnpm dts && cross-env NODE_ENV=development rollup -c rollup.config.ts --configPlugin typescript -w",
|
|
237
153
|
"build": "pnpm clean && cross-env NODE_ENV=production rollup -c rollup.config.ts --configPlugin typescript && pnpm dts",
|
|
238
|
-
"build:demo": "pnpm demo:del-dist && cross-env NODE_ENV=demo rollup -c rollup.config.ts --configPlugin typescript && pnpm demo:sync-dist",
|
|
239
154
|
"build:tsc": "cross-env NODE_ENV=development tsc --build tsconfig.json",
|
|
155
|
+
"build:cli": "cd plugins/cli && pnpm run build",
|
|
240
156
|
"dts": "tsc --emitDeclarationOnly -p tsconfig.dts.json",
|
|
241
|
-
"test": "npm run postinstall &&
|
|
242
|
-
"test:dev": "
|
|
157
|
+
"test": "npm run postinstall && vitest run",
|
|
158
|
+
"test:dev": "vitest",
|
|
243
159
|
"test:ui": "vitest --ui",
|
|
244
160
|
"vitest:coverage": "vitest run --coverage",
|
|
245
|
-
"e2e": "vitest run -c ./vitest.e2e.config.ts",
|
|
246
|
-
"e2e:dev": "vitest -c ./vitest.e2e.config.ts",
|
|
247
|
-
"e2e:u": "vitest run -u -c ./vitest.e2e.config.ts",
|
|
248
161
|
"init:rename": "node scripts/init/rename.js",
|
|
249
162
|
"clean": "node scripts/clean.js",
|
|
250
|
-
"debug:web": "cd demo/web && pnpm dev",
|
|
251
163
|
"raw": "ts-node scripts/raw",
|
|
252
164
|
"get-decl": "ts-node scripts/get-decl.ts",
|
|
253
|
-
"demo:dev": "node scripts/demo/dev.js",
|
|
254
|
-
"demo:build": "node scripts/demo/build.js",
|
|
255
|
-
"demo:bench": "node scripts/demo/bench.js",
|
|
256
|
-
"demo:build:local": "node scripts/demo/build.js --local",
|
|
257
|
-
"demo:link": "node scripts/demo/link.js",
|
|
258
|
-
"demo:install": "node scripts/demo/install.js",
|
|
259
|
-
"demo:install:beta": "node scripts/demo/install.js --beta",
|
|
260
|
-
"demo:install:alpha": "node scripts/demo/install.js --beta",
|
|
261
|
-
"demo:remove-deps": "node scripts/demo/del.js",
|
|
262
|
-
"demo:remove-test-coms": "node scripts/demo/remove-test-coms.js",
|
|
263
|
-
"demo:sync-dist": "node scripts/demo/copy-dist.js",
|
|
264
|
-
"demo:del-dist": "node scripts/demo/del-dist.js",
|
|
265
165
|
"sync": "cnpm sync weapp-tailwindcss-webpack-plugin weapp-tailwindcss",
|
|
266
166
|
"generate:readme": "ts-node scripts/readme/write.ts",
|
|
267
167
|
"format": "prettier --check \"src/**/*.{ts,js}\" -w",
|
|
@@ -269,8 +169,6 @@
|
|
|
269
169
|
"ls:pack": "npm pack --dry-run",
|
|
270
170
|
"cli:patch": "node bin/weapp-tailwindcss.js patch",
|
|
271
171
|
"release": "bumpp",
|
|
272
|
-
"css-build": "css2plugin build css-plugin.css css-plugin-scss.scss --cwd test/fixtures/css",
|
|
273
|
-
"css-build-out": "css2plugin build css-plugin.css css-plugin-scss.scss --cwd test/fixtures/css --out tw-plugins",
|
|
274
172
|
"-------": "-----------",
|
|
275
173
|
"postinstall": "node bin/weapp-tailwindcss.js patch"
|
|
276
174
|
}
|