@weapp-tailwindcss/cli 1.0.9 → 1.0.10

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
@@ -4,4 +4,4 @@
4
4
 
5
5
  相关文档:
6
6
 
7
- 👉 [https://weapp-tw.icebreaker.top/](https://weapp-tw.icebreaker.top/docs/quick-start/native/install)
7
+ 👉 [https://tw.icebreaker.top/](https://tw.icebreaker.top/docs/quick-start/native/install)
package/dist/index.cjs CHANGED
@@ -1,94 +1,36 @@
1
1
  'use strict';
2
2
 
3
- const process = require('node:process');
4
- const commander = require('commander');
5
3
  const path = require('node:path');
4
+ const createDebug = require('debug');
6
5
  const fs = require('fs-extra');
7
6
  const gulp$1 = require('gulp');
8
- const loadPostcssConfig = require('postcss-load-config');
9
- const pc = require('picocolors');
10
- const localPkg = require('local-pkg');
11
- const createDebug = require('debug');
12
- const gulp = require('weapp-tailwindcss/gulp');
7
+ const less = require('gulp-less');
13
8
  const postcssrc = require('gulp-postcss');
14
- const createSass = require('gulp-sass');
15
9
  const rename = require('gulp-rename');
16
- const less = require('gulp-less');
10
+ const createSass = require('gulp-sass');
11
+ const localPkg = require('local-pkg');
17
12
  const postcssScssParser = require('postcss-scss');
13
+ const gulp = require('weapp-tailwindcss/gulp');
14
+ const pc = require('picocolors');
15
+ const loadPostcssConfig = require('postcss-load-config');
16
+ const process = require('node:process');
18
17
  const cosmiconfig = require('cosmiconfig');
18
+ const commander = require('commander');
19
19
 
20
20
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
21
21
 
22
- const process__default = /*#__PURE__*/_interopDefaultCompat(process);
23
22
  const path__default = /*#__PURE__*/_interopDefaultCompat(path);
23
+ const createDebug__default = /*#__PURE__*/_interopDefaultCompat(createDebug);
24
24
  const fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
25
25
  const gulp__default = /*#__PURE__*/_interopDefaultCompat(gulp$1);
26
- const loadPostcssConfig__default = /*#__PURE__*/_interopDefaultCompat(loadPostcssConfig);
27
- const pc__default = /*#__PURE__*/_interopDefaultCompat(pc);
28
- const createDebug__default = /*#__PURE__*/_interopDefaultCompat(createDebug);
26
+ const less__default = /*#__PURE__*/_interopDefaultCompat(less);
29
27
  const postcssrc__default = /*#__PURE__*/_interopDefaultCompat(postcssrc);
30
- const createSass__default = /*#__PURE__*/_interopDefaultCompat(createSass);
31
28
  const rename__default = /*#__PURE__*/_interopDefaultCompat(rename);
32
- const less__default = /*#__PURE__*/_interopDefaultCompat(less);
29
+ const createSass__default = /*#__PURE__*/_interopDefaultCompat(createSass);
33
30
  const postcssScssParser__default = /*#__PURE__*/_interopDefaultCompat(postcssScssParser);
34
-
35
- function isPlainObject$2(value) {
36
- if (value === null || typeof value !== "object") {
37
- return false;
38
- }
39
- const prototype = Object.getPrototypeOf(value);
40
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
41
- return false;
42
- }
43
- if (Symbol.iterator in value) {
44
- return false;
45
- }
46
- if (Symbol.toStringTag in value) {
47
- return Object.prototype.toString.call(value) === "[object Module]";
48
- }
49
- return true;
50
- }
51
-
52
- function _defu(baseObject, defaults, namespace = ".", merger) {
53
- if (!isPlainObject$2(defaults)) {
54
- return _defu(baseObject, {}, namespace, merger);
55
- }
56
- const object = Object.assign({}, defaults);
57
- for (const key in baseObject) {
58
- if (key === "__proto__" || key === "constructor") {
59
- continue;
60
- }
61
- const value = baseObject[key];
62
- if (value === null || value === void 0) {
63
- continue;
64
- }
65
- if (merger && merger(object, key, value, namespace)) {
66
- continue;
67
- }
68
- if (Array.isArray(value) && Array.isArray(object[key])) {
69
- object[key] = [...value, ...object[key]];
70
- } else if (isPlainObject$2(value) && isPlainObject$2(object[key])) {
71
- object[key] = _defu(
72
- value,
73
- object[key],
74
- (namespace ? `${namespace}.` : "") + key.toString(),
75
- merger
76
- );
77
- } else {
78
- object[key] = value;
79
- }
80
- }
81
- return object;
82
- }
83
- function createDefu(merger) {
84
- return (...arguments_) => (
85
- // eslint-disable-next-line unicorn/no-array-reduce
86
- arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
87
- );
88
- }
89
- const defu = createDefu();
90
-
91
- const version = "1.0.9";
31
+ const pc__default = /*#__PURE__*/_interopDefaultCompat(pc);
32
+ const loadPostcssConfig__default = /*#__PURE__*/_interopDefaultCompat(loadPostcssConfig);
33
+ const process__default = /*#__PURE__*/_interopDefaultCompat(process);
92
34
 
93
35
  const debug = createDebug__default("weapp-tw-cli");
94
36
 
@@ -130,60 +72,142 @@ function getDefaultOptions(options, postcssOptionsFromConfig) {
130
72
  };
131
73
  }
132
74
 
