@_tc/template-core 0.0.1-bate.2 → 0.0.1-bate.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/app/vite/config/base.d.ts +6 -0
- package/app/vite/config/base.js +0 -1
- package/app/vite/config/data.d.ts +3 -0
- package/app/vite/config/data.js +0 -1
- package/app/vite/config/dev.d.ts +11 -0
- package/app/vite/config/dev.js +0 -1
- package/app/vite/config/prod.d.ts +17 -0
- package/app/vite/config/prod.js +0 -1
- package/app/vite/dev.d.ts +2 -0
- package/app/vite/dev.js +0 -1
- package/app/vite/index.d.ts +1 -0
- package/app/vite/index.js +9 -3
- package/app/vite/prod.d.ts +1 -0
- package/app/vite/prod.js +0 -1
- package/package.json +7 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const pageEntry: Record<string, string>;
|
|
2
|
+
declare const htmlPlugins: object[];
|
|
3
|
+
declare let businessViteConfig: object;
|
|
4
|
+
declare const entryNameToTplName: Record<string, string>;
|
|
5
|
+
declare const sharedAlias: Record<string, string>;
|
|
6
|
+
export { pageEntry, htmlPlugins, entryNameToTplName, sharedAlias, businessViteConfig };
|
package/app/vite/config/base.js
CHANGED
package/app/vite/config/data.js
CHANGED
package/app/vite/config/dev.js
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const prodConfig: {
|
|
2
|
+
build: {
|
|
3
|
+
outDir: string;
|
|
4
|
+
rollupOptions: {
|
|
5
|
+
output: {
|
|
6
|
+
entryFileNames: string;
|
|
7
|
+
chunkFileNames: string;
|
|
8
|
+
assetFileNames: (info?: {
|
|
9
|
+
name?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
}) => "css/[name]_[contenthash:8].[contenthash].bundle.css" | "assets/[name]_[contenthash][extname]";
|
|
12
|
+
manualChunks(id: string): "v" | "ep" | "mmt" | "nm" | "ject";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export { prodConfig };
|
package/app/vite/config/prod.js
CHANGED
package/app/vite/dev.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FEBuild: (env?: string | undefined) => void;
|
package/app/vite/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { buildDev } from "./dev";
|
|
2
|
+
import { buildProd } from "./prod";
|
|
3
|
+
export const FEBuild = (env = process.env._ENV) => {
|
|
4
|
+
if (env === "prod") {
|
|
5
|
+
buildProd();
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
buildDev();
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const buildProd: () => Promise<void>;
|
package/app/vite/prod.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@_tc/template-core",
|
|
3
|
-
"version": "0.0.1-bate.
|
|
3
|
+
"version": "0.0.1-bate.4",
|
|
4
4
|
"description": "A TypeScript Koa framework template - Monorepo root",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
"./vite": {
|
|
9
|
+
"import": "./app/vite/index.js",
|
|
10
|
+
"types": "./app/vite/index.d.ts"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
7
13
|
"dependencies": {
|
|
8
14
|
"ajv": "^8.18.0",
|
|
9
15
|
"glob": "^10.3.10",
|