@umijs/max 4.0.0-canary-20240513.3
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/LICENSE +21 -0
- package/README.md +3 -0
- package/bin/max.js +3 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +31 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +23 -0
- package/dist/plugins/maxAlias.d.ts +3 -0
- package/dist/plugins/maxAlias.js +33 -0
- package/dist/plugins/maxAppData.d.ts +3 -0
- package/dist/plugins/maxAppData.js +32 -0
- package/dist/plugins/maxChecker.d.ts +3 -0
- package/dist/plugins/maxChecker.js +35 -0
- package/dist/preset.d.ts +4 -0
- package/dist/preset.js +59 -0
- package/eslint.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +50 -0
- package/plugin-utils.d.ts +1 -0
- package/plugin-utils.js +1 -0
- package/prettier.js +1 -0
- package/stylelint.js +1 -0
- package/test-setup.js +1 -0
- package/test.d.ts +1 -0
- package/test.js +5 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017-present ChenCheng (sorrycc@gmail.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
package/bin/max.js
ADDED
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __copyProps = (to, from, except, desc) => {
|
|
8
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
9
|
+
for (let key of __getOwnPropNames(from))
|
|
10
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
11
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
}
|
|
13
|
+
return to;
|
|
14
|
+
};
|
|
15
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
21
|
+
mod
|
|
22
|
+
));
|
|
23
|
+
|
|
24
|
+
// src/cli.ts
|
|
25
|
+
var import_umi = require("umi");
|
|
26
|
+
(0, import_umi.run)({
|
|
27
|
+
presets: [require.resolve("./preset")]
|
|
28
|
+
}).catch((e) => {
|
|
29
|
+
console.error(e);
|
|
30
|
+
process.exit(1);
|
|
31
|
+
});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'umi';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/index.ts
|
|
17
|
+
var src_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(src_exports);
|
|
19
|
+
__reExport(src_exports, require("umi"), module.exports);
|
|
20
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
21
|
+
0 && (module.exports = {
|
|
22
|
+
...require("umi")
|
|
23
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/plugins/maxAlias.ts
|
|
20
|
+
var maxAlias_exports = {};
|
|
21
|
+
__export(maxAlias_exports, {
|
|
22
|
+
default: () => maxAlias_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(maxAlias_exports);
|
|
25
|
+
var maxAlias_default = (api) => {
|
|
26
|
+
api.modifyConfig((memo) => {
|
|
27
|
+
memo.alias = {
|
|
28
|
+
...memo.alias,
|
|
29
|
+
"@umijs/max": "@@/exports"
|
|
30
|
+
};
|
|
31
|
+
return memo;
|
|
32
|
+
});
|
|
33
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/plugins/maxAppData.ts
|
|
20
|
+
var maxAppData_exports = {};
|
|
21
|
+
__export(maxAppData_exports, {
|
|
22
|
+
default: () => maxAppData_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(maxAppData_exports);
|
|
25
|
+
var maxAppData_default = (api) => {
|
|
26
|
+
api.modifyAppData((memo) => {
|
|
27
|
+
memo.umi.name = "Umi Max";
|
|
28
|
+
memo.umi.importSource = "@umijs/max";
|
|
29
|
+
memo.umi.cliName = "max";
|
|
30
|
+
return memo;
|
|
31
|
+
});
|
|
32
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/plugins/maxChecker.ts
|
|
20
|
+
var maxChecker_exports = {};
|
|
21
|
+
__export(maxChecker_exports, {
|
|
22
|
+
default: () => maxChecker_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(maxChecker_exports);
|
|
25
|
+
var maxChecker_default = (api) => {
|
|
26
|
+
api.onCheckPkgJSON(({ current }) => {
|
|
27
|
+
var _a, _b;
|
|
28
|
+
const hasUmi = ((_a = current.dependencies) == null ? void 0 : _a["umi"]) || ((_b = current.devDependencies) == null ? void 0 : _b["umi"]);
|
|
29
|
+
if (hasUmi) {
|
|
30
|
+
throw new Error(
|
|
31
|
+
`You are using ${api.appData.umi.importSource}, please remove umi from your dependencies in package.json.`
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
package/dist/preset.d.ts
ADDED
package/dist/preset.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/preset.ts
|
|
30
|
+
var preset_exports = {};
|
|
31
|
+
__export(preset_exports, {
|
|
32
|
+
default: () => preset_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(preset_exports);
|
|
35
|
+
var preset_default = () => {
|
|
36
|
+
return {
|
|
37
|
+
plugins: [
|
|
38
|
+
require.resolve("@umijs/plugins/dist/access"),
|
|
39
|
+
require.resolve("@umijs/plugins/dist/analytics"),
|
|
40
|
+
require.resolve("@umijs/plugins/dist/antd"),
|
|
41
|
+
require.resolve("@umijs/plugins/dist/dva"),
|
|
42
|
+
require.resolve("@umijs/plugins/dist/initial-state"),
|
|
43
|
+
require.resolve("@umijs/plugins/dist/layout"),
|
|
44
|
+
require.resolve("@umijs/plugins/dist/locale"),
|
|
45
|
+
require.resolve("@umijs/plugins/dist/mf"),
|
|
46
|
+
require.resolve("@umijs/plugins/dist/model"),
|
|
47
|
+
require.resolve("@umijs/plugins/dist/moment2dayjs"),
|
|
48
|
+
require.resolve("@umijs/plugins/dist/qiankun"),
|
|
49
|
+
require.resolve("@umijs/plugins/dist/react-query"),
|
|
50
|
+
require.resolve("@umijs/plugins/dist/request"),
|
|
51
|
+
require.resolve("@umijs/plugins/dist/styled-components"),
|
|
52
|
+
require.resolve("@umijs/plugins/dist/tailwindcss"),
|
|
53
|
+
require.resolve("@umijs/plugins/dist/valtio"),
|
|
54
|
+
require.resolve("./plugins/maxAlias"),
|
|
55
|
+
require.resolve("./plugins/maxAppData"),
|
|
56
|
+
require.resolve("./plugins/maxChecker")
|
|
57
|
+
]
|
|
58
|
+
};
|
|
59
|
+
};
|
package/eslint.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('umi/eslint');
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'umi';
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('umi');
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@umijs/max",
|
|
3
|
+
"version": "4.0.0-canary-20240513.3",
|
|
4
|
+
"description": "@umijs/max",
|
|
5
|
+
"homepage": "https://github.com/umijs/umi/tree/master/packages/max#readme",
|
|
6
|
+
"bugs": "https://github.com/umijs/umi/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/umijs/umi"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"main": "index.js",
|
|
13
|
+
"types": "index.d.ts",
|
|
14
|
+
"bin": {
|
|
15
|
+
"max": "bin/max.js"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"bin",
|
|
19
|
+
"dist",
|
|
20
|
+
"eslint.js",
|
|
21
|
+
"index.d.ts",
|
|
22
|
+
"index.js",
|
|
23
|
+
"plugin-utils.d.ts",
|
|
24
|
+
"plugin-utils.js",
|
|
25
|
+
"prettier.js",
|
|
26
|
+
"stylelint.js",
|
|
27
|
+
"test-setup.js",
|
|
28
|
+
"test.d.ts",
|
|
29
|
+
"test.js"
|
|
30
|
+
],
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"antd": "^4.20.6",
|
|
33
|
+
"eslint": "8.35.0",
|
|
34
|
+
"stylelint": "14.8.2",
|
|
35
|
+
"@umijs/lint": "4.0.0-canary-20240513.3",
|
|
36
|
+
"umi": "4.0.0-canary-20240513.3",
|
|
37
|
+
"@umijs/plugins": "4.0.0-canary-20240513.3"
|
|
38
|
+
},
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"authors": [
|
|
43
|
+
"chencheng <sorrycc@gmail.com> (https://github.com/sorrycc)"
|
|
44
|
+
],
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "umi-scripts father build",
|
|
47
|
+
"build:deps": "umi-scripts bundleDeps",
|
|
48
|
+
"dev": "umi-scripts father dev"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'umi/plugin-utils';
|
package/plugin-utils.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('umi/plugin-utils');
|
package/prettier.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('umi/prettier');
|
package/stylelint.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('umi/stylelint');
|
package/test-setup.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('umi/test-setup');
|
package/test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'umi/test';
|