@modern-js/plugin-tailwindcss 1.0.1 → 1.1.3-rc.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 +46 -5
- package/dist/js/node/tailwind.js +2 -2
- package/package.json +8 -7
- package/src/tailwind.ts +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,13 +1,54 @@
|
|
1
1
|
# @modern-js/plugin-tailwindcss
|
2
2
|
|
3
|
-
## 1.0
|
3
|
+
## 1.1.3-rc.0
|
4
4
|
|
5
5
|
### Patch Changes
|
6
6
|
|
7
|
-
-
|
8
|
-
- Updated dependencies [
|
9
|
-
|
10
|
-
|
7
|
+
- Updated dependencies [d927bc83]
|
8
|
+
- Updated dependencies [d73ff455]
|
9
|
+
- Updated dependencies [9c1ab865]
|
10
|
+
- Updated dependencies [d73ff455]
|
11
|
+
- Updated dependencies [d73ff455]
|
12
|
+
- Updated dependencies [d73ff455]
|
13
|
+
- Updated dependencies [d73ff455]
|
14
|
+
- @modern-js/utils@1.1.4-rc.0
|
15
|
+
- @modern-js/core@1.1.4-rc.0
|
16
|
+
|
17
|
+
## 1.1.2
|
18
|
+
|
19
|
+
### Patch Changes
|
20
|
+
|
21
|
+
- 0fa83663: support more .env files
|
22
|
+
- Updated dependencies [6f7fe574]
|
23
|
+
- Updated dependencies [0fa83663]
|
24
|
+
- Updated dependencies [f594fbc8]
|
25
|
+
- @modern-js/core@1.1.2
|
26
|
+
- @modern-js/utils@1.1.2
|
27
|
+
|
28
|
+
## 1.1.1
|
29
|
+
|
30
|
+
### Patch Changes
|
31
|
+
|
32
|
+
- cca52250: fix error config
|
33
|
+
|
34
|
+
change `tools.tailwind` to `tools.tailwindcss`
|
35
|
+
|
36
|
+
- Updated dependencies [687c92c7]
|
37
|
+
- Updated dependencies [c0fc0700]
|
38
|
+
- @modern-js/core@1.1.1
|
39
|
+
- @modern-js/utils@1.1.1
|
40
|
+
|
41
|
+
## 1.1.0
|
42
|
+
|
43
|
+
### Minor Changes
|
44
|
+
|
45
|
+
- 96119db2: Relese v1.1.0
|
46
|
+
|
47
|
+
### Patch Changes
|
48
|
+
|
49
|
+
- Updated dependencies [96119db2]
|
50
|
+
- @modern-js/core@1.1.0
|
51
|
+
- @modern-js/utils@1.1.0
|
11
52
|
|
12
53
|
## 1.0.0
|
13
54
|
|
package/dist/js/node/tailwind.js
CHANGED
@@ -35,12 +35,12 @@ const getTailwindConfig = (config, option = {}) => {
|
|
35
35
|
const defaultTailwindConfig = {
|
36
36
|
purge: purgeConfig
|
37
37
|
};
|
38
|
-
const tailwindConfig = (0, _utils.applyOptionsChain)(defaultTailwindConfig, config.tools.
|
38
|
+
const tailwindConfig = (0, _utils.applyOptionsChain)(defaultTailwindConfig, config.tools.tailwindcss || {});
|
39
39
|
const designSystem = getPureDesignSystemConfig(config.source.designSystem || {});
|
40
40
|
const [exist, key] = checkIfExistNotAllowKeys(tailwindConfig);
|
41
41
|
|
42
42
|
if (exist) {
|
43
|
-
_utils.logger.error(`should not exist '${key}' on tools.
|
43
|
+
_utils.logger.error(`should not exist '${key}' on tools.tailwindcss, please remove it`); // eslint-disable-next-line no-process-exit
|
44
44
|
|
45
45
|
|
46
46
|
process.exit(0);
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.0
|
14
|
+
"version": "1.1.3-rc.0",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/types/index.d.ts",
|
17
17
|
"main": "./dist/js/node/index.js",
|
@@ -29,14 +29,14 @@
|
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
31
|
"@babel/runtime": "^7",
|
32
|
-
"@modern-js/utils": "^1.0
|
32
|
+
"@modern-js/utils": "^1.1.4-rc.0",
|
33
33
|
"lodash.clonedeep": "^4.5.0",
|
34
34
|
"lodash.merge": "^4.6.2"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
|
-
"@modern-js/core": "^1.0
|
38
|
-
"@modern-js/module-tools": "^1.
|
39
|
-
"@modern-js/plugin-testing": "^1.
|
37
|
+
"@modern-js/core": "^1.1.4-rc.0",
|
38
|
+
"@modern-js/module-tools": "^1.1.1",
|
39
|
+
"@modern-js/plugin-testing": "^1.1.1",
|
40
40
|
"@types/jest": "^26",
|
41
41
|
"@types/lodash.clonedeep": "^4.5.6",
|
42
42
|
"@types/lodash.merge": "^4.6.6",
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"tailwindcss": "^2.0.4"
|
47
47
|
},
|
48
48
|
"peerDependencies": {
|
49
|
-
"@modern-js/core": "^1.0
|
49
|
+
"@modern-js/core": "^1.1.4-rc.0",
|
50
50
|
"tailwindcss": "^2.0.4"
|
51
51
|
},
|
52
52
|
"sideEffects": false,
|
@@ -61,5 +61,6 @@
|
|
61
61
|
"new": "modern new",
|
62
62
|
"build": "modern build",
|
63
63
|
"test": "modern test --passWithNoTests"
|
64
|
-
}
|
64
|
+
},
|
65
|
+
"readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
|
65
66
|
}
|
package/src/tailwind.ts
CHANGED
@@ -52,7 +52,7 @@ const getTailwindConfig = (
|
|
52
52
|
};
|
53
53
|
const tailwindConfig = applyOptionsChain(
|
54
54
|
defaultTailwindConfig,
|
55
|
-
(config.tools as any).
|
55
|
+
(config.tools as any).tailwindcss || {},
|
56
56
|
);
|
57
57
|
|
58
58
|
const designSystem = getPureDesignSystemConfig(
|
@@ -63,7 +63,7 @@ const getTailwindConfig = (
|
|
63
63
|
|
64
64
|
if (exist) {
|
65
65
|
logger.error(
|
66
|
-
`should not exist '${key}' on tools.
|
66
|
+
`should not exist '${key}' on tools.tailwindcss, please remove it`,
|
67
67
|
);
|
68
68
|
// eslint-disable-next-line no-process-exit
|
69
69
|
process.exit(0);
|