swico 2.9.0-beta.3 → 2.9.0-beta.4
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/package.json +1 -1
- package/src/index.d.ts +3 -2
- package/src/index.react.d.ts +3 -3
- package/src/index.vue.d.ts +3 -3
- package/src/main-config/index.d.ts +2 -2
- package/src/rspack-config/rsbpack.dev.d.ts +2 -2
- package/src/rspack-config/rspack.base.react.d.ts +2 -2
- package/src/rspack-config/rspack.base.vue.d.ts +2 -2
- package/src/rspack-config/rspack.prod.d.ts +2 -2
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GlobalDataType, GlobalSwicoConfigType } from './main-config';
|
|
2
2
|
import { UseLocationType, UseNavType } from './typings/global-type';
|
|
3
3
|
import { App } from 'vue';
|
|
4
4
|
import { Router } from 'vue-router';
|
|
5
|
-
export type CustomConfigType =
|
|
5
|
+
export type CustomConfigType = GlobalDataType['customConfig'];
|
|
6
|
+
export type * from './main-config';
|
|
6
7
|
export type * from './typings/global-type';
|
|
7
8
|
export type { GlobalSwicoConfigType };
|
|
8
9
|
export { history } from './mock-history';
|
package/src/index.react.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GlobalDataType } from './main-config';
|
|
2
2
|
import { CSSProperties, FC, ReactNode } from 'react';
|
|
3
3
|
import { SwicoHistoryOptionType } from './typings/global-type';
|
|
4
4
|
import { useLocation, useNav } from './template-root/.swico-react/hooks';
|
|
5
|
-
export type CustomConfigType =
|
|
5
|
+
export type CustomConfigType = GlobalDataType['customConfig'];
|
|
6
6
|
export type * from './typings/global-type';
|
|
7
|
-
export type
|
|
7
|
+
export type * from './main-config';
|
|
8
8
|
interface LinkPropsType {
|
|
9
9
|
replace?: boolean;
|
|
10
10
|
to: string | number | SwicoHistoryOptionType;
|
package/src/index.vue.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GlobalDataType } from './main-config';
|
|
2
2
|
import { App } from 'vue';
|
|
3
3
|
import { Router } from 'vue-router';
|
|
4
4
|
import { useLocation, useNav } from './template-root/.swico-vue/hooks';
|
|
5
5
|
import { SwicoHistoryOptionType } from './typings/global-type';
|
|
6
|
-
export type CustomConfigType =
|
|
6
|
+
export type CustomConfigType = GlobalDataType['customConfig'];
|
|
7
7
|
export { RouterView } from 'vue-router';
|
|
8
8
|
export { useLocation, useNav };
|
|
9
9
|
export { history } from './mock-history';
|
|
10
|
-
export type { GlobalSwicoConfigType };
|
|
11
10
|
export type * from './typings/global-type';
|
|
11
|
+
export type * from './main-config';
|
|
12
12
|
export declare const Outlet: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
13
|
interface LinkPropsType {
|
|
14
14
|
replace?: boolean;
|
|
@@ -31,7 +31,7 @@ export interface GlobalSwicoConfigType {
|
|
|
31
31
|
externals?: any;
|
|
32
32
|
router?: ConfigRouterType;
|
|
33
33
|
}
|
|
34
|
-
export interface
|
|
34
|
+
export interface GlobalDataType {
|
|
35
35
|
templateType?: GlobalSwicoConfigType['template'];
|
|
36
36
|
projectPath: string;
|
|
37
37
|
entryPath: string;
|
|
@@ -43,7 +43,7 @@ export interface GlobalData {
|
|
|
43
43
|
prod: Pick<GlobalSwicoConfigType, 'plugins' | 'console' | 'copy' | 'devtool' | 'router'>;
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
export declare const getProjectConfig: (env:
|
|
46
|
+
export declare const getProjectConfig: (env: GlobalDataType['env']) => Promise<GlobalDataType>;
|
|
47
47
|
export declare const handleLoadingFile: (projectPath: any, replaceIndexText: any) => Promise<any>;
|
|
48
48
|
export declare const handleGlobalStyleFile: (replaceIndexText: any) => any;
|
|
49
49
|
export declare const updateIndexFileText: (envPath: any, newFileText: any) => Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default function (options:
|
|
1
|
+
import { GlobalDataType } from '../main-config';
|
|
2
|
+
export default function (options: GlobalDataType): Promise<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default function ({ projectPath, entryPath, env, customConfig }:
|
|
1
|
+
import { GlobalDataType } from '../main-config';
|
|
2
|
+
export default function ({ projectPath, entryPath, env, customConfig }: GlobalDataType): Promise<{
|
|
3
3
|
entry: string;
|
|
4
4
|
output: {
|
|
5
5
|
path: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default function ({ projectPath, entryPath, env, customConfig }:
|
|
1
|
+
import { GlobalDataType } from '../main-config';
|
|
2
|
+
export default function ({ projectPath, entryPath, env, customConfig }: GlobalDataType): Promise<{
|
|
3
3
|
entry: string;
|
|
4
4
|
output: {
|
|
5
5
|
path: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default function (options:
|
|
1
|
+
import { GlobalDataType } from '../main-config';
|
|
2
|
+
export default function (options: GlobalDataType): Promise<any>;
|