@modern-js/plugin-tailwindcss 2.0.1 → 2.1.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/CHANGELOG.md +24 -0
- package/dist/js/modern/cli.js +2 -2
- package/dist/js/treeshaking/cli.js +2 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# @modern-js/plugin-tailwindcss
|
2
2
|
|
3
|
+
## 2.1.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 6562578: chore: optimize the capitalization of plugin names
|
8
|
+
|
9
|
+
chore: 规范引用插件时的命名格式,统一使用 camelCase 代替 PascalCase
|
10
|
+
|
11
|
+
- Updated dependencies [f3237db]
|
12
|
+
- Updated dependencies [837620c]
|
13
|
+
- Updated dependencies [776cc27]
|
14
|
+
- Updated dependencies [35d3e84]
|
15
|
+
- Updated dependencies [8a9482c]
|
16
|
+
- @modern-js/runtime@2.1.0
|
17
|
+
- @modern-js/utils@2.1.0
|
18
|
+
|
19
|
+
## 2.0.2
|
20
|
+
|
21
|
+
### Patch Changes
|
22
|
+
|
23
|
+
- Updated dependencies [39988b2]
|
24
|
+
- @modern-js/runtime@2.0.2
|
25
|
+
- @modern-js/utils@2.0.2
|
26
|
+
|
3
27
|
## 2.0.1
|
4
28
|
|
5
29
|
### Patch Changes
|
package/dist/js/modern/cli.js
CHANGED
@@ -27,7 +27,7 @@ import {
|
|
27
27
|
nanoid,
|
28
28
|
slash
|
29
29
|
} from "@modern-js/utils";
|
30
|
-
import
|
30
|
+
import designTokenPlugin from "./design-token/cli";
|
31
31
|
import { getTailwindConfig } from "./tailwind";
|
32
32
|
import {
|
33
33
|
template,
|
@@ -49,7 +49,7 @@ var cli_default = ({ pluginName } = {
|
|
49
49
|
}) => ({
|
50
50
|
name: "@modern-js/plugin-tailwindcss",
|
51
51
|
usePlugins: [
|
52
|
-
|
52
|
+
designTokenPlugin({
|
53
53
|
pluginName
|
54
54
|
})
|
55
55
|
],
|
@@ -124,7 +124,7 @@ var __generator = this && this.__generator || function(thisArg, body) {
|
|
124
124
|
};
|
125
125
|
import path from "path";
|
126
126
|
import { PLUGIN_SCHEMAS, fs, CONFIG_CACHE_DIR, globby, nanoid, slash } from "@modern-js/utils";
|
127
|
-
import
|
127
|
+
import designTokenPlugin from "./design-token/cli";
|
128
128
|
import { getTailwindConfig } from "./tailwind";
|
129
129
|
import { template, checkTwinMacroExist, getTailwindPath, getTailwindVersion } from "./utils";
|
130
130
|
var supportCssInJsLibrary = "styled-components";
|
@@ -138,7 +138,7 @@ var cli_default = function() {
|
|
138
138
|
return {
|
139
139
|
name: "@modern-js/plugin-tailwindcss",
|
140
140
|
usePlugins: [
|
141
|
-
|
141
|
+
designTokenPlugin({
|
142
142
|
pluginName: pluginName
|
143
143
|
})
|
144
144
|
],
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "2.0
|
14
|
+
"version": "2.1.0",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/types/index.d.ts",
|
17
17
|
"main": "./dist/js/node/index.js",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"@babel/runtime": "^7.18.0",
|
47
47
|
"babel-plugin-macros": "3.1.0",
|
48
48
|
"hoist-non-react-statics": "^3.3.2",
|
49
|
-
"@modern-js/utils": "2.0
|
49
|
+
"@modern-js/utils": "2.1.0"
|
50
50
|
},
|
51
51
|
"devDependencies": {
|
52
52
|
"@types/jest": "^27",
|
@@ -56,17 +56,17 @@
|
|
56
56
|
"jest": "^27",
|
57
57
|
"react": "^18",
|
58
58
|
"postcss": "^8.4.14",
|
59
|
-
"@modern-js/core": "2.0
|
60
|
-
"@modern-js/module-tools": "2.0
|
61
|
-
"@modern-js/runtime": "2.0
|
62
|
-
"@modern-js/types": "2.0
|
63
|
-
"@scripts/build": "2.0
|
64
|
-
"@modern-js/app-tools": "2.0
|
65
|
-
"@scripts/jest-config": "2.0
|
59
|
+
"@modern-js/core": "2.1.0",
|
60
|
+
"@modern-js/module-tools": "2.1.0",
|
61
|
+
"@modern-js/runtime": "2.1.0",
|
62
|
+
"@modern-js/types": "2.1.0",
|
63
|
+
"@scripts/build": "2.1.0",
|
64
|
+
"@modern-js/app-tools": "2.1.0",
|
65
|
+
"@scripts/jest-config": "2.1.0"
|
66
66
|
},
|
67
67
|
"peerDependencies": {
|
68
68
|
"tailwindcss": ">= 2.0.0 || >= 3.0.0",
|
69
|
-
"@modern-js/runtime": "^2.0
|
69
|
+
"@modern-js/runtime": "^2.1.0"
|
70
70
|
},
|
71
71
|
"peerDependenciesMeta": {
|
72
72
|
"@modern-js/runtime": {
|