@modern-js/plugin-tailwindcss 0.0.0-next-1687764171352 → 0.0.0-next-1687766264699
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 +8 -4
- package/dist/cjs/cli.js +5 -1
- package/dist/cjs/index.js +15 -6
- package/dist/esm/cli.js +3 -3
- package/dist/esm/index.js +3 -1
- package/dist/esm-node/cli.js +2 -1
- package/dist/esm-node/index.js +3 -1
- package/dist/types/cli.d.ts +2 -2
- package/dist/types/index.d.ts +3 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# @modern-js/plugin-tailwindcss
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-1687766264699
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
- 4c4c0ade4: feat: add named exports for all CLI plugins
|
|
8
|
+
|
|
9
|
+
feat: 为各个 CLI 插件添加 named 导出
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [5732c6a08]
|
|
12
|
+
- @modern-js/utils@0.0.0-next-1687766264699
|
|
13
|
+
- @modern-js/runtime@0.0.0-next-1687766264699
|
|
10
14
|
|
|
11
15
|
## 2.24.0
|
|
12
16
|
|
package/dist/cjs/cli.js
CHANGED
|
@@ -13,6 +13,9 @@ _export(exports, {
|
|
|
13
13
|
getRandomTwConfigFileName: function() {
|
|
14
14
|
return getRandomTwConfigFileName;
|
|
15
15
|
},
|
|
16
|
+
tailwindcssPlugin: function() {
|
|
17
|
+
return tailwindcssPlugin;
|
|
18
|
+
},
|
|
16
19
|
default: function() {
|
|
17
20
|
return _default;
|
|
18
21
|
}
|
|
@@ -42,7 +45,7 @@ function getDefaultContent(appDirectory) {
|
|
|
42
45
|
}
|
|
43
46
|
return defaultContent;
|
|
44
47
|
}
|
|
45
|
-
const
|
|
48
|
+
const tailwindcssPlugin = ({ pluginName } = {
|
|
46
49
|
pluginName: "@modern-js/plugin-tailwindcss"
|
|
47
50
|
}) => {
|
|
48
51
|
return {
|
|
@@ -161,3 +164,4 @@ const _default = ({ pluginName } = {
|
|
|
161
164
|
}
|
|
162
165
|
};
|
|
163
166
|
};
|
|
167
|
+
const _default = tailwindcssPlugin;
|
package/dist/cjs/index.js
CHANGED
|
@@ -2,11 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
tailwindcssPlugin: function() {
|
|
14
|
+
return _cli.tailwindcssPlugin;
|
|
15
|
+
},
|
|
16
|
+
default: function() {
|
|
17
|
+
return _default;
|
|
9
18
|
}
|
|
10
19
|
});
|
|
11
|
-
const
|
|
12
|
-
const
|
|
20
|
+
const _cli = require("./cli");
|
|
21
|
+
const _default = _cli.tailwindcssPlugin;
|
package/dist/esm/cli.js
CHANGED
|
@@ -24,7 +24,7 @@ function getDefaultContent(appDirectory) {
|
|
|
24
24
|
}
|
|
25
25
|
return defaultContent;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export var tailwindcssPlugin = function() {
|
|
28
28
|
var pluginName = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
29
29
|
pluginName: "@modern-js/plugin-tailwindcss"
|
|
30
30
|
}).pluginName;
|
|
@@ -163,5 +163,5 @@ export default function() {
|
|
|
163
163
|
};
|
|
164
164
|
}()
|
|
165
165
|
};
|
|
166
|
-
}
|
|
167
|
-
;
|
|
166
|
+
};
|
|
167
|
+
export default tailwindcssPlugin;
|
package/dist/esm/index.js
CHANGED
package/dist/esm-node/cli.js
CHANGED
|
@@ -22,7 +22,7 @@ function getDefaultContent(appDirectory) {
|
|
|
22
22
|
}
|
|
23
23
|
return defaultContent;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export const tailwindcssPlugin = ({ pluginName } = {
|
|
26
26
|
pluginName: "@modern-js/plugin-tailwindcss"
|
|
27
27
|
}) => {
|
|
28
28
|
return {
|
|
@@ -141,3 +141,4 @@ export default ({ pluginName } = {
|
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
|
+
export default tailwindcssPlugin;
|
package/dist/esm-node/index.js
CHANGED
package/dist/types/cli.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { LegacyAppTools } from '@modern-js/app-tools';
|
|
2
2
|
import type { CliPlugin, ModuleTools } from '@modern-js/module-tools';
|
|
3
3
|
export declare const getRandomTwConfigFileName: (internalDirectory: string) => string;
|
|
4
|
-
declare const
|
|
4
|
+
export declare const tailwindcssPlugin: ({
|
|
5
5
|
pluginName
|
|
6
6
|
}?: {
|
|
7
7
|
pluginName: string;
|
|
8
8
|
}) => CliPlugin<LegacyAppTools & ModuleTools>;
|
|
9
|
-
export default
|
|
9
|
+
export default tailwindcssPlugin;
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-1687766264699",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"babel-plugin-macros": "3.1.0",
|
|
50
50
|
"hoist-non-react-statics": "^3.3.2",
|
|
51
51
|
"@swc/helpers": "0.5.1",
|
|
52
|
-
"@modern-js/utils": "0.0.0-next-
|
|
52
|
+
"@modern-js/utils": "0.0.0-next-1687766264699"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/jest": "^29",
|
|
@@ -59,17 +59,17 @@
|
|
|
59
59
|
"jest": "^29",
|
|
60
60
|
"react": "^18",
|
|
61
61
|
"postcss": "8.4.21",
|
|
62
|
-
"@modern-js/core": "0.0.0-next-
|
|
63
|
-
"@modern-js/module-tools": "0.0.0-next-
|
|
64
|
-
"@modern-js/
|
|
65
|
-
"@modern-js/
|
|
66
|
-
"@scripts/build": "0.0.0-next-
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
62
|
+
"@modern-js/core": "0.0.0-next-1687766264699",
|
|
63
|
+
"@modern-js/module-tools": "0.0.0-next-1687766264699",
|
|
64
|
+
"@modern-js/types": "0.0.0-next-1687766264699",
|
|
65
|
+
"@modern-js/runtime": "0.0.0-next-1687766264699",
|
|
66
|
+
"@scripts/build": "0.0.0-next-1687766264699",
|
|
67
|
+
"@scripts/jest-config": "0.0.0-next-1687766264699",
|
|
68
|
+
"@modern-js/app-tools": "0.0.0-next-1687766264699"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"tailwindcss": ">= 2.0.0 || >= 3.0.0",
|
|
72
|
-
"@modern-js/runtime": "0.0.0-next-
|
|
72
|
+
"@modern-js/runtime": "0.0.0-next-1687766264699"
|
|
73
73
|
},
|
|
74
74
|
"peerDependenciesMeta": {
|
|
75
75
|
"@modern-js/runtime": {
|