weapp-tailwindcss 3.2.0-alpha.6 → 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 +3 -22
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",
|
|
@@ -151,34 +151,17 @@
|
|
|
151
151
|
"scripts": {
|
|
152
152
|
"dev": "pnpm clean && pnpm dts && cross-env NODE_ENV=development rollup -c rollup.config.ts --configPlugin typescript -w",
|
|
153
153
|
"build": "pnpm clean && cross-env NODE_ENV=production rollup -c rollup.config.ts --configPlugin typescript && pnpm dts",
|
|
154
|
-
"build:demo": "pnpm demo:del-dist && cross-env NODE_ENV=demo rollup -c rollup.config.ts --configPlugin typescript && pnpm demo:sync-dist",
|
|
155
154
|
"build:tsc": "cross-env NODE_ENV=development tsc --build tsconfig.json",
|
|
156
155
|
"build:cli": "cd plugins/cli && pnpm run build",
|
|
157
156
|
"dts": "tsc --emitDeclarationOnly -p tsconfig.dts.json",
|
|
158
|
-
"test": "npm run postinstall &&
|
|
159
|
-
"test:dev": "
|
|
157
|
+
"test": "npm run postinstall && vitest run",
|
|
158
|
+
"test:dev": "vitest",
|
|
160
159
|
"test:ui": "vitest --ui",
|
|
161
160
|
"vitest:coverage": "vitest run --coverage",
|
|
162
|
-
"e2e": "vitest run -c ./vitest.e2e.config.ts",
|
|
163
|
-
"e2e:dev": "vitest -c ./vitest.e2e.config.ts",
|
|
164
|
-
"e2e:u": "vitest run -u -c ./vitest.e2e.config.ts",
|
|
165
161
|
"init:rename": "node scripts/init/rename.js",
|
|
166
162
|
"clean": "node scripts/clean.js",
|
|
167
|
-
"debug:web": "cd demo/web && pnpm dev",
|
|
168
163
|
"raw": "ts-node scripts/raw",
|
|
169
164
|
"get-decl": "ts-node scripts/get-decl.ts",
|
|
170
|
-
"demo:dev": "node scripts/demo/dev.js",
|
|
171
|
-
"demo:build": "node scripts/demo/build.js",
|
|
172
|
-
"demo:bench": "node scripts/demo/bench.js",
|
|
173
|
-
"demo:build:local": "node scripts/demo/build.js --local",
|
|
174
|
-
"demo:link": "node scripts/demo/link.js",
|
|
175
|
-
"demo:install": "node scripts/demo/install.js",
|
|
176
|
-
"demo:install:beta": "node scripts/demo/install.js --beta",
|
|
177
|
-
"demo:install:alpha": "node scripts/demo/install.js --beta",
|
|
178
|
-
"demo:remove-deps": "node scripts/demo/del.js",
|
|
179
|
-
"demo:remove-test-coms": "node scripts/demo/remove-test-coms.js",
|
|
180
|
-
"demo:sync-dist": "node scripts/demo/copy-dist.js",
|
|
181
|
-
"demo:del-dist": "node scripts/demo/del-dist.js",
|
|
182
165
|
"sync": "cnpm sync weapp-tailwindcss-webpack-plugin weapp-tailwindcss",
|
|
183
166
|
"generate:readme": "ts-node scripts/readme/write.ts",
|
|
184
167
|
"format": "prettier --check \"src/**/*.{ts,js}\" -w",
|
|
@@ -186,8 +169,6 @@
|
|
|
186
169
|
"ls:pack": "npm pack --dry-run",
|
|
187
170
|
"cli:patch": "node bin/weapp-tailwindcss.js patch",
|
|
188
171
|
"release": "bumpp",
|
|
189
|
-
"css-build": "css2plugin build css-plugin.css css-plugin-scss.scss --cwd test/fixtures/css",
|
|
190
|
-
"css-build-out": "css2plugin build css-plugin.css css-plugin-scss.scss --cwd test/fixtures/css --out tw-plugins",
|
|
191
172
|
"-------": "-----------",
|
|
192
173
|
"postinstall": "node bin/weapp-tailwindcss.js patch"
|
|
193
174
|
}
|