@modern-js/plugin-tailwindcss 1.1.0 → 1.1.3
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 +30 -67
- package/dist/js/node/cli.js +1 -1
- package/dist/js/node/tailwind.js +2 -2
- package/package.json +8 -7
- package/src/cli.ts +4 -0
- package/src/tailwind.ts +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,85 +1,48 @@
|
|
1
1
|
# @modern-js/plugin-tailwindcss
|
2
2
|
|
3
|
-
## 1.1.
|
4
|
-
|
5
|
-
### Minor Changes
|
6
|
-
|
7
|
-
- 96119db2: Relese v1.1.0
|
8
|
-
|
9
|
-
1. 全面支持 Windows 平台
|
10
|
-
|
11
|
-
ISSUE:
|
12
|
-
|
13
|
-
- [182](https://github.com/modern-js-dev/modern.js/issues/182)
|
14
|
-
- [236](https://github.com/modern-js-dev/modern.js/issues/236)
|
15
|
-
|
16
|
-
PR
|
17
|
-
|
18
|
-
- [219](https://github.com/modern-js-dev/modern.js/pull/219)
|
19
|
-
- [247](https://github.com/modern-js-dev/modern.js/pull/247)
|
20
|
-
- [249](https://github.com/modern-js-dev/modern.js/pull/249)
|
21
|
-
- [253](https://github.com/modern-js-dev/modern.js/pull/253)
|
22
|
-
- [268](https://github.com/modern-js-dev/modern.js/pull/268)
|
23
|
-
- [270](https://github.com/modern-js-dev/modern.js/pull/270)
|
24
|
-
- [273](https://github.com/modern-js-dev/modern.js/pull/273)
|
25
|
-
- [276](https://github.com/modern-js-dev/modern.js/pull/276)
|
26
|
-
|
27
|
-
2. 修复 Unbundled 模式启用问题
|
28
|
-
|
29
|
-
ISSUE
|
30
|
-
|
31
|
-
- [186](https://github.com/modern-js-dev/modern.js/issues/186)
|
32
|
-
- [224](https://github.com/modern-js-dev/modern.js/issues/224)
|
33
|
-
- [225](https://github.com/modern-js-dev/modern.js/issues/225)
|
34
|
-
- [238](https://github.com/modern-js-dev/modern.js/issues/238)
|
35
|
-
|
36
|
-
PR
|
3
|
+
## 1.1.3
|
37
4
|
|
38
|
-
|
39
|
-
- [264](https://github.com/modern-js-dev/modern.js/pull/264)
|
40
|
-
- [codesmith-12](https://github.com/modern-js-dev/codesmith/pull/12)
|
41
|
-
|
42
|
-
3. 修复模块工程方案 .npmignore 文件初始化未生成
|
43
|
-
|
44
|
-
ISSUE
|
45
|
-
|
46
|
-
- [198](https://github.com/modern-js-dev/modern.js/issues/198)
|
47
|
-
|
48
|
-
PR
|
49
|
-
|
50
|
-
- [209](https://github.com/modern-js-dev/modern.js/pull/209)
|
51
|
-
|
52
|
-
4. 修复 Storybook 使用时浏览器打开页面报错
|
53
|
-
|
54
|
-
ISSUE
|
55
|
-
|
56
|
-
- [228](https://github.com/modern-js-dev/modern.js/issues/228)
|
5
|
+
### Patch Changes
|
57
6
|
|
58
|
-
|
7
|
+
- ca7dcb32: fix ignore style files in src dir
|
8
|
+
- Updated dependencies [90eeb72c]
|
9
|
+
- Updated dependencies [e04914ce]
|
10
|
+
- Updated dependencies [5a4c557e]
|
11
|
+
- Updated dependencies [e04914ce]
|
12
|
+
- Updated dependencies [ca7dcb32]
|
13
|
+
- Updated dependencies [ecb344dc]
|
14
|
+
- @modern-js/core@1.2.0
|
15
|
+
- @modern-js/utils@1.1.5
|
59
16
|
|
60
|
-
|
17
|
+
## 1.1.2
|
61
18
|
|
62
|
-
|
19
|
+
### Patch Changes
|
63
20
|
|
64
|
-
|
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
|
65
27
|
|
66
|
-
|
67
|
-
- [257](https://github.com/modern-js-dev/modern.js/issues/257)
|
28
|
+
## 1.1.1
|
68
29
|
|
69
|
-
|
30
|
+
### Patch Changes
|
70
31
|
|
71
|
-
|
72
|
-
- [271](https://github.com/modern-js-dev/modern.js/pull/271)
|
32
|
+
- cca52250: fix error config
|
73
33
|
|
74
|
-
|
34
|
+
change `tools.tailwind` to `tools.tailwindcss`
|
75
35
|
|
76
|
-
|
36
|
+
- Updated dependencies [687c92c7]
|
37
|
+
- Updated dependencies [c0fc0700]
|
38
|
+
- @modern-js/core@1.1.1
|
39
|
+
- @modern-js/utils@1.1.1
|
77
40
|
|
78
|
-
|
41
|
+
## 1.1.0
|
79
42
|
|
80
|
-
|
43
|
+
### Minor Changes
|
81
44
|
|
82
|
-
|
45
|
+
- 96119db2: Relese v1.1.0
|
83
46
|
|
84
47
|
### Patch Changes
|
85
48
|
|
package/dist/js/node/cli.js
CHANGED
@@ -44,7 +44,7 @@ var _default = core.createPlugin(() => ({
|
|
44
44
|
const modernConfig = core.useResolvedConfigContext();
|
45
45
|
const tailwindConfig = (0, _tailwind.getTailwindConfig)(modernConfig, {
|
46
46
|
pureConfig: {
|
47
|
-
content: ['./src/**/*.js', './src/**/*.jsx', './src/**/*.ts', './src/**/*.tsx', './styles/**/*.less', './styles/**/*.css', './styles/**/*.sass', './styles/**/*.scss']
|
47
|
+
content: ['./src/**/*.js', './src/**/*.jsx', './src/**/*.ts', './src/**/*.tsx', './src/**/*.less', './src/**/*.css', './src/**/*.sass', './src/**/*.scss', './styles/**/*.less', './styles/**/*.css', './styles/**/*.sass', './styles/**/*.scss']
|
48
48
|
}
|
49
49
|
});
|
50
50
|
return require('tailwindcss')(tailwindConfig);
|
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.1.
|
14
|
+
"version": "1.1.3",
|
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.1.
|
32
|
+
"@modern-js/utils": "^1.1.5",
|
33
33
|
"lodash.clonedeep": "^4.5.0",
|
34
34
|
"lodash.merge": "^4.6.2"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
|
-
"@modern-js/core": "^1.
|
38
|
-
"@modern-js/module-tools": "^1.
|
39
|
-
"@modern-js/plugin-testing": "^1.
|
37
|
+
"@modern-js/core": "^1.2.0",
|
38
|
+
"@modern-js/module-tools": "^1.1.2",
|
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.
|
49
|
+
"@modern-js/core": "^1.2.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/cli.ts
CHANGED
@@ -59,6 +59,10 @@ export default core.createPlugin(
|
|
59
59
|
'./src/**/*.jsx',
|
60
60
|
'./src/**/*.ts',
|
61
61
|
'./src/**/*.tsx',
|
62
|
+
'./src/**/*.less',
|
63
|
+
'./src/**/*.css',
|
64
|
+
'./src/**/*.sass',
|
65
|
+
'./src/**/*.scss',
|
62
66
|
'./styles/**/*.less',
|
63
67
|
'./styles/**/*.css',
|
64
68
|
'./styles/**/*.sass',
|
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);
|