@modern-js/plugin-server-build 1.1.2-rc.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,20 +1,25 @@
1
1
  # @modern-js/plugin-server-build
2
2
 
3
- ## 1.1.2-rc.0
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cfe11628: Make Modern.js self bootstraping
4
8
 
5
9
  ### Patch Changes
6
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
- - @modern-js/server-utils@1.1.3-rc.0
17
- - @modern-js/babel-compiler@1.1.3-rc.0
11
+ - Updated dependencies [2da09c69]
12
+ - Updated dependencies [fc71e36f]
13
+ - Updated dependencies [146dcd85]
14
+ - Updated dependencies [c3d46ee4]
15
+ - Updated dependencies [cfe11628]
16
+ - Updated dependencies [146dcd85]
17
+ - Updated dependencies [146dcd85]
18
+ - Updated dependencies [1ebc7ee2]
19
+ - @modern-js/utils@1.2.0
20
+ - @modern-js/core@1.3.0
21
+ - @modern-js/server-utils@1.2.0
22
+ - @modern-js/babel-compiler@1.2.0
18
23
 
19
24
  ## 1.1.1
20
25
 
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/modern.config.js CHANGED
@@ -1,10 +1,2 @@
1
1
  /** @type {import('@modern-js/module-tools').UserConfig} */
2
- module.exports = {
3
- testing: {
4
- jest: {
5
- collectCoverage: true,
6
- collectCoverageFrom: ['src/**/*.ts'],
7
- coveragePathIgnorePatterns: ['/node_modules/'],
8
- },
9
- },
10
- };
2
+ module.exports = {};
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.1.2-rc.0",
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,6 +20,7 @@
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
  },
@@ -28,25 +29,26 @@
28
29
  },
29
30
  "dependencies": {
30
31
  "@babel/runtime": "^7",
31
- "@modern-js/babel-compiler": "^1.1.3-rc.0",
32
- "@modern-js/server-utils": "^1.1.3-rc.0",
33
- "@modern-js/utils": "^1.1.4-rc.0",
32
+ "@modern-js/babel-compiler": "^1.2.0",
33
+ "@modern-js/server-utils": "^1.2.0",
34
+ "@modern-js/utils": "^1.2.0",
34
35
  "globby": "^12.0.2",
35
36
  "json5": "^2.2.0"
36
37
  },
37
38
  "devDependencies": {
38
- "@modern-js/plugin-analyze": "^1.1.2-rc.0",
39
+ "@modern-js/plugin-analyze": "^1.2.0",
39
40
  "@types/babel__core": "^7.1.15",
40
41
  "@types/jest": "^26",
41
42
  "@types/node": "^14",
42
43
  "ts-jest": "^27.0.5",
43
44
  "typescript": "^4",
44
- "@modern-js/core": "^1.1.4-rc.0",
45
- "@modern-js/plugin-testing": "^1.1.1",
46
- "@modern-js/module-tools": "^1.1.1"
45
+ "@modern-js/core": "^1.3.0",
46
+ "@scripts/build": "0.0.0",
47
+ "jest": "^27",
48
+ "@scripts/jest-config": "0.0.0"
47
49
  },
48
50
  "peerDependencies": {
49
- "@modern-js/core": "^1.1.4-rc.0"
51
+ "@modern-js/core": "^1.3.0"
50
52
  },
51
53
  "sideEffects": false,
52
54
  "modernConfig": {
@@ -56,13 +58,14 @@
56
58
  },
57
59
  "publishConfig": {
58
60
  "registry": "https://registry.npmjs.org/",
59
- "access": "public"
61
+ "access": "public",
62
+ "types": "./dist/types/index.d.ts"
60
63
  },
61
64
  "scripts": {
62
65
  "new": "modern new",
63
66
  "build": "modern build",
64
67
  "dev": "modern build --watch",
65
- "test": "modern test --passWithNoTests"
68
+ "test": "jest --passWithNoTests"
66
69
  },
67
70
  "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"
68
71
  }
@@ -0,0 +1,7 @@
1
+ import plugin from '../src';
2
+
3
+ describe('plugin-server-build', () => {
4
+ it('default', () => {
5
+ expect(plugin).toBeDefined();
6
+ });
7
+ });
package/tsconfig.json CHANGED
@@ -7,9 +7,7 @@
7
7
  "skipLibCheck": true,
8
8
  "esModuleInterop": true,
9
9
  "isolatedModules": true,
10
- "paths": {
11
- "@/*": ["./src/*"]
12
- },
10
+ "paths": {},
13
11
  "types": ["node", "jest"]
14
12
  },
15
13
  "include": ["src", "src/.ts"]