@umijs/max 4.0.0-canary.202200505.1

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @umijs/max
2
+
3
+ See our website [umijs](https://umijs.org) for more information.
package/bin/max.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ require('../dist/cli');
package/dist/cli.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/dist/cli.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const umi_1 = require("umi");
4
+ (0, umi_1.run)({
5
+ presets: [require.resolve('./preset')],
6
+ }).catch((e) => {
7
+ console.error(e);
8
+ process.exit(1);
9
+ });
@@ -0,0 +1 @@
1
+ export * from 'umi';
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("umi"), exports);
@@ -0,0 +1,3 @@
1
+ import { IApi } from 'umi';
2
+ declare const _default: (api: IApi) => void;
3
+ export default _default;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = (api) => {
4
+ // avoid plugin-key conflict with configPlugins
5
+ api.describe({
6
+ key: 'umiMaxAlias',
7
+ });
8
+ api.modifyConfig((memo) => {
9
+ memo.alias = {
10
+ ...memo.alias,
11
+ '@umijs/max': '@@/exports',
12
+ };
13
+ return memo;
14
+ });
15
+ };
@@ -0,0 +1,5 @@
1
+ import { IApi } from 'umi';
2
+ declare const _default: (api: IApi) => {
3
+ plugins: string[];
4
+ };
5
+ export default _default;
package/dist/preset.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = (api) => {
4
+ api;
5
+ return {
6
+ plugins: [
7
+ require.resolve('@umijs/plugins/dist/access'),
8
+ require.resolve('@umijs/plugins/dist/analytics'),
9
+ require.resolve('@umijs/plugins/dist/antd'),
10
+ require.resolve('@umijs/plugins/dist/dva'),
11
+ require.resolve('@umijs/plugins/dist/initial-state'),
12
+ require.resolve('@umijs/plugins/dist/layout'),
13
+ require.resolve('@umijs/plugins/dist/model'),
14
+ require.resolve('@umijs/plugins/dist/moment2dayjs'),
15
+ require.resolve('@umijs/plugins/dist/request'),
16
+ require.resolve('@umijs/plugins/dist/locale'),
17
+ require.resolve('@umijs/plugins/dist/qiankun'),
18
+ require.resolve('./plugins/alias'),
19
+ ],
20
+ };
21
+ };
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,49 @@
1
+ {
2
+ "name": "@umijs/max",
3
+ "version": "4.0.0-canary.202200505.1",
4
+ "description": "@umijs/max",
5
+ "homepage": "https://github.com/umijs/umi-next/tree/master/packages/pro#readme",
6
+ "bugs": "https://github.com/umijs/umi-next/issues",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/umijs/umi-next"
10
+ },
11
+ "license": "MIT",
12
+ "main": "index.js",
13
+ "types": "index.d.ts",
14
+ "bin": {
15
+ "max": "bin/max.js"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "bin",
20
+ "index.js",
21
+ "index.d.ts",
22
+ "plugin-utils.d.ts",
23
+ "plugin-utils.js",
24
+ "prettier.js",
25
+ "test.d.ts",
26
+ "test.js",
27
+ "eslint.js",
28
+ "stylelint.js"
29
+ ],
30
+ "scripts": {
31
+ "build": "pnpm tsc",
32
+ "build:deps": "umi-scripts bundleDeps",
33
+ "dev": "pnpm build -- --watch"
34
+ },
35
+ "dependencies": {
36
+ "@umijs/lint": "4.0.0-canary.202200505.1",
37
+ "@umijs/plugins": "4.0.0-canary.202200505.1",
38
+ "antd": "^4.19.5",
39
+ "eslint": "8.13.0",
40
+ "stylelint": "14.7.1",
41
+ "umi": "4.0.0-canary.202200505.1"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "authors": [
47
+ "chencheng <sorrycc@gmail.com> (https://github.com/sorrycc)"
48
+ ]
49
+ }
@@ -0,0 +1 @@
1
+ export * from 'umi/plugin-utils';
@@ -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.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from 'umi/test';
package/test.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('umi/test');