@modern-js/plugin-tailwindcss 1.1.2 → 1.2.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 CHANGED
@@ -1,5 +1,34 @@
1
1
  # @modern-js/plugin-tailwindcss
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cfe11628: Make Modern.js self bootstraping
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [2da09c69]
12
+ - Updated dependencies [fc71e36f]
13
+ - Updated dependencies [c3d46ee4]
14
+ - Updated dependencies [cfe11628]
15
+ - @modern-js/utils@1.2.0
16
+ - @modern-js/core@1.3.0
17
+
18
+ ## 1.1.3
19
+
20
+ ### Patch Changes
21
+
22
+ - ca7dcb32: fix ignore style files in src dir
23
+ - Updated dependencies [90eeb72c]
24
+ - Updated dependencies [e04914ce]
25
+ - Updated dependencies [5a4c557e]
26
+ - Updated dependencies [e04914ce]
27
+ - Updated dependencies [ca7dcb32]
28
+ - Updated dependencies [ecb344dc]
29
+ - @modern-js/core@1.2.0
30
+ - @modern-js/utils@1.1.5
31
+
3
32
  ## 1.1.2
4
33
 
5
34
  ### Patch Changes
@@ -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);
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "default", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _cli.default;
10
+ }
11
+ });
12
+
13
+ var _cli = _interopRequireDefault(require("./cli"));
14
+
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1 @@
1
+ export { default } from './cli';
package/jest.config.js ADDED
@@ -0,0 +1,8 @@
1
+ const sharedConfig = require('@scripts/jest-config');
2
+
3
+ /** @type {import('@jest/types').Config.InitialOptions} */
4
+ module.exports = {
5
+ // eslint-disable-next-line node/no-unsupported-features/es-syntax
6
+ ...sharedConfig,
7
+ rootDir: __dirname,
8
+ };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.1.2",
14
+ "version": "1.2.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -20,33 +20,38 @@
20
20
  "exports": {
21
21
  ".": {
22
22
  "node": {
23
+ "jsnext:source": "./src/index.ts",
23
24
  "import": "./dist/js/modern/index.js",
24
25
  "require": "./dist/js/node/index.js"
25
26
  },
26
27
  "default": "./dist/js/treeshaking/index.js"
27
28
  },
28
- "./cli": "./dist/js/node/cli.js"
29
+ "./cli": {
30
+ "jsnext:source": "./src/cli.ts",
31
+ "default": "./dist/js/node/cli.js"
32
+ }
29
33
  },
30
34
  "dependencies": {
31
35
  "@babel/runtime": "^7",
32
- "@modern-js/utils": "^1.1.2",
36
+ "@modern-js/utils": "^1.2.0",
33
37
  "lodash.clonedeep": "^4.5.0",
34
38
  "lodash.merge": "^4.6.2"
35
39
  },
36
40
  "devDependencies": {
37
- "@modern-js/core": "^1.1.2",
38
- "@modern-js/module-tools": "^1.1.0",
39
- "@modern-js/plugin-testing": "^1.1.0",
41
+ "@modern-js/core": "^1.3.0",
42
+ "@scripts/build": "0.0.0",
40
43
  "@types/jest": "^26",
41
44
  "@types/lodash.clonedeep": "^4.5.6",
42
45
  "@types/lodash.merge": "^4.6.6",
43
46
  "@types/node": "^14",
44
47
  "@types/tailwindcss": "^2.2.1",
45
48
  "typescript": "^4",
46
- "tailwindcss": "^2.0.4"
49
+ "tailwindcss": "^2.0.4",
50
+ "jest": "^27",
51
+ "@scripts/jest-config": "0.0.0"
47
52
  },
48
53
  "peerDependencies": {
49
- "@modern-js/core": "^1.1.2",
54
+ "@modern-js/core": "^1.3.0",
50
55
  "tailwindcss": "^2.0.4"
51
56
  },
52
57
  "sideEffects": false,
@@ -57,9 +62,15 @@
57
62
  }
58
63
  }
59
64
  },
65
+ "publishConfig": {
66
+ "registry": "https://registry.npmjs.org/",
67
+ "access": "public",
68
+ "types": "./dist/types/index.d.ts"
69
+ },
60
70
  "scripts": {
61
71
  "new": "modern new",
62
72
  "build": "modern build",
63
- "test": "modern test --passWithNoTests"
64
- }
73
+ "test": "jest --passWithNoTests"
74
+ },
75
+ "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
76
  }
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/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { default } from './cli';
@@ -0,0 +1,7 @@
1
+ import plugin from '../src';
2
+
3
+ describe('plugin-tailwind', () => {
4
+ it('default', () => {
5
+ expect(plugin).toBeDefined();
6
+ });
7
+ });
package/tsconfig.json CHANGED
@@ -5,9 +5,7 @@
5
5
  "jsx": "preserve",
6
6
  "baseUrl": "./",
7
7
  "isolatedModules": true,
8
- "paths": {
9
- "@/*": ["./src/*"]
10
- }
8
+ "paths": {}
11
9
  },
12
10
  "include": ["src"]
13
11
  }