@modern-js/app-tools 1.0.0-rc.17 → 1.0.0-rc.21

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,109 @@
1
1
  # @modern-js/app-tools
2
2
 
3
+ ## 1.0.0-rc.21
4
+
5
+ ### Patch Changes
6
+
7
+ - 224f7fe: fix server route match
8
+ - 30ac27c: feat: add generator package description
9
+ - 0fd196e: feat: fix bugs
10
+ - 204c626: feat: initial
11
+ - 63be0a5: fix: #118 #104
12
+ - Updated dependencies [224f7fe]
13
+ - Updated dependencies [30ac27c]
14
+ - Updated dependencies [0fd196e]
15
+ - Updated dependencies [204c626]
16
+ - Updated dependencies [63be0a5]
17
+ - @modern-js/core@1.0.0-rc.21
18
+ - @modern-js/i18n-cli-language-detector@1.0.0-rc.21
19
+ - @modern-js/plugin-analyze@1.0.0-rc.21
20
+ - @modern-js/plugin-fast-refresh@1.0.0-rc.21
21
+ - @modern-js/plugin-i18n@1.0.0-rc.21
22
+ - @modern-js/webpack@1.0.0-rc.21
23
+ - @modern-js/new-action@1.0.0-rc.21
24
+ - @modern-js/plugin-polyfill@1.0.0-rc.21
25
+ - @modern-js/server@1.0.0-rc.21
26
+ - @modern-js/plugin@1.0.0-rc.21
27
+ - @modern-js/types@1.0.0-rc.21
28
+ - @modern-js/utils@1.0.0-rc.21
29
+
30
+ ## 1.0.0-rc.20
31
+
32
+ ### Patch Changes
33
+
34
+ - 224f7fe: fix server route match
35
+ - 30ac27c: feat: add generator package description
36
+ - feat: fix bugs
37
+ - 204c626: feat: initial
38
+ - 63be0a5: fix: #118 #104
39
+ - Updated dependencies [224f7fe]
40
+ - Updated dependencies [30ac27c]
41
+ - Updated dependencies [undefined]
42
+ - Updated dependencies [204c626]
43
+ - Updated dependencies [63be0a5]
44
+ - @modern-js/core@1.0.0-rc.20
45
+ - @modern-js/i18n-cli-language-detector@1.0.0-rc.20
46
+ - @modern-js/plugin-analyze@1.0.0-rc.20
47
+ - @modern-js/plugin-fast-refresh@1.0.0-rc.20
48
+ - @modern-js/plugin-i18n@1.0.0-rc.20
49
+ - @modern-js/webpack@1.0.0-rc.20
50
+ - @modern-js/new-action@1.0.0-rc.20
51
+ - @modern-js/plugin-polyfill@1.0.0-rc.20
52
+ - @modern-js/server@1.0.0-rc.20
53
+ - @modern-js/plugin@1.0.0-rc.20
54
+ - @modern-js/types@1.0.0-rc.20
55
+ - @modern-js/utils@1.0.0-rc.20
56
+
57
+ ## 1.0.0-rc.19
58
+
59
+ ### Patch Changes
60
+
61
+ - 224f7fe: fix server route match
62
+ - 30ac27c: feat: add generator package description
63
+ - 204c626: feat: initial
64
+ - 63be0a5: fix: #118 #104
65
+ - Updated dependencies [224f7fe]
66
+ - Updated dependencies [30ac27c]
67
+ - Updated dependencies [204c626]
68
+ - Updated dependencies [63be0a5]
69
+ - @modern-js/core@1.0.0-rc.19
70
+ - @modern-js/i18n-cli-language-detector@1.0.0-rc.19
71
+ - @modern-js/plugin-analyze@1.0.0-rc.19
72
+ - @modern-js/plugin-fast-refresh@1.0.0-rc.19
73
+ - @modern-js/plugin-i18n@1.0.0-rc.19
74
+ - @modern-js/webpack@1.0.0-rc.19
75
+ - @modern-js/new-action@1.0.0-rc.19
76
+ - @modern-js/plugin-polyfill@1.0.0-rc.19
77
+ - @modern-js/server@1.0.0-rc.19
78
+ - @modern-js/plugin@1.0.0-rc.19
79
+ - @modern-js/types@1.0.0-rc.19
80
+ - @modern-js/utils@1.0.0-rc.19
81
+
82
+ ## 1.0.0-rc.18
83
+
84
+ ### Patch Changes
85
+
86
+ - 224f7fe: fix server route match
87
+ - 30ac27c: feat: add generator package description
88
+ - 204c626: feat: initial
89
+ - 63be0a5: fix: #118 #104
90
+ - Updated dependencies [224f7fe]
91
+ - Updated dependencies [30ac27c]
92
+ - Updated dependencies [204c626]
93
+ - Updated dependencies [63be0a5]
94
+ - @modern-js/core@1.0.0-rc.18
95
+ - @modern-js/i18n-cli-language-detector@1.0.0-rc.18
96
+ - @modern-js/plugin-analyze@1.0.0-rc.18
97
+ - @modern-js/plugin-fast-refresh@1.0.0-rc.18
98
+ - @modern-js/plugin-i18n@1.0.0-rc.18
99
+ - @modern-js/webpack@1.0.0-rc.18
100
+ - @modern-js/new-action@1.0.0-rc.18
101
+ - @modern-js/plugin-polyfill@1.0.0-rc.18
102
+ - @modern-js/server@1.0.0-rc.18
103
+ - @modern-js/plugin@1.0.0-rc.18
104
+ - @modern-js/types@1.0.0-rc.18
105
+ - @modern-js/utils@1.0.0-rc.18
106
+
3
107
  ## 1.0.0-rc.17
