@weapp-tailwindcss/shared 0.0.1-alpha.0 → 1.0.0-alpha.2

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 ADDED
@@ -0,0 +1,100 @@
1
+ <p align="center">
2
+
3
+ <a href="https://tw.icebreaker.top">
4
+
5
+ <img src="./assets/logo.png" alt="weapp-tailwindcss-logo" width="128">
6
+ </a>
7
+
8
+ <br>
9
+
10
+ <h1 align="center">weapp-tailwindcss</h1>
11
+
12
+ </p>
13
+
14
+ > 简体中文(zh-cn) | [English](./README_en.md)
15
+
16
+ ![star](https://badgen.net/github/stars/sonofmagic/weapp-tailwindcss)
17
+ ![dm0](https://badgen.net/npm/dm/weapp-tailwindcss)
18
+ ![dm1](https://badgen.net/npm/dm/weapp-tailwindcss-webpack-plugin)
19
+ ![license](https://badgen.net/npm/license/weapp-tailwindcss)
20
+ [![test](https://github.com/sonofmagic/weapp-tailwindcss/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/sonofmagic/weapp-tailwindcss/actions/workflows/test.yml)
21
+ [![codecov](https://codecov.io/gh/sonofmagic/weapp-tailwindcss/branch/main/graph/badge.svg?token=zn05qXYznt)](https://codecov.io/gh/sonofmagic/weapp-tailwindcss)
22
+
23
+ > [!NOTE]
24
+ > 降低开发维护成本,提升开发效率的 `小程序` `tailwindcss` 全方面解决方案
25
+ >
26
+ > 小程序原生工具链 `weapp-vite` 已经发布,使用它改善你的原生小程序开发体验吧,更多详见 [官方文档](https://vite.icebreaker.top/)
27
+
28
+ \[[文档地址](https://tw.icebreaker.top)\] \| \[[加入技术交流群](https://tw.icebreaker.top/docs/community/group)\]
29
+
30
+ - [特性](#特性)
31
+ - [版本对应](#版本对应)
32
+ - [安装与使用方式](#安装与使用方式)
33
+ - [生态和解决方案](#生态和解决方案)
34
+ - [常见问题](#常见问题)
35
+ - [各个框架的模板](#各个框架的模板)
36
+ - [旧版本迁移指南](#旧版本迁移指南)
37
+ - [配置项参考](#配置项参考)
38
+ - [变更日志](#变更日志)
39
+ - [Contribute](#contribute)
40
+ - [License](#license)
41
+ - [Star History](#star-history)
42
+ - [Related projects](#related-projects)
43
+ - [weapp-vite](#weapp-vite)
44
+
45
+ ## 特性
46
+
47
+ | 不仅仅是`webpack` | 主流框架与原生开发支持 |
48
+ | --------------------------------------------------- | ----------------------------------------------- |
49
+ | ![wepback+vite+gulp](./assets/weapp-tw-plugins.png) | ![frameworks](./assets/weapp-tw-frameworks.png) |
50
+
51
+ 核心插件支持 `webpack`/`vite`/`gulp` 为基底的框架类小程序开发,涵盖了市面上几乎所有的主流的开发框架。
52
+
53
+ 同时也支持最原生的开发者工具创建的原生小程序应用。
54
+
55
+ 这些插件能够自动识别并精确处理所有 `tailwindcss` 的工具类来适配小程序环境。
56
+
57
+ ## 版本对应
58
+
59
+ 目前,`weapp-tailwindcss` 的 `2.x` 和 `3.x` 支持最新版本的 `tailwindcss v3.x.x` 版本和 `webpack5`,`webpack4`, `vite` 和 `gulp`。从 `3.2.0` 开始,`weapp-tailwindcss` 支持最原生的小程序开发方式。
60
+
61
+ > 如果你还在使用 `tailwindcss@2` 版本,那你应该使用从 `weapp-tailwindcss/webpack4` 导出的本插件的 `postcss7` `webpack4` 版本。另外请确保你的 `nodejs` 版本 `>=16.6.0`。目前低于 `16` 的长期维护版本(`偶数版本`) 都已经结束了生命周期,建议安装 `nodejs` 的 `LTS` 版本,详见 [nodejs/release](https://github.com/nodejs/release)
62
+
63
+ ## [安装与使用方式](https://tw.icebreaker.top/docs/quick-start/install)
64
+
65
+ ## [生态和解决方案](https://tw.icebreaker.top/docs/community/templates)
66
+
67
+ ## [常见问题](https://tw.icebreaker.top/docs/issues/)
68
+
69
+ ## [各个框架的模板](https://tw.icebreaker.top/docs/community/templates)
70
+
71
+ ## [旧版本迁移指南](https://tw.icebreaker.top/docs/migrations/v2)
72
+
73
+ ## [配置项参考](https://tw.icebreaker.top/docs/api/interfaces/UserDefinedOptions)
74
+
75
+ ## [变更日志](./CHANGELOG.md)
76
+
77
+ ## Contribute
78
+
79
+ 我们邀请你来贡献和帮助改进 `weapp-tailwindcss` 💚💚💚
80
+
81
+ 以下有几个方式可以参与:
82
+
83
+ - 报告错误:如果您遇到任何错误或问题,请提`issue`并提供完善的错误信息和复现方式。
84
+ - 建议:有增强 `weapp-tailwindcss` 的想法吗?请提 `issue` 来分享您的建议。
85
+ - 文档:如果您对文档有更好的见解或者更棒的修辞方式,欢迎 `pr`。
86
+ - 代码:任何人的代码都不是完美的,我们欢迎你通过 `pr` 给代码提供更好的质量与活力。
87
+
88
+ ## License
89
+
90
+ [MIT](./LICENSE)
91
+
92
+ ## Star History
93
+
94
+ [![Star History Chart](https://api.star-history.com/svg?repos=sonofmagic/weapp-tailwindcss&type=Date)](https://star-history.com/#sonofmagic/weapp-tailwindcss&Date)
95
+
96
+ ## Related projects
97
+
98
+ ### weapp-vite
99
+
100
+ [weapp-vite](https://vite.icebreaker.top/): 把现代化的开发模式带入小程序开发!
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  mod
28
28
  ));
29
29
 
30
- // ../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.4.49_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.5.1_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js
31
31
  var init_esm_shims = __esm({
32
- "../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.4.49_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js"() {
32
+ "../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.5.1_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/esm_shims.js"() {
33
33
  "use strict";
34
34
  }
35
35
  });
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  mod
28
28
  ));
29
29
 
30
- // ../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.4.49_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.5.1_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js
31
31
  var init_cjs_shims = __esm({
32
- "../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.4.49_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js"() {
32
+ "../../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.5.1_tsx@4.19.2_typescript@5.7.3_yaml@2.7.0/node_modules/tsup/assets/cjs_shims.js"() {
33
33
  "use strict";
34
34
  }
35
35
  });
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkU5LP74X5js = require('./chunk-U5LP74X5.js');
3
+ var _chunkZRPRHDATjs = require('./chunk-ZRPRHDAT.js');
4
4
 
5
5
  // src/extractors/index.ts
6
- _chunkU5LP74X5js.init_cjs_shims.call(void 0, );
6
+ _chunkZRPRHDATjs.init_cjs_shims.call(void 0, );
7
7
 
8
8
  // src/extractors/split.ts
9
- _chunkU5LP74X5js.init_cjs_shims.call(void 0, );
9
+ _chunkZRPRHDATjs.init_cjs_shims.call(void 0, );
10
10
  var validateFilterRE = /[\w\u00A0-\uFFFF%-?]/;
11
11
  function isValidSelector(selector = "") {
12
12
  return validateFilterRE.test(selector);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-E6Q3SKVK.mjs";
3
+ } from "./chunk-WGTBZWFY.mjs";
4
4
 
5
5
  // src/extractors/index.ts
6
6
  init_esm_shims();
package/dist/index.js CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkU5LP74X5js = require('./chunk-U5LP74X5.js');
5
+ var _chunkZRPRHDATjs = require('./chunk-ZRPRHDAT.js');
6
6
 
7
7
  // ../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js
8
- var require_isobject = _chunkU5LP74X5js.__commonJS.call(void 0, {
8
+ var require_isobject = _chunkZRPRHDATjs.__commonJS.call(void 0, {
9
9
  "../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js"(exports, module) {
10
10
  "use strict";
11
- _chunkU5LP74X5js.init_cjs_shims.call(void 0, );
11
+ _chunkZRPRHDATjs.init_cjs_shims.call(void 0, );
12
12
  module.exports = function isObject(val) {
13
13
  return val != null && typeof val === "object" && Array.isArray(val) === false;
14
14
  };
@@ -16,10 +16,10 @@ var require_isobject = _chunkU5LP74X5js.__commonJS.call(void 0, {
16
16
  });
17
17
 
18
18
  // ../../node_modules/.pnpm/get-value@3.0.1/node_modules/get-value/index.js
19
- var require_get_value = _chunkU5LP74X5js.__commonJS.call(void 0, {
19
+ var require_get_value = _chunkZRPRHDATjs.__commonJS.call(void 0, {
20
20
  "../../node_modules/.pnpm/get-value@3.0.1/node_modules/get-value/index.js"(exports, module) {
21
21
  "use strict";
22
- _chunkU5LP74X5js.init_cjs_shims.call(void 0, );
22
+ _chunkZRPRHDATjs.init_cjs_shims.call(void 0, );
23
23
  var isObject = require_isobject();
24
24
  module.exports = function(target, path, options) {
25
25
  if (!isObject(options)) {
@@ -106,10 +106,10 @@ var require_get_value = _chunkU5LP74X5js.__commonJS.call(void 0, {
106
106
  });
107
107
 
108
108
  // ../../node_modules/.pnpm/is-primitive@3.0.1/node_modules/is-primitive/index.js
109
- var require_is_primitive = _chunkU5LP74X5js.__commonJS.call(void 0, {
109
+ var require_is_primitive = _chunkZRPRHDATjs.__commonJS.call(void 0, {
110
110
  "../../node_modules/.pnpm/is-primitive@3.0.1/node_modules/is-primitive/index.js"(exports, module) {
111
111
  "use strict";
112
- _chunkU5LP74X5js.init_cjs_shims.call(void 0, );
112
+ _chunkZRPRHDATjs.init_cjs_shims.call(void 0, );
113
113
  module.exports = function isPrimitive(val) {
114
114
  if (typeof val === "object") {
115
115
  return val === null;
@@ -120,10 +120,10 @@ var require_is_primitive = _chunkU5LP74X5js.__commonJS.call(void 0, {
120
120
  });
121
121
 
122
122
  // ../../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js
123
- var require_is_plain_object = _chunkU5LP74X5js.__commonJS.call(void 0, {
123
+ var require_is_plain_object = _chunkZRPRHDATjs.__commonJS.call(void 0, {
124
124
  "../../node_modules/.pnpm/is-plain-object@2.0.4/node_modules/is-plain-object/index.js"(exports, module) {
125
125
  "use strict";
126
- _chunkU5LP74X5js.init_cjs_shims.call(void 0, );
126
+ _chunkZRPRHDATjs.init_cjs_shims.call(void 0, );
127
127
  var isObject = require_isobject();
128
128
  function isObjectObject(o) {
129
129
  return isObject(o) === true && Object.prototype.toString.call(o) === "[object Object]";
@@ -144,10 +144,10 @@ var require_is_plain_object = _chunkU5LP74X5js.__commonJS.call(void 0, {
144
144
  });
145
145
 
146
146
  // ../../node_modules/.pnpm/set-value@4.1.0/node_modules/set-value/index.js
147
- var require_set_value = _chunkU5LP74X5js.__commonJS.call(void 0, {
147
+ var require_set_value = _chunkZRPRHDATjs.__commonJS.call(void 0, {
148
148
  "../../node_modules/.pnpm/set-value@4.1.0/node_modules/set-value/index.js"(exports, module) {
149
149
  "use strict";
150
- _chunkU5LP74X5js.init_cjs_shims.call(void 0, );
150
+ _chunkZRPRHDATjs.init_cjs_shims.call(void 0, );
151
151
  var { deleteProperty } = Reflect;
152
152
  var isPrimitive = require_is_primitive();
153
153
  var isPlainObject2 = require_is_plain_object();
@@ -274,10 +274,10 @@ var require_set_value = _chunkU5LP74X5js.__commonJS.call(void 0, {
274
274
  });
275
275
 
276
276
  // src/index.ts
277
- _chunkU5LP74X5js.init_cjs_shims.call(void 0, );
277
+ _chunkZRPRHDATjs.init_cjs_shims.call(void 0, );
278
278
 
279
279
  // ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
280
- _chunkU5LP74X5js.init_cjs_shims.call(void 0, );
280
+ _chunkZRPRHDATjs.init_cjs_shims.call(void 0, );
281
281
  function isPlainObject(value) {
282
282
  if (value === null || typeof value !== "object") {
283
283
  return false;
@@ -346,8 +346,8 @@ var defuArrayFn = createDefu((object, key, currentValue) => {
346
346
  });
347
347
 
348
348
  // src/index.ts
349
- var import_get_value = _chunkU5LP74X5js.__toESM.call(void 0, require_get_value());
350
- var import_set_value = _chunkU5LP74X5js.__toESM.call(void 0, require_set_value());
349
+ var import_get_value = _chunkZRPRHDATjs.__toESM.call(void 0, require_get_value());
350
+ var import_set_value = _chunkZRPRHDATjs.__toESM.call(void 0, require_set_value());
351
351
  function isRegexp(value) {
352
352
  return Object.prototype.toString.call(value) === "[object RegExp]";
353
353
  }
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  __commonJS,
3
3
  __toESM,
4
4
  init_esm_shims
5
- } from "./chunk-E6Q3SKVK.mjs";
5
+ } from "./chunk-WGTBZWFY.mjs";
6
6
 
7
7
  // ../../node_modules/.pnpm/isobject@3.0.1/node_modules/isobject/index.js
8
8
  var require_isobject = __commonJS({
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/shared",
3
- "version": "0.0.1-alpha.0",
3
+ "version": "1.0.0-alpha.2",
4
4
  "description": "@weapp-tailwindcss/shared",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/sonofmagic/monorepo-template.git",
10
- "directory": "packages/bar"
9
+ "url": "git+https://github.com/sonofmagic/weapp-tailwindcss.git",
10
+ "directory": "packages/shared"
11
11
  },
12
12
  "bugs": {
13
- "url": "https://github.com/sonofmagic/monorepo-template/issues"
13
+ "url": "https://github.com/sonofmagic/weapp-tailwindcss/issues"
14
14
  },
15
15
  "keywords": [],
16
16
  "sideEffects": false,