@modern-js/app-tools 0.0.0-runtime-20211121141552 → 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 +0 -21
- package/package.json +37 -24
- 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,26 +1,5 @@
|
|
|
1
1
|
# @modern-js/app-tools
|
|
2
2
|
|
|
3
|
-
## 0.0.0-runtime-20211121141552
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 8698465e: fix: dependence version
|
|
8
|
-
- Updated dependencies [8698465e]
|
|
9
|
-
- Updated dependencies [e04914ce]
|
|
10
|
-
- Updated dependencies [e04914ce]
|
|
11
|
-
- @modern-js/core@0.0.0-runtime-20211121141552
|
|
12
|
-
- @modern-js/i18n-cli-language-detector@0.0.0-runtime-20211121141552
|
|
13
|
-
- @modern-js/plugin-analyze@0.0.0-runtime-20211121141552
|
|
14
|
-
- @modern-js/plugin-fast-refresh@0.0.0-runtime-20211121141552
|
|
15
|
-
- @modern-js/plugin-i18n@0.0.0-runtime-20211121141552
|
|
16
|
-
- @modern-js/webpack@0.0.0-runtime-20211121141552
|
|
17
|
-
- @modern-js/new-action@0.0.0-runtime-20211121141552
|
|
18
|
-
- @modern-js/plugin-polyfill@0.0.0-runtime-20211121141552
|
|
19
|
-
- @modern-js/server@0.0.0-runtime-20211121141552
|
|
20
|
-
- @modern-js/plugin@0.0.0-runtime-20211121141552
|
|
21
|
-
- @modern-js/utils@0.0.0-runtime-20211121141552
|
|
22
|
-
- @modern-js/types@0.0.0-runtime-20211121141552
|
|
23
|
-
|
|
24
3
|
## 1.1.5
|
|
25
4
|
|
|
26
5
|
### 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,25 +25,43 @@
|
|
|
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"
|
|
32
43
|
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"prepare": "pnpm build",
|
|
46
|
+
"prepublishOnly": "pnpm build -- --platform",
|
|
47
|
+
"new": "modern new",
|
|
48
|
+
"build": "modern build",
|
|
49
|
+
"test": "modern test --passWithNoTests"
|
|
50
|
+
},
|
|
33
51
|
"dependencies": {
|
|
34
52
|
"@babel/runtime": "^7",
|
|
35
|
-
"@modern-js/core": "
|
|
36
|
-
"@modern-js/types": "
|
|
37
|
-
"@modern-js/i18n-cli-language-detector": "
|
|
38
|
-
"@modern-js/new-action": "
|
|
39
|
-
"@modern-js/plugin": "
|
|
40
|
-
"@modern-js/plugin-analyze": "
|
|
41
|
-
"@modern-js/plugin-fast-refresh": "
|
|
42
|
-
"@modern-js/plugin-i18n": "
|
|
43
|
-
"@modern-js/plugin-polyfill": "
|
|
44
|
-
"@modern-js/server": "
|
|
45
|
-
"@modern-js/utils": "
|
|
46
|
-
"@modern-js/webpack": "
|
|
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",
|
|
47
65
|
"webpack": "^5.54.0"
|
|
48
66
|
},
|
|
49
67
|
"devDependencies": {
|
|
@@ -51,9 +69,9 @@
|
|
|
51
69
|
"@types/node": "^14",
|
|
52
70
|
"@types/react": "^17",
|
|
53
71
|
"@types/react-dom": "^17",
|
|
54
|
-
"typescript": "^4
|
|
55
|
-
"@modern-js/plugin-testing": "^
|
|
56
|
-
"@modern-js/module-tools": "^
|
|
72
|
+
"typescript": "^4",
|
|
73
|
+
"@modern-js/plugin-testing": "^1.1.1",
|
|
74
|
+
"@modern-js/module-tools": "^1.1.2"
|
|
57
75
|
},
|
|
58
76
|
"sideEffects": false,
|
|
59
77
|
"modernConfig": {
|
|
@@ -64,10 +82,5 @@
|
|
|
64
82
|
"publishConfig": {
|
|
65
83
|
"registry": "https://registry.npmjs.org/",
|
|
66
84
|
"access": "public"
|
|
67
|
-
},
|
|
68
|
-
"scripts": {
|
|
69
|
-
"new": "modern new",
|
|
70
|
-
"build": "modern build",
|
|
71
|
-
"test": "modern test --passWithNoTests"
|
|
72
85
|
}
|
|
73
|
-
}
|
|
86
|
+
}
|
|
@@ -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<Record<string, any>, unknown>;
|
|
18
|
-
export declare const afterDeploy: import("@modern-js/plugin").AsyncWorkflow<Record<string, any>, 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;
|