@modern-js/plugin-tailwindcss 1.0.0 → 1.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # @modern-js/plugin-tailwindcss
2
2
 
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 0fa83663: support more .env files
8
+ - Updated dependencies [6f7fe574]
9
+ - Updated dependencies [0fa83663]
10
+ - Updated dependencies [f594fbc8]
11
+ - @modern-js/core@1.1.2
12
+ - @modern-js/utils@1.1.2
13
+
14
+ ## 1.1.1
15
+
16
+ ### Patch Changes
17
+
18
+ - cca52250: fix error config
19
+
20
+ change `tools.tailwind` to `tools.tailwindcss`
21
+
22
+ - Updated dependencies [687c92c7]
23
+ - Updated dependencies [c0fc0700]
24
+ - @modern-js/core@1.1.1
25
+ - @modern-js/utils@1.1.1
26
+
27
+ ## 1.1.0
28
+
29
+ ### Minor Changes
30
+
31
+ - 96119db2: Relese v1.1.0
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [96119db2]
36
+ - @modern-js/core@1.1.0
37
+ - @modern-js/utils@1.1.0
38
+
3
39
  ## 1.0.0
4
40
 
5
41
  ### Patch Changes
package/README.md CHANGED
@@ -17,10 +17,7 @@
17
17
 
18
18
  > 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.
19
19
 
20
- - 介绍 Modern.js (即将上线)
21
- - [迈入现代 Web 开发](https://zhuanlan.zhihu.com/p/386607009)
22
- - [现代 Web 开发者问卷调查报告](https://zhuanlan.zhihu.com/p/403206195)
23
- - [字节跳动是如何落地微前端的](https://mp.weixin.qq.com/s/L9wbfNG5fTXF5bx7dcgj4Q)
20
+ - [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)
24
21
 
25
22
  ## Getting Started
26
23
 
@@ -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.tailwind || {});
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.tailwind, please remove it`); // eslint-disable-next-line no-process-exit
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.0",
14
+ "version": "1.1.2",
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.0",
32
+ "@modern-js/utils": "^1.1.2",
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.0",
38
- "@modern-js/module-tools": "^1.0.0",
39
- "@modern-js/plugin-testing": "^1.0.0",
37
+ "@modern-js/core": "^1.1.2",
38
+ "@modern-js/module-tools": "^1.1.0",
39
+ "@modern-js/plugin-testing": "^1.1.0",
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.0",
49
+ "@modern-js/core": "^1.1.2",
50
50
  "tailwindcss": "^2.0.4"
51
51
  },
52
52
  "sideEffects": false,
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).tailwind || {},
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.tailwind, please remove it`,
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);