133
- var __defProp = Object.defineProperty;
134
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
135
- var __publicField = (obj, key, value) => {
136
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
137
- return value;
75
+ var AssetType = /* @__PURE__ */ ((AssetType2) => {
76
+ AssetType2["JavaScript"] = "javascript";
77
+ AssetType2["Json"] = "json";
78
+ AssetType2["Css"] = "css";
79
+ AssetType2["Html"] = "html";
80
+ return AssetType2;
81
+ })(AssetType || {});
82
+
83
+ function getDefaultExportFromCjs (x) {
84
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
85
+ }
86
+
87
+ /*!
88
+ * isobject <https://github.com/jonschlinkert/isobject>
89
+ *
90
+ * Copyright (c) 2014-2017, Jon Schlinkert.
91
+ * Released under the MIT License.
92
+ */
93
+
94
+ var isobject = function isObject(val) {
95
+ return val != null && typeof val === 'object' && Array.isArray(val) === false;
138
96
  };
139
- class GlobsSet {
140
- constructor() {
141
- __publicField(this, "includeSet");
142
- __publicField(this, "excludeSet");
143
- this.includeSet = /* @__PURE__ */ new Set();
144
- this.excludeSet = /* @__PURE__ */ new Set();
97
+
98
+ /*!
99
+ * get-value <https://github.com/jonschlinkert/get-value>
100
+ *
101
+ * Copyright (c) 2014-2018, Jon Schlinkert.
102
+ * Released under the MIT License.
103
+ */
104
+
105
+ const isObject$3 = isobject;
106
+
107
+ var getValue = function(target, path, options) {
108
+ if (!isObject$3(options)) {
109
+ options = { default: options };
145
110
  }
146
- isExcludeGlob(value) {
147
- return value[0] === "!";
111
+
112
+ if (!isValidObject(target)) {
113
+ return typeof options.default !== 'undefined' ? options.default : target;
148
114
  }
149
- addSingle(value) {
150
- return this.isExcludeGlob(value) ? this.excludeSet.add(value) : this.includeSet.add(value);
115
+
116
+ if (typeof path === 'number') {
117
+ path = String(path);
151
118
  }
152
- add(...value) {
153
- for (const v of value) {
154
- if (Array.isArray(v)) {
155
- for (const vv of v) {
156
- this.addSingle(vv);
119
+
120
+ const isArray = Array.isArray(path);
121
+ const isString = typeof path === 'string';
122
+ const splitChar = options.separator || '.';
123
+ const joinChar = options.joinChar || (typeof splitChar === 'string' ? splitChar : '.');
124
+
125
+ if (!isString && !isArray) {
126
+ return target;
127
+ }
128
+
129
+ if (isString && path in target) {
130
+ return isValid(path, target, options) ? target[path] : options.default;
131
+ }
132
+
133
+ let segs = isArray ? path : split$1(path, splitChar, options);
134
+ let len = segs.length;
135
+ let idx = 0;
136
+
137
+ do {
138
+ let prop = segs[idx];
139
+ if (typeof prop === 'number') {
140
+ prop = String(prop);
141
+ }
142
+
143
+ while (prop && prop.slice(-1) === '\\') {
144
+ prop = join([prop.slice(0, -1), segs[++idx] || ''], joinChar, options);
145
+ }
146
+
147
+ if (prop in target) {
148
+ if (!isValid(prop, target, options)) {
149
+ return options.default;
150
+ }
151
+
152
+ target = target[prop];
153
+ } else {
154
+ let hasProp = false;
155
+ let n = idx + 1;
156
+
157
+ while (n < len) {
158
+ prop = join([prop, segs[n++]], joinChar, options);
159
+
160
+ if ((hasProp = prop in target)) {
161
+ if (!isValid(prop, target, options)) {
162
+ return options.default;
163
+ }
164
+
165
+ target = target[prop];
166
+ idx = n - 1;
167
+ break;
157
168
  }
158
- } else {
159
- this.addSingle(v);
169
+ }
170
+
171
+ if (!hasProp) {
172
+ return options.default;
160
173
  }
161
174
  }
175
+ } while (++idx < len && isValidObject(target));
176
+
177
+ if (idx === len) {
178
+ return target;
162
179
  }
163
- dump() {
164
- return [...this.includeSet, ...this.excludeSet];
165
- }
166
- dumpIgnored() {
167
- return [...this.excludeSet].map((x) => x.slice(1));
180
+
181
+ return options.default;
182
+ };
183
+
184
+ function join(segs, joinChar, options) {
185
+ if (typeof options.join === 'function') {
186
+ return options.join(segs);
168
187
  }
188
+ return segs[0] + joinChar + segs[1];
169
189
  }
170
190
 
171
- function isStream(stream, { checkOpen = true } = {}) {
172
- return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
191
+ function split$1(path, splitChar, options) {
192
+ if (typeof options.split === 'function') {
193
+ return options.split(path);
194
+ }
195
+ return path.split(splitChar);
173
196
  }
174
197
 
175
- var AssetType = /* @__PURE__ */ ((AssetType2) => {
176
- AssetType2["JavaScript"] = "javascript";
177
- AssetType2["Json"] = "json";
178
- AssetType2["Css"] = "css";
179
- AssetType2["Html"] = "html";
180
- return AssetType2;
181
- })(AssetType || {});
198
+ function isValid(key, target, options) {
199
+ if (typeof options.isValid === 'function') {
200
+ return options.isValid(key, target);
201
+ }
202
+ return true;
203
+ }
182
204
 
183
- function getDefaultExportFromCjs (x) {
184
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
205
+ function isValidObject(val) {
206
+ return isObject$3(val) || Array.isArray(val) || typeof val === 'function';
185
207
  }
186
208
 
209
+ const get = /*@__PURE__*/getDefaultExportFromCjs(getValue);
210
+
187
211
  /*!
188
212
  * is-primitive <https://github.com/jonschlinkert/is-primitive>
189
213
  *
@@ -198,17 +222,6 @@ var isPrimitive$1 = function isPrimitive(val) {
198
222
  return typeof val !== 'function';
199
223
  };
200
224
 
201
- /*!
202
- * isobject <https://github.com/jonschlinkert/isobject>
203
- *
204
- * Copyright (c) 2014-2017, Jon Schlinkert.
205
- * Released under the MIT License.
206
- */
207
-
208
- var isobject = function isObject(val) {
209
- return val != null && typeof val === 'object' && Array.isArray(val) === false;
210
- };
211
-
212
225
  /*!
213
226
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
214
227
  *
@@ -216,14 +229,14 @@ var isobject = function isObject(val) {
216
229
  * Released under the MIT License.
217
230
  */
218
231
 
219
- var isObject$3 = isobject;
232
+ var isObject$2 = isobject;
220
233
 
221
234
  function isObjectObject(o) {
222
- return isObject$3(o) === true
235
+ return isObject$2(o) === true
223
236
  && Object.prototype.toString.call(o) === '[object Object]';
224
237
  }
225
238
 
226
- var isPlainObject$1 = function isPlainObject(o) {
239
+ var isPlainObject$2 = function isPlainObject(o) {
227
240
  var ctor,prot;
228
241
 
229
242
  if (isObjectObject(o) === false) return false;
@@ -254,9 +267,9 @@ var isPlainObject$1 = function isPlainObject(o) {
254
267
 
255
268
  const { deleteProperty } = Reflect;
256
269
  const isPrimitive = isPrimitive$1;
257
- const isPlainObject = isPlainObject$1;
270
+ const isPlainObject$1 = isPlainObject$2;
258
271
 
259
- const isObject$2 = value => {
272
+ const isObject$1 = value => {
260
273
  return (typeof value === 'object' && value !== null) || typeof value === 'function';
261
274
  };
262
275
 
@@ -342,7 +355,7 @@ const splitString = (input, options = {}) => {
342
355
  return parts;
343
356
  };
344
357
 
345
- const split$1 = (input, options) => {
358
+ const split = (input, options) => {
346
359
  if (options && typeof options.split === 'function') return options.split(input);
347
360
  if (typeof input === 'symbol') return [input];
348
361
  if (Array.isArray(input)) return input;
@@ -360,7 +373,7 @@ const assignProp = (obj, prop, value, options) => {
360
373
  const merge = options.merge === 'function' ? options.merge : Object.assign;
361
374
 
362
375
  // Only merge plain objects
363
- if (merge && isPlainObject(obj[prop]) && isPlainObject(value)) {
376
+ if (merge && isPlainObject$1(obj[prop]) && isPlainObject$1(value)) {
364
377
  obj[prop] = merge(obj[prop], value);
365
378
  } else {
366
379
  obj[prop] = value;
@@ -374,9 +387,9 @@ const assignProp = (obj, prop, value, options) => {
374
387
  };
375
388
 
376
389
  const setValue = (target, path, value, options) => {
377
- if (!path || !isObject$2(target)) return target;
390
+ if (!path || !isObject$1(target)) return target;
378
391
 
379
- const keys = split$1(path, options);
392
+ const keys = split(path, options);
380
393
  let obj = target;
381
394
 
382
395
  for (let i = 0; i < keys.length; i++) {
@@ -395,7 +408,7 @@ const setValue = (target, path, value, options) => {
395
408
  continue;
396
409
  }
397
410
 
398
- if (!isObject$2(obj[key])) {
411
+ if (!isObject$1(obj[key])) {
399
412
  obj[key] = {};
400
413
  }
401
414
 
@@ -405,7 +418,7 @@ const setValue = (target, path, value, options) => {
405
418
  return target;
406
419
  };
407
420
 
408
- setValue.split = split$1;
421
+ setValue.split = split;
409
422
  setValue.cache = new Map();
410
423
  setValue.clear = () => {
411
424
  setValue.cache = new Map();
@@ -415,119 +428,6 @@ var setValue_1 = setValue;
415
428
 
416
429
  const set = /*@__PURE__*/getDefaultExportFromCjs(setValue_1);
417
430
 
418
- /*!
419
- * get-value <https://github.com/jonschlinkert/get-value>
420
- *
421
- * Copyright (c) 2014-2018, Jon Schlinkert.
422
- * Released under the MIT License.
423
- */
424
-
425
- const isObject$1 = isobject;
426
-
427
- var getValue = function(target, path, options) {
428
- if (!isObject$1(options)) {
429
- options = { default: options };
430
- }
431
-
432
- if (!isValidObject(target)) {
433
- return typeof options.default !== 'undefined' ? options.default : target;
434
- }
435
-
436
- if (typeof path === 'number') {
437
- path = String(path);
438
- }
439
-
440
- const isArray = Array.isArray(path);
441
- const isString = typeof path === 'string';
442
- const splitChar = options.separator || '.';
443
- const joinChar = options.joinChar || (typeof splitChar === 'string' ? splitChar : '.');
444
-
445
- if (!isString && !isArray) {
446
- return target;
447
- }
448
-
449
- if (isString && path in target) {
450
- return isValid(path, target, options) ? target[path] : options.default;
451
- }
452
-
453
- let segs = isArray ? path : split(path, splitChar, options);
454
- let len = segs.length;
455
- let idx = 0;
456
-
457
- do {
458
- let prop = segs[idx];
459
- if (typeof prop === 'number') {
460
- prop = String(prop);
461
- }
462
-
463
- while (prop && prop.slice(-1) === '\\') {
464
- prop = join([prop.slice(0, -1), segs[++idx] || ''], joinChar, options);
465
- }
466
-
467
- if (prop in target) {
468
- if (!isValid(prop, target, options)) {
469
- return options.default;
470
- }
471
-
472
- target = target[prop];
473
- } else {
474
- let hasProp = false;
475
- let n = idx + 1;
476
-
477
- while (n < len) {
478
- prop = join([prop, segs[n++]], joinChar, options);
479
-
480
- if ((hasProp = prop in target)) {
481
- if (!isValid(prop, target, options)) {
482
- return options.default;
483
- }
484
-
485
- target = target[prop];
486
- idx = n - 1;
487
- break;
488
- }
489
- }
490
-
491
- if (!hasProp) {
492
- return options.default;
493
- }
494
- }
495
- } while (++idx < len && isValidObject(target));
496
-
497
- if (idx === len) {
498
- return target;
499
- }
500
-
501
- return options.default;
502
- };
503
-
504
- function join(segs, joinChar, options) {
505
- if (typeof options.join === 'function') {
506
- return options.join(segs);
507
- }
508
- return segs[0] + joinChar + segs[1];
509
- }
510
-
511
- function split(path, splitChar, options) {
512
- if (typeof options.split === 'function') {
513
- return options.split(path);
514
- }
515
- return path.split(splitChar);
516
- }
517
-
518
- function isValid(key, target, options) {
519
- if (typeof options.isValid === 'function') {
520
- return options.isValid(key, target);
521
- }
522
- return true;
523
- }
524
-
525
- function isValidObject(val) {
526
- return isObject$1(val) || Array.isArray(val) || typeof val === 'function';
527
- }
528
-
529
- const get = /*@__PURE__*/getDefaultExportFromCjs(getValue);
530
-
531
431
  function isObject(x) {
532
432
  return typeof x === "object" && x !== null;
533
433
  }
@@ -558,6 +458,48 @@ function isTsLang(lang) {
558
458
  return lang === "ts";
559
459
  }
560
460
 
461
+ var __defProp = Object.defineProperty;
462
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
463
+ var __publicField = (obj, key, value) => {
464
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
465
+ return value;
466
+ };
467
+ class GlobsSet {
468
+ constructor() {
469
+ __publicField(this, "includeSet");
470
+ __publicField(this, "excludeSet");
471
+ this.includeSet = /* @__PURE__ */ new Set();
472
+ this.excludeSet = /* @__PURE__ */ new Set();
473
+ }
474
+ isExcludeGlob(value) {
475
+ return value[0] === "!";
476
+ }
477
+ addSingle(value) {
478
+ return this.isExcludeGlob(value) ? this.excludeSet.add(value) : this.includeSet.add(value);
479
+ }
480
+ add(...value) {
481
+ for (const v of value) {
482
+ if (Array.isArray(v)) {
483
+ for (const vv of v) {
484
+ this.addSingle(vv);
485
+ }
486
+ } else {
487
+ this.addSingle(v);
488
+ }
489
+ }
490
+ }
491
+ dump() {
492
+ return [...this.includeSet, ...this.excludeSet];
493
+ }
494
+ dumpIgnored() {
495
+ return [...this.excludeSet].map((x) => x.slice(1));
496
+ }
497
+ }
498
+
499
+ function isStream(stream, { checkOpen = true } = {}) {
500
+ return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
501
+ }
502
+
561
503
  function normalizePlugin(plugin) {
562
504
  if (isStream(plugin)) {
563
505
  return plugin;
@@ -801,6 +743,64 @@ async function getTasks(options) {
801
743
  };
802
744
  }
803
745
 
746
+ function isPlainObject(value) {
747
+ if (value === null || typeof value !== "object") {
748
+ return false;
749
+ }
750
+ const prototype = Object.getPrototypeOf(value);
751
+ if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
752
+ return false;
753
+ }
754
+ if (Symbol.iterator in value) {
755
+ return false;
756
+ }
757
+ if (Symbol.toStringTag in value) {
758
+ return Object.prototype.toString.call(value) === "[object Module]";
759
+ }
760
+ return true;
761
+ }
762
+
763
+ function _defu(baseObject, defaults, namespace = ".", merger) {
764
+ if (!isPlainObject(defaults)) {
765
+ return _defu(baseObject, {}, namespace, merger);
766
+ }
767
+ const object = Object.assign({}, defaults);
768
+ for (const key in baseObject) {
769
+ if (key === "__proto__" || key === "constructor") {
770
+ continue;
771
+ }
772
+ const value = baseObject[key];
773
+ if (value === null || value === void 0) {
774
+ continue;
775
+ }
776
+ if (merger && merger(object, key, value, namespace)) {
777
+ continue;
778
+ }
779
+ if (Array.isArray(value) && Array.isArray(object[key])) {
780
+ object[key] = [...value, ...object[key]];
781
+ } else if (isPlainObject(value) && isPlainObject(object[key])) {
782
+ object[key] = _defu(
783
+ value,
784
+ object[key],
785
+ (namespace ? `${namespace}.` : "") + key.toString(),
786
+ merger
787
+ );
788
+ } else {
789
+ object[key] = value;
790
+ }
791
+ }
792
+ return object;
793
+ }
794
+ function createDefu(merger) {
795
+ return (...arguments_) => (
796
+ // eslint-disable-next-line unicorn/no-array-reduce
797
+ arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
798
+ );
799
+ }
800
+ const defu = createDefu();
801
+
802
+ const version = "1.0.10";
803
+
804
804
  async function createBuilder(options) {
805
805
  let postcssOptionsFromConfig;
806
806
  try {
package/dist/index.d.cts CHANGED
@@ -1,14 +1,12 @@
1
- import { Command } from 'commander';
2
- import { FSWatcher } from 'fs-extra';
3
- import { UserDefinedOptions } from 'weapp-tailwindcss';
4
1
  import { WatchOptions } from 'gulp';
2
+ import { Settings } from 'gulp-typescript';
5
3
  import { Result } from 'postcss-load-config';
6
4
  import { Options } from 'sass';
7
- import { Settings } from 'gulp-typescript';
5
+ import { UserDefinedOptions } from 'weapp-tailwindcss';
6
+ import { FSWatcher } from 'fs-extra';
7
+ import { Command } from 'commander';
8
8
  import * as cosmiconfig from 'cosmiconfig';
9
9
 
10
- declare function createCli(): Command;
11
-
12
10
  declare class GlobsSet {
13
11
  includeSet: Set<string>;
14
12
  excludeSet: Set<string>;
@@ -149,6 +147,8 @@ declare function watch(options?: Partial<BuildOptions>): Promise<{
149
147
  clean: () => Promise<void>;
150
148
  }>;
151
149
 
150
+ declare function createCli(): Command;
151
+
152
152
  interface WeappTwCosmiconfigResult {
153
153
  config: BuildOptions;
154
154
  filepath: string;
package/dist/index.d.mts CHANGED
@@ -1,14 +1,12 @@
1
- import { Command } from 'commander';
2
- import { FSWatcher } from 'fs-extra';
3
- import { UserDefinedOptions } from 'weapp-tailwindcss';
4
1
  import { WatchOptions } from 'gulp';
2
+ import { Settings } from 'gulp-typescript';
5
3
  import { Result } from 'postcss-load-config';
6
4
  import { Options } from 'sass';
7
- import { Settings } from 'gulp-typescript';
5
+ import { UserDefinedOptions } from 'weapp-tailwindcss';
6
+ import { FSWatcher } from 'fs-extra';
7
+ import { Command } from 'commander';
8
8
  import * as cosmiconfig from 'cosmiconfig';
9
9
 
10
- declare function createCli(): Command;
11
-
12
10
  declare class GlobsSet {
13
11
  includeSet: Set<string>;
14
12
  excludeSet: Set<string>;
@@ -149,6 +147,8 @@ declare function watch(options?: Partial<BuildOptions>): Promise<{
149
147
  clean: () => Promise<void>;
150
148
  }>;
151
149
 
150
+ declare function createCli(): Command;
151
+
152
152
  interface WeappTwCosmiconfigResult {
153
153
  config: BuildOptions;
154
154
  filepath: string;
package/dist/index.d.ts CHANGED
@@ -1,14 +1,12 @@
1
- import { Command } from 'commander';
2
- import { FSWatcher } from 'fs-extra';
3
- import { UserDefinedOptions } from 'weapp-tailwindcss';
4
1
  import { WatchOptions } from 'gulp';
2
+ import { Settings } from 'gulp-typescript';
5
3
  import { Result } from 'postcss-load-config';
6
4
  import { Options } from 'sass';
7
- import { Settings } from 'gulp-typescript';
5
+ import { UserDefinedOptions } from 'weapp-tailwindcss';
6
+ import { FSWatcher } from 'fs-extra';
7
+ import { Command } from 'commander';
8
8
  import * as cosmiconfig from 'cosmiconfig';
9
9
 
10
- declare function createCli(): Command;
11
-
12
10
  declare class GlobsSet {
13
11
  includeSet: Set<string>;
14
12
  excludeSet: Set<string>;
@@ -149,6 +147,8 @@ declare function watch(options?: Partial<BuildOptions>): Promise<{
149
147
  clean: () => Promise<void>;
150
148
  }>;
151
149
 
150
+ declare function createCli(): Command;
151
+
152
152
  interface WeappTwCosmiconfigResult {
153
153
  config: BuildOptions;
154
154
  filepath: string;
package/dist/index.mjs CHANGED
@@ -1,77 +1,19 @@
1
- import process from 'node:process';
2
- import { Command } from 'commander';
3
1
  import path from 'node:path';
2
+ import createDebug from 'debug';
4
3
  import fs, { ensureDir } from 'fs-extra';
5
4
  import gulp from 'gulp';
6
- import loadPostcssConfig from 'postcss-load-config';
7
- import pc from 'picocolors';
8
- import { isPackageExists, getPackageInfo } from 'local-pkg';
9
- import createDebug from 'debug';
10
- import { createPlugins } from 'weapp-tailwindcss/gulp';
5
+ import less from 'gulp-less';
11
6
  import postcssrc from 'gulp-postcss';
12
- import createSass from 'gulp-sass';
13
7
  import rename from 'gulp-rename';
14
- import less from 'gulp-less';
8
+ import createSass from 'gulp-sass';
9
+ import { isPackageExists, getPackageInfo } from 'local-pkg';
15
10
  import postcssScssParser from 'postcss-scss';
11
+ import { createPlugins } from 'weapp-tailwindcss/gulp';
12
+ import pc from 'picocolors';
13
+ import loadPostcssConfig from 'postcss-load-config';
14
+ import process from 'node:process';
16
15
  import { cosmiconfigSync } from 'cosmiconfig';
17
-
18
- function isPlainObject$2(value) {
19
- if (value === null || typeof value !== "object") {
20
- return false;
21
- }
22
- const prototype = Object.getPrototypeOf(value);
23
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
24
- return false;
25
- }
26
- if (Symbol.iterator in value) {
27
- return false;
28
- }
29
- if (Symbol.toStringTag in value) {
30
- return Object.prototype.toString.call(value) === "[object Module]";
31
- }
32
- return true;
33
- }
34
-
35
- function _defu(baseObject, defaults, namespace = ".", merger) {
36
- if (!isPlainObject$2(defaults)) {
37
- return _defu(baseObject, {}, namespace, merger);
38
- }
39
- const object = Object.assign({}, defaults);
40
- for (const key in baseObject) {
41
- if (key === "__proto__" || key === "constructor") {
42
- continue;
43
- }
44
- const value = baseObject[key];
45
- if (value === null || value === void 0) {
46
- continue;
47
- }
48
- if (merger && merger(object, key, value, namespace)) {
49
- continue;
50
- }
51
- if (Array.isArray(value) && Array.isArray(object[key])) {
52
- object[key] = [...value, ...object[key]];
53
- } else if (isPlainObject$2(value) && isPlainObject$2(object[key])) {
54
- object[key] = _defu(
55
- value,
56
- object[key],
57
- (namespace ? `${namespace}.` : "") + key.toString(),
58
- merger
59
- );
60
- } else {
61
- object[key] = value;
62
- }
63
- }
64
- return object;
65
- }
66
- function createDefu(merger) {
67
- return (...arguments_) => (
68
- // eslint-disable-next-line unicorn/no-array-reduce
69
- arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
70
- );
71
- }
72
- const defu = createDefu();
73
-
74
- const version = "1.0.9";
16
+ import { Command } from 'commander';
75
17
 
76
18
  const debug = createDebug("weapp-tw-cli");
77
19
 
@@ -113,60 +55,142 @@ function getDefaultOptions(options, postcssOptionsFromConfig) {
113
55
  };
114
56
  }
115
57
 
116
- var __defProp = Object.defineProperty;
117
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
118
- var __publicField = (obj, key, value) => {
119
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
120
- return value;
58
+ var AssetType = /* @__PURE__ */ ((AssetType2) => {
59
+ AssetType2["JavaScript"] = "javascript";
60
+ AssetType2["Json"] = "json";
61
+ AssetType2["Css"] = "css";
62
+ AssetType2["Html"] = "html";
63
+ return AssetType2;
64
+ })(AssetType || {});
65
+
66
+ function getDefaultExportFromCjs (x) {
67
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
68
+ }
69
+
70
+ /*!
71
+ * isobject <https://github.com/jonschlinkert/isobject>
72
+ *
73
+ * Copyright (c) 2014-2017, Jon Schlinkert.
74
+ * Released under the MIT License.
75
+ */
76
+
77
+ var isobject = function isObject(val) {
78
+ return val != null && typeof val === 'object' && Array.isArray(val) === false;
121
79
  };
122
- class GlobsSet {
123
- constructor() {
124
- __publicField(this, "includeSet");
125
- __publicField(this, "excludeSet");
126
- this.includeSet = /* @__PURE__ */ new Set();
127
- this.excludeSet = /* @__PURE__ */ new Set();
80
+
81
+ /*!
82
+ * get-value <https://github.com/jonschlinkert/get-value>
83
+ *
84
+ * Copyright (c) 2014-2018, Jon Schlinkert.
85
+ * Released under the MIT License.
86
+ */
87
+
88
+ const isObject$3 = isobject;
89
+
90
+ var getValue = function(target, path, options) {
91
+ if (!isObject$3(options)) {
92
+ options = { default: options };
128
93
  }
129
- isExcludeGlob(value) {
130
- return value[0] === "!";
94
+
95
+ if (!isValidObject(target)) {
96
+ return typeof options.default !== 'undefined' ? options.default : target;
131
97
  }
132
- addSingle(value) {
133
- return this.isExcludeGlob(value) ? this.excludeSet.add(value) : this.includeSet.add(value);
98
+
99
+ if (typeof path === 'number') {
100
+ path = String(path);
134
101
  }
135
- add(...value) {
136
- for (const v of value) {
137
- if (Array.isArray(v)) {
138
- for (const vv of v) {
139
- this.addSingle(vv);
102
+
103
+ const isArray = Array.isArray(path);
104
+ const isString = typeof path === 'string';
105
+ const splitChar = options.separator || '.';
106
+ const joinChar = options.joinChar || (typeof splitChar === 'string' ? splitChar : '.');
107
+
108
+ if (!isString && !isArray) {
109
+ return target;
110
+ }
111
+
112
+ if (isString && path in target) {
113
+ return isValid(path, target, options) ? target[path] : options.default;
114
+ }
115
+
116
+ let segs = isArray ? path : split$1(path, splitChar, options);
117
+ let len = segs.length;
118
+ let idx = 0;
119
+
120
+ do {
121
+ let prop = segs[idx];
122
+ if (typeof prop === 'number') {
123
+ prop = String(prop);
124
+ }
125
+
126
+ while (prop && prop.slice(-1) === '\\') {
127
+ prop = join([prop.slice(0, -1), segs[++idx] || ''], joinChar, options);
128
+ }
129
+
130
+ if (prop in target) {
131
+ if (!isValid(prop, target, options)) {
132
+ return options.default;
133
+ }
134
+
135
+ target = target[prop];
136
+ } else {
137
+ let hasProp = false;
138
+ let n = idx + 1;
139
+
140
+ while (n < len) {
141
+ prop = join([prop, segs[n++]], joinChar, options);
142
+
143
+ if ((hasProp = prop in target)) {
144
+ if (!isValid(prop, target, options)) {
145
+ return options.default;
146
+ }
147
+
148
+ target = target[prop];
149
+ idx = n - 1;
150
+ break;
140
151
  }
141
- } else {
142
- this.addSingle(v);
152
+ }
153
+
154
+ if (!hasProp) {
155
+ return options.default;
143
156
  }
144
157
  }
158
+ } while (++idx < len && isValidObject(target));
159
+
160
+ if (idx === len) {
161
+ return target;
145
162
  }
146
- dump() {
147
- return [...this.includeSet, ...this.excludeSet];
148
- }
149
- dumpIgnored() {
150
- return [...this.excludeSet].map((x) => x.slice(1));
163
+
164
+ return options.default;
165
+ };
166
+
167
+ function join(segs, joinChar, options) {
168
+ if (typeof options.join === 'function') {
169
+ return options.join(segs);
151
170
  }
171
+ return segs[0] + joinChar + segs[1];
152
172
  }
153
173
 
154
- function isStream(stream, { checkOpen = true } = {}) {
155
- return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
174
+ function split$1(path, splitChar, options) {
175
+ if (typeof options.split === 'function') {
176
+ return options.split(path);
177
+ }
178
+ return path.split(splitChar);
156
179
  }
157
180
 
158
- var AssetType = /* @__PURE__ */ ((AssetType2) => {
159
- AssetType2["JavaScript"] = "javascript";
160
- AssetType2["Json"] = "json";
161
- AssetType2["Css"] = "css";
162
- AssetType2["Html"] = "html";
163
- return AssetType2;
164
- })(AssetType || {});
181
+ function isValid(key, target, options) {
182
+ if (typeof options.isValid === 'function') {
183
+ return options.isValid(key, target);
184
+ }
185
+ return true;
186
+ }
165
187
 
166
- function getDefaultExportFromCjs (x) {
167
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
188
+ function isValidObject(val) {
189
+ return isObject$3(val) || Array.isArray(val) || typeof val === 'function';
168
190
  }
169
191
 
192
+ const get = /*@__PURE__*/getDefaultExportFromCjs(getValue);
193
+
170
194
  /*!
171
195
  * is-primitive <https://github.com/jonschlinkert/is-primitive>
172
196
  *
@@ -181,17 +205,6 @@ var isPrimitive$1 = function isPrimitive(val) {
181
205
  return typeof val !== 'function';
182
206
  };
183
207
 
184
- /*!
185
- * isobject <https://github.com/jonschlinkert/isobject>
186
- *
187
- * Copyright (c) 2014-2017, Jon Schlinkert.
188
- * Released under the MIT License.
189
- */
190
-
191
- var isobject = function isObject(val) {
192
- return val != null && typeof val === 'object' && Array.isArray(val) === false;
193
- };
194
-
195
208
  /*!
196
209
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
197
210
  *
@@ -199,14 +212,14 @@ var isobject = function isObject(val) {
199
212
  * Released under the MIT License.
200
213
  */
201
214
 
202
- var isObject$3 = isobject;
215
+ var isObject$2 = isobject;
203
216
 
204
217
  function isObjectObject(o) {
205
- return isObject$3(o) === true
218
+ return isObject$2(o) === true
206
219
  && Object.prototype.toString.call(o) === '[object Object]';
207
220
  }
208
221
 
209
- var isPlainObject$1 = function isPlainObject(o) {
222
+ var isPlainObject$2 = function isPlainObject(o) {
210
223
  var ctor,prot;
211
224
 
212
225
  if (isObjectObject(o) === false) return false;
@@ -237,9 +250,9 @@ var isPlainObject$1 = function isPlainObject(o) {
237
250
 
238
251
  const { deleteProperty } = Reflect;
239
252
  const isPrimitive = isPrimitive$1;
240
- const isPlainObject = isPlainObject$1;
253
+ const isPlainObject$1 = isPlainObject$2;
241
254
 
242
- const isObject$2 = value => {
255
+ const isObject$1 = value => {
243
256
  return (typeof value === 'object' && value !== null) || typeof value === 'function';
244
257
  };
245
258
 
@@ -325,7 +338,7 @@ const splitString = (input, options = {}) => {
325
338
  return parts;
326
339
  };
327
340
 
328
- const split$1 = (input, options) => {
341
+ const split = (input, options) => {
329
342
  if (options && typeof options.split === 'function') return options.split(input);
330
343
  if (typeof input === 'symbol') return [input];
331
344
  if (Array.isArray(input)) return input;
@@ -343,7 +356,7 @@ const assignProp = (obj, prop, value, options) => {
343
356
  const merge = options.merge === 'function' ? options.merge : Object.assign;
344
357
 
345
358
  // Only merge plain objects
346
- if (merge && isPlainObject(obj[prop]) && isPlainObject(value)) {
359
+ if (merge && isPlainObject$1(obj[prop]) && isPlainObject$1(value)) {
347
360
  obj[prop] = merge(obj[prop], value);
348
361
  } else {
349
362
  obj[prop] = value;
@@ -357,9 +370,9 @@ const assignProp = (obj, prop, value, options) => {
357
370
  };
358
371
 
359
372
  const setValue = (target, path, value, options) => {
360
- if (!path || !isObject$2(target)) return target;
373
+ if (!path || !isObject$1(target)) return target;
361
374
 
362
- const keys = split$1(path, options);
375
+ const keys = split(path, options);
363
376
  let obj = target;
364
377
 
365
378
  for (let i = 0; i < keys.length; i++) {
@@ -378,7 +391,7 @@ const setValue = (target, path, value, options) => {
378
391
  continue;
379
392
  }
380
393
 
381
- if (!isObject$2(obj[key])) {
394
+ if (!isObject$1(obj[key])) {
382
395
  obj[key] = {};
383
396
  }
384
397
 
@@ -388,7 +401,7 @@ const setValue = (target, path, value, options) => {
388
401
  return target;
389
402
  };
390
403
 
391
- setValue.split = split$1;
404
+ setValue.split = split;
392
405
  setValue.cache = new Map();
393
406
  setValue.clear = () => {
394
407
  setValue.cache = new Map();
@@ -398,119 +411,6 @@ var setValue_1 = setValue;
398
411
 
399
412
  const set = /*@__PURE__*/getDefaultExportFromCjs(setValue_1);
400
413
 
401
- /*!
402
- * get-value <https://github.com/jonschlinkert/get-value>
403
- *
404
- * Copyright (c) 2014-2018, Jon Schlinkert.
405
- * Released under the MIT License.
406
- */
407
-
408
- const isObject$1 = isobject;
409
-
410
- var getValue = function(target, path, options) {
411
- if (!isObject$1(options)) {
412
- options = { default: options };
413
- }
414
-
415
- if (!isValidObject(target)) {
416
- return typeof options.default !== 'undefined' ? options.default : target;
417
- }
418
-
419
- if (typeof path === 'number') {
420
- path = String(path);
421
- }
422
-
423
- const isArray = Array.isArray(path);
424
- const isString = typeof path === 'string';
425
- const splitChar = options.separator || '.';
426
- const joinChar = options.joinChar || (typeof splitChar === 'string' ? splitChar : '.');
427
-
428
- if (!isString && !isArray) {
429
- return target;
430
- }
431
-
432
- if (isString && path in target) {
433
- return isValid(path, target, options) ? target[path] : options.default;
434
- }
435
-
436
- let segs = isArray ? path : split(path, splitChar, options);
437
- let len = segs.length;
438
- let idx = 0;
439
-
440
- do {
441
- let prop = segs[idx];
442
- if (typeof prop === 'number') {
443
- prop = String(prop);
444
- }
445
-
446
- while (prop && prop.slice(-1) === '\\') {
447
- prop = join([prop.slice(0, -1), segs[++idx] || ''], joinChar, options);
448
- }
449
-
450
- if (prop in target) {
451
- if (!isValid(prop, target, options)) {
452
- return options.default;
453
- }
454
-
455
- target = target[prop];
456
- } else {
457
- let hasProp = false;
458
- let n = idx + 1;
459
-
460
- while (n < len) {
461
- prop = join([prop, segs[n++]], joinChar, options);
462
-
463
- if ((hasProp = prop in target)) {
464
- if (!isValid(prop, target, options)) {
465
- return options.default;
466
- }
467
-
468
- target = target[prop];
469
- idx = n - 1;
470
- break;
471
- }
472
- }
473
-
474
- if (!hasProp) {
475
- return options.default;
476
- }
477
- }
478
- } while (++idx < len && isValidObject(target));
479
-
480
- if (idx === len) {
481
- return target;
482
- }
483
-
484
- return options.default;
485
- };
486
-
487
- function join(segs, joinChar, options) {
488
- if (typeof options.join === 'function') {
489
- return options.join(segs);
490
- }
491
- return segs[0] + joinChar + segs[1];
492
- }
493
-
494
- function split(path, splitChar, options) {
495
- if (typeof options.split === 'function') {
496
- return options.split(path);
497
- }
498
- return path.split(splitChar);
499
- }
500
-
501
- function isValid(key, target, options) {
502
- if (typeof options.isValid === 'function') {
503
- return options.isValid(key, target);
504
- }
505
- return true;
506
- }
507
-
508
- function isValidObject(val) {
509
- return isObject$1(val) || Array.isArray(val) || typeof val === 'function';
510
- }
511
-
512
- const get = /*@__PURE__*/getDefaultExportFromCjs(getValue);
513
-
514
414
  function isObject(x) {
515
415
  return typeof x === "object" && x !== null;
516
416
  }
@@ -541,6 +441,48 @@ function isTsLang(lang) {
541
441
  return lang === "ts";
542
442
  }
543
443
 
444
+ var __defProp = Object.defineProperty;
445
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
446
+ var __publicField = (obj, key, value) => {
447
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
448
+ return value;
449
+ };
450
+ class GlobsSet {
451
+ constructor() {
452
+ __publicField(this, "includeSet");
453
+ __publicField(this, "excludeSet");
454
+ this.includeSet = /* @__PURE__ */ new Set();
455
+ this.excludeSet = /* @__PURE__ */ new Set();
456
+ }
457
+ isExcludeGlob(value) {
458
+ return value[0] === "!";
459
+ }
460
+ addSingle(value) {
461
+ return this.isExcludeGlob(value) ? this.excludeSet.add(value) : this.includeSet.add(value);
462
+ }
463
+ add(...value) {
464
+ for (const v of value) {
465
+ if (Array.isArray(v)) {
466
+ for (const vv of v) {
467
+ this.addSingle(vv);
468
+ }
469
+ } else {
470
+ this.addSingle(v);
471
+ }
472
+ }
473
+ }
474
+ dump() {
475
+ return [...this.includeSet, ...this.excludeSet];
476
+ }
477
+ dumpIgnored() {
478
+ return [...this.excludeSet].map((x) => x.slice(1));
479
+ }
480
+ }
481
+
482
+ function isStream(stream, { checkOpen = true } = {}) {
483
+ return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
484
+ }
485
+
544
486
  function normalizePlugin(plugin) {
545
487
  if (isStream(plugin)) {
546
488
  return plugin;
@@ -784,6 +726,64 @@ async function getTasks(options) {
784
726
  };
785
727
  }
786
728
 
729
+ function isPlainObject(value) {
730
+ if (value === null || typeof value !== "object") {
731
+ return false;
732
+ }
733
+ const prototype = Object.getPrototypeOf(value);
734
+ if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
735
+ return false;
736
+ }
737
+ if (Symbol.iterator in value) {
738
+ return false;
739
+ }
740
+ if (Symbol.toStringTag in value) {
741
+ return Object.prototype.toString.call(value) === "[object Module]";
742
+ }
743
+ return true;
744
+ }
745
+
746
+ function _defu(baseObject, defaults, namespace = ".", merger) {
747
+ if (!isPlainObject(defaults)) {
748
+ return _defu(baseObject, {}, namespace, merger);
749
+ }
750
+ const object = Object.assign({}, defaults);
751
+ for (const key in baseObject) {
752
+ if (key === "__proto__" || key === "constructor") {
753
+ continue;
754
+ }
755
+ const value = baseObject[key];
756
+ if (value === null || value === void 0) {
757
+ continue;
758
+ }
759
+ if (merger && merger(object, key, value, namespace)) {
760
+ continue;
761
+ }
762
+ if (Array.isArray(value) && Array.isArray(object[key])) {
763
+ object[key] = [...value, ...object[key]];
764
+ } else if (isPlainObject(value) && isPlainObject(object[key])) {
765
+ object[key] = _defu(
766
+ value,
767
+ object[key],
768
+ (namespace ? `${namespace}.` : "") + key.toString(),
769
+ merger
770
+ );
771
+ } else {
772
+ object[key] = value;
773
+ }
774
+ }
775
+ return object;
776
+ }
777
+ function createDefu(merger) {
778
+ return (...arguments_) => (
779
+ // eslint-disable-next-line unicorn/no-array-reduce
780
+ arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
781
+ );
782
+ }
783
+ const defu = createDefu();
784
+
785
+ const version = "1.0.10";
786
+
787
787
  async function createBuilder(options) {
788
788
  let postcssOptionsFromConfig;
789
789
  try {
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/cli",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "The cli of weapp-tailwindcss",
5
- "author": "SonOfMagic <qq1324318532@gmail.com>",
5
+ "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",
7
- "homepage": "https://weapp-tw.icebreaker.top/docs/quick-start/native/install",
7
+ "homepage": "https://tw.icebreaker.top/docs/quick-start/native/install",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/sonofmagic/weapp-tailwindcss.git"
10
+ "url": "git+https://github.com/sonofmagic/weapp-tailwindcss.git",
11
+ "directory": "plugins/cli"
11
12
  },
12
13
  "bugs": {
13
14
  "url": "https://github.com/sonofmagic/weapp-tailwindcss/issues"
@@ -38,7 +39,7 @@
38
39
  "less": "*",
39
40
  "sass": "*",
40
41
  "typescript": "*",
41
- "weapp-tailwindcss": "3.5.1"
42
+ "weapp-tailwindcss": "3.5.3"
42
43
  },
43
44
  "peerDependenciesMeta": {
44
45
  "less": {
@@ -54,7 +55,7 @@
54
55
  "dependencies": {
55
56
  "commander": "^12.1.0",
56
57
  "cosmiconfig": "^9.0.0",
57
- "debug": "4.3.6",
58
+ "debug": "4.3.7",
58
59
  "del": "^7.1.0",
59
60
  "fs-extra": "^11.2.0",
60
61
  "gulp": "^4.0.2",
@@ -66,8 +67,8 @@
66
67
  "gulp-sass": "^5.1.0",
67
68
  "gulp-typescript": "6.0.0-alpha.1",
68
69
  "local-pkg": "^0.5.0",
69
- "picocolors": "^1.0.1",
70
- "postcss": "^8.4.42",
70
+ "picocolors": "^1.1.0",
71
+ "postcss": "^8.4.47",
71
72
  "postcss-load-config": "^6.0.1",
72
73
  "postcss-scss": "^4.0.9"
73
74
  },
@@ -76,7 +77,7 @@
76
77
  "registry": "https://registry.npmjs.org"
77
78
  },
78
79
  "devDependencies": {
79
- "tailwindcss": "^3.4.10"
80
+ "tailwindcss": "^3.4.13"
80
81
  },
81
82
  "scripts": {
82
83
  "dev": "unbuild --sourcemap",