@modern-js/plugin-tailwindcss 1.2.5 → 1.2.8
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 +38 -0
- package/dist/js/node/index.js +0 -2
- package/dist/js/node/tailwind.js +3 -5
- package/dist/types/index.d.ts +0 -1
- package/jest.config.js +0 -1
- package/package.json +4 -26
- package/dist/js/node/types.js +0 -3
- package/dist/types/types.d.ts +0 -9
- package/tests/index.test.ts +0 -7
- package/tests/tsconfig.json +0 -13
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,43 @@
|
|
1
1
|
# @modern-js/plugin-tailwindcss
|
2
2
|
|
3
|
+
## 1.2.8
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 04ae5262: chore: bump @modern-js/utils to v1.4.1 in dependencies
|
8
|
+
- 60f7d8bf: feat: add tests dir to npmignore
|
9
|
+
- Updated dependencies [b8599d09]
|
10
|
+
- Updated dependencies [04ae5262]
|
11
|
+
- Updated dependencies [60f7d8bf]
|
12
|
+
- Updated dependencies [3bf4f8b0]
|
13
|
+
- @modern-js/utils@1.5.0
|
14
|
+
- @modern-js/plugin-design-token@1.0.4
|
15
|
+
|
16
|
+
## 1.2.7
|
17
|
+
|
18
|
+
### Patch Changes
|
19
|
+
|
20
|
+
- 17d0cc46: feat: prebundle lodash to @modern-js/utils/lodash
|
21
|
+
- Updated dependencies [77ff9754]
|
22
|
+
- Updated dependencies [d2d1d6b2]
|
23
|
+
- Updated dependencies [07a4887e]
|
24
|
+
- Updated dependencies [ea2ae711]
|
25
|
+
- Updated dependencies [17d0cc46]
|
26
|
+
- Updated dependencies [d2d1d6b2]
|
27
|
+
- @modern-js/utils@1.4.0
|
28
|
+
- @modern-js/plugin-design-token@1.0.3
|
29
|
+
|
30
|
+
## 1.2.6
|
31
|
+
|
32
|
+
### Patch Changes
|
33
|
+
|
34
|
+
- bebb39b6: chore: improve devDependencies and peerDependencies
|
35
|
+
- 132f7b53: feat: move config declarations to @modern-js/core
|
36
|
+
- Updated dependencies [bebb39b6]
|
37
|
+
- Updated dependencies [132f7b53]
|
38
|
+
- @modern-js/plugin-design-token@1.0.3
|
39
|
+
- @modern-js/utils@1.3.7
|
40
|
+
|
3
41
|
## 1.2.5
|
4
42
|
|
5
43
|
### Patch Changes
|
package/dist/js/node/index.js
CHANGED
package/dist/js/node/tailwind.js
CHANGED
@@ -7,9 +7,7 @@ exports.getTailwindConfig = void 0;
|
|
7
7
|
|
8
8
|
var _utils = require("@modern-js/utils");
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
const merge = _utils.Import.lazy('lodash.merge', require);
|
10
|
+
var _lodash = require("@modern-js/utils/lodash");
|
13
11
|
|
14
12
|
const checkIfExistNotAllowKeys = tailwindConfig => {
|
15
13
|
const notAllowExistKeys = ['theme'];
|
@@ -19,13 +17,13 @@ const checkIfExistNotAllowKeys = tailwindConfig => {
|
|
19
17
|
};
|
20
18
|
|
21
19
|
const getPureDesignSystemConfig = designSystemConfig => {
|
22
|
-
const pureDesignSystemConfig = cloneDeep(designSystemConfig);
|
20
|
+
const pureDesignSystemConfig = (0, _lodash.cloneDeep)(designSystemConfig);
|
23
21
|
delete pureDesignSystemConfig.supportStyledComponents;
|
24
22
|
return pureDesignSystemConfig;
|
25
23
|
};
|
26
24
|
|
27
25
|
const getTailwindConfig = (config, option = {}) => {
|
28
|
-
const purgeConfig = merge({
|
26
|
+
const purgeConfig = (0, _lodash.merge)({
|
29
27
|
// TODO: how the operating environment is determined
|
30
28
|
enabled: process.env.NODE_ENV === 'production',
|
31
29
|
// TODO: Remove or not
|
package/dist/types/index.d.ts
CHANGED
package/jest.config.js
CHANGED
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.2.
|
14
|
+
"version": "1.2.8",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/types/index.d.ts",
|
17
17
|
"main": "./dist/js/node/index.js",
|
@@ -29,39 +29,17 @@
|
|
29
29
|
"./cli": {
|
30
30
|
"jsnext:source": "./src/cli.ts",
|
31
31
|
"default": "./dist/js/node/cli.js"
|
32
|
-
},
|
33
|
-
"./types": {
|
34
|
-
"node": {
|
35
|
-
"import": "./dist/js/modern/types.js",
|
36
|
-
"require": "./dist/js/node/types.js",
|
37
|
-
"types": "./dist/types/types.d.ts"
|
38
|
-
},
|
39
|
-
"default": "./dist/js/treeshaking/types.js"
|
40
|
-
}
|
41
|
-
},
|
42
|
-
"typesVersions": {
|
43
|
-
"*": {
|
44
|
-
".": [
|
45
|
-
"./dist/types/index.d.ts"
|
46
|
-
],
|
47
|
-
"types": [
|
48
|
-
"./dist/types/types.d.ts"
|
49
|
-
]
|
50
32
|
}
|
51
33
|
},
|
52
34
|
"dependencies": {
|
53
35
|
"@babel/runtime": "^7",
|
54
|
-
"@modern-js/utils": "^1.
|
55
|
-
"@modern-js/plugin-design-token": "^1.0.
|
56
|
-
"lodash.clonedeep": "^4.5.0",
|
57
|
-
"lodash.merge": "^4.6.2"
|
36
|
+
"@modern-js/utils": "^1.5.0",
|
37
|
+
"@modern-js/plugin-design-token": "^1.0.4"
|
58
38
|
},
|
59
39
|
"devDependencies": {
|
60
|
-
"@modern-js/core": "
|
40
|
+
"@modern-js/core": "1.8.0",
|
61
41
|
"@scripts/build": "0.0.0",
|
62
42
|
"@types/jest": "^26",
|
63
|
-
"@types/lodash.clonedeep": "^4.5.6",
|
64
|
-
"@types/lodash.merge": "^4.6.6",
|
65
43
|
"@types/node": "^14",
|
66
44
|
"@types/tailwindcss": "^2.2.1",
|
67
45
|
"typescript": "^4",
|
package/dist/js/node/types.js
DELETED
package/dist/types/types.d.ts
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import '@modern-js/core';
|
2
|
-
declare module '@modern-js/core' {
|
3
|
-
interface ToolsConfig {
|
4
|
-
tailwindcss?: Record<string, any> | ((options: Record<string, any>) => Record<string, any> | void);
|
5
|
-
}
|
6
|
-
interface SourceConfig {
|
7
|
-
designSystem?: Record<string, any>;
|
8
|
-
}
|
9
|
-
}
|
package/tests/index.test.ts
DELETED
package/tests/tsconfig.json
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"extends": "@modern-js/tsconfig/base",
|
3
|
-
"compilerOptions": {
|
4
|
-
"declaration": true,
|
5
|
-
"jsx": "preserve",
|
6
|
-
"baseUrl": "./",
|
7
|
-
"outDir": "./out",
|
8
|
-
"emitDeclarationOnly": true,
|
9
|
-
"isolatedModules": true,
|
10
|
-
"paths": {},
|
11
|
-
"types": ["node", "jest"]
|
12
|
-
}
|
13
|
-
}
|