@modern-js/app-tools 0.0.0-canary-20211113104942 → 0.0.0-test-1640933146471
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 +17 -0
- package/package.json +27 -17
- package/src/lifecycle.ts +2 -2
- package/dist/types/commands/build.d.ts +0 -5
- package/dist/types/commands/deploy.d.ts +0 -1
- package/dist/types/commands/dev.d.ts +0 -1
- package/dist/types/commands/index.d.ts +0 -3
- package/dist/types/commands/start.d.ts +0 -1
- package/dist/types/index.d.ts +0 -21
- package/dist/types/lifecycle.d.ts +0 -19
- package/dist/types/locale/en.d.ts +0 -25
- package/dist/types/locale/index.d.ts +0 -52
- package/dist/types/locale/zh.d.ts +0 -25
- package/dist/types/utils/createCompiler.d.ts +0 -11
- package/dist/types/utils/createServer.d.ts +0 -2
- package/dist/types/utils/language.d.ts +0 -1
- package/dist/types/utils/printInstructions.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
+
## 1.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d927bc83: remove esbuild and use @modenr-js/esbuild-compiler
|
|
8
|
+
- Updated dependencies [d927bc83]
|
|
9
|
+
- Updated dependencies [d73ff455]
|
|
10
|
+
- Updated dependencies [9c1ab865]
|
|
11
|
+
- Updated dependencies [d73ff455]
|
|
12
|
+
- Updated dependencies [d73ff455]
|
|
13
|
+
- Updated dependencies [d73ff455]
|
|
14
|
+
- Updated dependencies [d73ff455]
|
|
15
|
+
- @modern-js/utils@1.1.4
|
|
16
|
+
- @modern-js/core@1.1.4
|
|
17
|
+
- @modern-js/server@1.1.4
|
|
18
|
+
- @modern-js/types@1.1.3
|
|
19
|
+
|
|
3
20
|
## 1.1.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-
|
|
14
|
+
"version": "0.0.0-test-1640933146471",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
|
-
"types": "./
|
|
16
|
+
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
18
18
|
"module": "./dist/js/treeshaking/index.js",
|
|
19
19
|
"jsnext:modern": "./dist/js/modern/index.js",
|
|
@@ -25,7 +25,18 @@
|
|
|
25
25
|
},
|
|
26
26
|
"default": "./dist/js/treeshaking/index.js"
|
|
27
27
|
},
|
|
28
|
-
"./cli": "./dist/js/node/index.js"
|
|
28
|
+
"./cli": "./dist/js/node/index.js",
|
|
29
|
+
"./types": "./lib/types.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"typesVersions": {
|
|
32
|
+
"*": {
|
|
33
|
+
".": [
|
|
34
|
+
"./dist/types/index.d.ts"
|
|
35
|
+
],
|
|
36
|
+
"types": [
|
|
37
|
+
"./lib/types.d.ts"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
29
40
|
},
|
|
30
41
|
"bin": {
|
|
31
42
|
"modern": "./bin/modern.js"
|
|
@@ -39,19 +50,18 @@
|
|
|
39
50
|
},
|
|
40
51
|
"dependencies": {
|
|
41
52
|
"@babel/runtime": "^7",
|
|
42
|
-
"@modern-js/core": "
|
|
43
|
-
"@modern-js/types": "
|
|
44
|
-
"@modern-js/i18n-cli-language-detector": "
|
|
45
|
-
"@modern-js/new-action": "
|
|
46
|
-
"@modern-js/plugin": "
|
|
47
|
-
"@modern-js/plugin-analyze": "
|
|
48
|
-
"@modern-js/plugin-fast-refresh": "
|
|
49
|
-
"@modern-js/plugin-i18n": "
|
|
50
|
-
"@modern-js/plugin-polyfill": "
|
|
51
|
-
"@modern-js/server": "
|
|
52
|
-
"@modern-js/utils": "
|
|
53
|
-
"@modern-js/webpack": "
|
|
54
|
-
"esbuild": "^0.13.13",
|
|
53
|
+
"@modern-js/core": "workspace:^1.1.4",
|
|
54
|
+
"@modern-js/types": "workspace:^1.1.3",
|
|
55
|
+
"@modern-js/i18n-cli-language-detector": "workspace:^1.1.1",
|
|
56
|
+
"@modern-js/new-action": "workspace:^1.1.5",
|
|
57
|
+
"@modern-js/plugin": "workspace:^1.1.2",
|
|
58
|
+
"@modern-js/plugin-analyze": "workspace:^1.1.1",
|
|
59
|
+
"@modern-js/plugin-fast-refresh": "workspace:^1.1.1",
|
|
60
|
+
"@modern-js/plugin-i18n": "workspace:^1.1.1",
|
|
61
|
+
"@modern-js/plugin-polyfill": "workspace:^1.1.1",
|
|
62
|
+
"@modern-js/server": "workspace:^1.1.4",
|
|
63
|
+
"@modern-js/utils": "workspace:^1.1.4",
|
|
64
|
+
"@modern-js/webpack": "workspace:^1.1.3",
|
|
55
65
|
"webpack": "^5.54.0"
|
|
56
66
|
},
|
|
57
67
|
"devDependencies": {
|
|
@@ -61,7 +71,7 @@
|
|
|
61
71
|
"@types/react-dom": "^17",
|
|
62
72
|
"typescript": "^4",
|
|
63
73
|
"@modern-js/plugin-testing": "^1.1.1",
|
|
64
|
-
"@modern-js/module-tools": "^1.1.
|
|
74
|
+
"@modern-js/module-tools": "^1.1.2"
|
|
65
75
|
},
|
|
66
76
|
"sideEffects": false,
|
|
67
77
|
"modernConfig": {
|
package/src/lifecycle.ts
CHANGED
|
@@ -24,9 +24,9 @@ export const beforeBuild = createAsyncWorkflow<{
|
|
|
24
24
|
|
|
25
25
|
export const afterBuild = createAsyncWorkflow();
|
|
26
26
|
|
|
27
|
-
export const beforeDeploy = createAsyncWorkflow();
|
|
27
|
+
export const beforeDeploy = createAsyncWorkflow<Record<string, any>>();
|
|
28
28
|
|
|
29
|
-
export const afterDeploy = createAsyncWorkflow();
|
|
29
|
+
export const afterDeploy = createAsyncWorkflow<Record<string, any>>();
|
|
30
30
|
|
|
31
31
|
export const lifecycle = () => {
|
|
32
32
|
registerHook({
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const deploy: (options: any) => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const dev: () => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const start: () => Promise<void>;
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from '@modern-js/core';
|
|
2
|
-
export { defineConfig };
|
|
3
|
-
|
|
4
|
-
declare const _default: import("@modern-js/core").AsyncPlugin<Partial<import("@modern-js/core").Progresses2Threads<{
|
|
5
|
-
config: import("@modern-js/core").ParallelWorkflow<void, unknown>;
|
|
6
|
-
resolvedConfig: import("@modern-js/core").AsyncWaterfall<{
|
|
7
|
-
resolved: import("@modern-js/core").NormalizedConfig;
|
|
8
|
-
}>;
|
|
9
|
-
validateSchema: import("@modern-js/core").ParallelWorkflow<void, unknown>;
|
|
10
|
-
prepare: import("@modern-js/core").AsyncWorkflow<void, void>;
|
|
11
|
-
commands: import("@modern-js/core").AsyncWorkflow<{
|
|
12
|
-
program: import("commander").Command;
|
|
13
|
-
}, void>;
|
|
14
|
-
watchFiles: import("@modern-js/core").ParallelWorkflow<void, unknown>;
|
|
15
|
-
fileChange: import("@modern-js/core").AsyncWorkflow<{
|
|
16
|
-
filename: string;
|
|
17
|
-
}, void>;
|
|
18
|
-
beforeExit: import("@modern-js/core").AsyncWorkflow<void, void>;
|
|
19
|
-
} & import("@modern-js/core").ClearDraftProgress<import("@modern-js/core").Hooks>>>>;
|
|
20
|
-
|
|
21
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Compiler, Configuration, MultiCompiler } from '@modern-js/types';
|
|
2
|
-
export declare const beforeDev: import("@modern-js/plugin").AsyncWorkflow<void, unknown>;
|
|
3
|
-
export declare const afterDev: import("@modern-js/plugin").AsyncWorkflow<void, unknown>;
|
|
4
|
-
export declare const beforeCreateCompiler: import("@modern-js/plugin").AsyncWorkflow<{
|
|
5
|
-
webpackConfigs: Configuration[];
|
|
6
|
-
}, unknown>;
|
|
7
|
-
export declare const afterCreateCompiler: import("@modern-js/plugin").AsyncWorkflow<{
|
|
8
|
-
compiler: Compiler | MultiCompiler | undefined;
|
|
9
|
-
}, unknown>;
|
|
10
|
-
export declare const beforePrintInstructions: import("@modern-js/plugin").AsyncWaterfall<{
|
|
11
|
-
instructions: string;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const beforeBuild: import("@modern-js/plugin").AsyncWorkflow<{
|
|
14
|
-
webpackConfigs: Configuration[];
|
|
15
|
-
}, unknown>;
|
|
16
|
-
export declare const afterBuild: import("@modern-js/plugin").AsyncWorkflow<void, unknown>;
|
|
17
|
-
export declare const beforeDeploy: import("@modern-js/plugin").AsyncWorkflow<void, unknown>;
|
|
18
|
-
export declare const afterDeploy: import("@modern-js/plugin").AsyncWorkflow<void, unknown>;
|
|
19
|
-
export declare const lifecycle: () => void;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare const EN_LOCALE: {
|
|
2
|
-
command: {
|
|
3
|
-
dev: {
|
|
4
|
-
describe: string;
|
|
5
|
-
config: string;
|
|
6
|
-
};
|
|
7
|
-
build: {
|
|
8
|
-
describe: string;
|
|
9
|
-
analyze: string;
|
|
10
|
-
};
|
|
11
|
-
start: {
|
|
12
|
-
describe: string;
|
|
13
|
-
};
|
|
14
|
-
deploy: {
|
|
15
|
-
describe: string;
|
|
16
|
-
};
|
|
17
|
-
new: {
|
|
18
|
-
describe: string;
|
|
19
|
-
debug: string;
|
|
20
|
-
config: string;
|
|
21
|
-
distTag: string;
|
|
22
|
-
registry: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { I18n } from '@modern-js/plugin-i18n';
|
|
2
|
-
declare const i18n: I18n;
|
|
3
|
-
declare const localeKeys: {
|
|
4
|
-
command: {
|
|
5
|
-
dev: {
|
|
6
|
-
describe: string;
|
|
7
|
-
config: string;
|
|
8
|
-
};
|
|
9
|
-
build: {
|
|
10
|
-
describe: string;
|
|
11
|
-
analyze: string;
|
|
12
|
-
};
|
|
13
|
-
start: {
|
|
14
|
-
describe: string;
|
|
15
|
-
};
|
|
16
|
-
deploy: {
|
|
17
|
-
describe: string;
|
|
18
|
-
};
|
|
19
|
-
new: {
|
|
20
|
-
describe: string;
|
|
21
|
-
debug: string;
|
|
22
|
-
config: string;
|
|
23
|
-
distTag: string;
|
|
24
|
-
registry: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
} | {
|
|
28
|
-
command: {
|
|
29
|
-
dev: {
|
|
30
|
-
describe: string;
|
|
31
|
-
config: string;
|
|
32
|
-
};
|
|
33
|
-
build: {
|
|
34
|
-
describe: string;
|
|
35
|
-
analyze: string;
|
|
36
|
-
};
|
|
37
|
-
start: {
|
|
38
|
-
describe: string;
|
|
39
|
-
};
|
|
40
|
-
deploy: {
|
|
41
|
-
describe: string;
|
|
42
|
-
};
|
|
43
|
-
new: {
|
|
44
|
-
describe: string;
|
|
45
|
-
debug: string;
|
|
46
|
-
config: string;
|
|
47
|
-
distTag: string;
|
|
48
|
-
registry: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export { i18n, localeKeys };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export declare const ZH_LOCALE: {
|
|
2
|
-
command: {
|
|
3
|
-
dev: {
|
|
4
|
-
describe: string;
|
|
5
|
-
config: string;
|
|
6
|
-
};
|
|
7
|
-
build: {
|
|
8
|
-
describe: string;
|
|
9
|
-
analyze: string;
|
|
10
|
-
};
|
|
11
|
-
start: {
|
|
12
|
-
describe: string;
|
|
13
|
-
};
|
|
14
|
-
deploy: {
|
|
15
|
-
describe: string;
|
|
16
|
-
};
|
|
17
|
-
new: {
|
|
18
|
-
describe: string;
|
|
19
|
-
debug: string;
|
|
20
|
-
config: string;
|
|
21
|
-
distTag: string;
|
|
22
|
-
registry: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import webpack, { Configuration } from 'webpack';
|
|
2
|
-
import { IAppContext, NormalizedConfig } from '@modern-js/core';
|
|
3
|
-
export declare const createCompiler: ({
|
|
4
|
-
webpackConfigs,
|
|
5
|
-
userConfig,
|
|
6
|
-
appContext
|
|
7
|
-
}: {
|
|
8
|
-
webpackConfigs: Configuration[];
|
|
9
|
-
userConfig: NormalizedConfig;
|
|
10
|
-
appContext: IAppContext;
|
|
11
|
-
}) => Promise<webpack.MultiCompiler>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getLocaleLanguage(): string;
|