4
108
 
5
109
  ### Patch Changes
@@ -47,12 +47,7 @@ export default createPlugin(() => {
47
47
  },
48
48
 
49
49
  async fileChange() {
50
- // restart cli.
51
- const shouldRestart = await cli.restart();
52
-
53
- if (shouldRestart) {
54
- await dev();
55
- }
50
+ await cli.restart();
56
51
  }
57
52
 
58
53
  };
@@ -4,7 +4,7 @@ export const printInstructions = async (appContext, config) => {
4
4
  let message = prettyInstructions(appContext, config);
5
5
 
6
6
  if (isDev()) {
7
- message += `\n${chalk.cyanBright([`Note that the development build is not optimized.`, `To create a production build, use yarn build.`].join('\n'))}`;
7
+ message += `\n${chalk.cyanBright([`Note that the development build is not optimized.`, `To create a production build, execute build command.`].join('\n'))}`;
8
8
  } // call beforePrintInstructions hook.
9
9
 
10
10
 
@@ -73,12 +73,7 @@ var _default = (0, _core.createPlugin)(() => {
73
73
  },
74
74
 
75
75
  async fileChange() {
76
- // restart cli.
77
- const shouldRestart = await _core.cli.restart();
78
-
79
- if (shouldRestart) {
80
- await (0, _dev.dev)();
81
- }
76
+ await _core.cli.restart();
82
77
  }
83
78
 
84
79
  };
@@ -13,7 +13,7 @@ const printInstructions = async (appContext, config) => {
13
13
  let message = (0, _utils.prettyInstructions)(appContext, config);
14
14
 
15
15
  if ((0, _utils.isDev)()) {
16
- message += `\n${_utils.chalk.cyanBright([`Note that the development build is not optimized.`, `To create a production build, use yarn build.`].join('\n'))}`;
16
+ message += `\n${_utils.chalk.cyanBright([`Note that the development build is not optimized.`, `To create a production build, execute build command.`].join('\n'))}`;
17
17
  } // call beforePrintInstructions hook.
18
18
 
19
19
 
package/lib/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="react" />
3
3
  /// <reference types="react-dom" />
4
- /// <reference path="./dist/types/index.d.ts" />
4
+ /// <reference path="../dist/types/index.d.ts" />
5
5
 
6
6
  declare namespace NodeJS {
7
7
  interface ProcessEnv {
package/package.json CHANGED
@@ -1,62 +1,63 @@
1
1
  {
2
- "name": "@modern-js/app-tools",
3
- "version": "1.0.0-rc.17",
4
- "jsnext:source": "./src/index.ts",
5
- "types": "./lib/types.d.ts",
6
- "main": "./dist/js/node/index.js",
7
- "module": "./dist/js/treeshaking/index.js",
8
- "jsnext:modern": "./dist/js/modern/index.js",
9
- "exports": {
10
- ".": {
11
- "node": {
12
- "import": "./dist/js/modern/index.js",
13
- "require": "./dist/js/node/index.js"
14
- },
15
- "default": "./dist/js/treeshaking/index.js"
16
- },
17
- "./cli": "./dist/js/node/index.js"
18
- },
19
- "bin": {
20
- "modern": "./bin/modern.js"
21
- },
22
- "dependencies": {
23
- "@babel/runtime": "^7",
24
- "@modern-js/core": "^1.0.0-rc.17",
25
- "@modern-js/types": "^1.0.0-rc.17",
26
- "@modern-js/i18n-cli-language-detector": "^1.0.0-rc.17",
27
- "@modern-js/new-action": "^1.0.0-rc.17",
28
- "@modern-js/plugin": "^1.0.0-rc.17",
29
- "@modern-js/plugin-analyze": "^1.0.0-rc.17",
30
- "@modern-js/plugin-fast-refresh": "^1.0.0-rc.17",
31
- "@modern-js/plugin-i18n": "^1.0.0-rc.17",
32
- "@modern-js/plugin-polyfill": "^1.0.0-rc.17",
33
- "@modern-js/server": "^1.0.0-rc.17",
34
- "@modern-js/utils": "^1.0.0-rc.17",
35
- "@modern-js/webpack": "^1.0.0-rc.17",
36
- "webpack": "^5.54.0"
37
- },
38
- "devDependencies": {
39
- "@types/jest": "^26",
40
- "@types/node": "^14",
41
- "@types/react": "^17",
42
- "@types/react-dom": "^17",
43
- "typescript": "^4",
44
- "@modern-js/plugin-testing": "^1.0.0-rc.17",
45
- "@modern-js/module-tools": "^1.0.0-rc.17"
46
- },
47
- "sideEffects": false,
48
- "modernConfig": {
49
- "output": {
50
- "packageMode": "node-js"
51
- }
52
- },
53
- "publishConfig": {
54
- "registry": "https://registry.npmjs.org/",
55
- "access": "public"
56
- },
57
- "scripts": {
58
- "new": "modern new",
59
- "build": "modern build",
60
- "test": "modern test --passWithNoTests"
61
- }
62
- }
2
+ "name": "@modern-js/app-tools",
3
+ "description": "Modern.js app tools",
4
+ "version": "1.0.0-rc.21",
5
+ "jsnext:source": "./src/index.ts",
6
+ "types": "./lib/types.d.ts",
7
+ "main": "./dist/js/node/index.js",
8
+ "module": "./dist/js/treeshaking/index.js",
9
+ "jsnext:modern": "./dist/js/modern/index.js",
10
+ "exports": {
11
+ ".": {
12
+ "node": {
13
+ "import": "./dist/js/modern/index.js",
14
+ "require": "./dist/js/node/index.js"
15
+ },
16
+ "default": "./dist/js/treeshaking/index.js"
17
+ },
18
+ "./cli": "./dist/js/node/index.js"
19
+ },
20
+ "bin": {
21
+ "modern": "./bin/modern.js"
22
+ },
23
+ "dependencies": {
24
+ "@babel/runtime": "^7",
25
+ "@modern-js/core": "^1.0.0-rc.21",
26
+ "@modern-js/types": "^1.0.0-rc.21",
27
+ "@modern-js/i18n-cli-language-detector": "^1.0.0-rc.21",
28
+ "@modern-js/new-action": "^1.0.0-rc.21",
29
+ "@modern-js/plugin": "^1.0.0-rc.21",
30
+ "@modern-js/plugin-analyze": "^1.0.0-rc.21",
31
+ "@modern-js/plugin-fast-refresh": "^1.0.0-rc.21",
32
+ "@modern-js/plugin-i18n": "^1.0.0-rc.21",
33
+ "@modern-js/plugin-polyfill": "^1.0.0-rc.21",
34
+ "@modern-js/server": "^1.0.0-rc.21",
35
+ "@modern-js/utils": "^1.0.0-rc.21",
36
+ "@modern-js/webpack": "^1.0.0-rc.21",
37
+ "webpack": "^5.54.0"
38
+ },
39
+ "devDependencies": {
40
+ "@types/jest": "^26",
41
+ "@types/node": "^14",
42
+ "@types/react": "^17",
43
+ "@types/react-dom": "^17",
44
+ "typescript": "^4",
45
+ "@modern-js/plugin-testing": "^1.0.0-rc.21",
46
+ "@modern-js/module-tools": "^1.0.0-rc.21"
47
+ },
48
+ "sideEffects": false,
49
+ "modernConfig": {
50
+ "output": {
51
+ "packageMode": "node-js"
52
+ }
53
+ },
54
+ "publishConfig": {
55
+ "registry": "https://registry.npmjs.org/",
56
+ "access": "public"
57
+ },
58
+ "scripts": {
59
+ "new": "modern new",
60
+ "build": "modern build",
61
+ "test": "modern test --passWithNoTests"
62
+ }
63
+ }
package/src/index.ts CHANGED
@@ -67,11 +67,7 @@ export default createPlugin(
67
67
  });
68
68
  },
69
69
  async fileChange() {
70
- // restart cli.
71
- const shouldRestart = await cli.restart();
72
- if (shouldRestart) {
73
- await dev();
74
- }
70
+ await cli.restart();
75
71
  },
76
72
  };
77
73
  }) as any,
@@ -11,7 +11,7 @@ export const printInstructions = async (
11
11
  message += `\n${chalk.cyanBright(
12
12
  [
13
13
  `Note that the development build is not optimized.`,
14
- `To create a production build, use yarn build.`,
14
+ `To create a production build, execute build command.`,
15
15
  ].join('\n'),
16
16
  )}`;
17
17
  }