mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-10-13 18:22:13 +08:00
chore: 构建兼容 windows
This commit is contained in:
parent
8448e38c37
commit
7c33e3e3ab
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -34,5 +35,7 @@ export default defineConfig({
|
|||||||
dts: true,
|
dts: true,
|
||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
onSuccess: 'cp -r src/plugins/commands/index-default.html dist/plugins/commands/index-default.html',
|
onSuccess() {
|
||||||
|
copySync('src/plugins/commands/index-default.html', 'dist/plugins/commands/index-default.html');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -8,6 +9,8 @@ export default defineConfig({
|
|||||||
dts: false,
|
dts: false,
|
||||||
shims: true,
|
shims: true,
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
outExtension: () => ({ js: '.mjs' }),
|
||||||
onSuccess: 'cp public/* dist/',
|
onSuccess() {
|
||||||
|
copySync('public', 'dist');
|
||||||
|
},
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -8,6 +9,7 @@ export default defineConfig({
|
|||||||
dts: false,
|
dts: false,
|
||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
onSuccess() {
|
||||||
onSuccess: 'cp -r src/runtime dist',
|
copySync('src/runtime', 'dist/runtime');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -8,6 +9,7 @@ export default defineConfig({
|
|||||||
dts: false,
|
dts: false,
|
||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
onSuccess() {
|
||||||
onSuccess: 'cp -r src/runtime dist',
|
copySync('src/runtime', 'dist/runtime');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -8,6 +9,7 @@ export default defineConfig({
|
|||||||
dts: false,
|
dts: false,
|
||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
onSuccess() {
|
||||||
onSuccess: 'cp -r src/runtime dist',
|
copySync('src/runtime', 'dist/runtime');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -8,6 +9,7 @@ export default defineConfig({
|
|||||||
dts: false,
|
dts: false,
|
||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
onSuccess() {
|
||||||
onSuccess: 'cp -r src/runtime dist',
|
copySync('src/runtime', 'dist/runtime');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -9,5 +10,7 @@ export default defineConfig({
|
|||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
outExtension: () => ({ js: '.mjs' }),
|
||||||
onSuccess: 'cp -r src/runtime dist',
|
onSuccess() {
|
||||||
|
copySync('src/runtime', 'dist/runtime');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -8,6 +9,7 @@ export default defineConfig({
|
|||||||
dts: false,
|
dts: false,
|
||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
onSuccess() {
|
||||||
onSuccess: 'cp -r src/runtime dist',
|
copySync('src/runtime', 'dist/runtime');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -8,6 +9,7 @@ export default defineConfig({
|
|||||||
dts: false,
|
dts: false,
|
||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
onSuccess() {
|
||||||
onSuccess: 'cp -r src/runtime dist',
|
copySync('src/runtime', 'dist/runtime');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -8,6 +9,7 @@ export default defineConfig({
|
|||||||
dts: false,
|
dts: false,
|
||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
onSuccess() {
|
||||||
onSuccess: 'cp -r src/runtime dist',
|
copySync('src/runtime', 'dist/runtime');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -8,6 +9,7 @@ export default defineConfig({
|
|||||||
dts: false,
|
dts: false,
|
||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
onSuccess() {
|
||||||
onSuccess: 'cp -r src/runtime dist',
|
copySync('src/runtime', 'dist/runtime');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>webpack - micro - index</div>
|
<div>Fes4.x webpack - micro - index</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<config>
|
<config>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -13,5 +14,8 @@ export default defineConfig({
|
|||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
outExtension: () => ({ js: '.mjs' }),
|
||||||
onSuccess: 'cp -r src/main/runtime dist/main && cp -r src/micro/runtime dist/micro',
|
onSuccess() {
|
||||||
|
copySync('src/main/runtime', 'dist/main/runtime');
|
||||||
|
copySync('src/micro/runtime', 'dist/micro/runtime');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -8,6 +9,7 @@ export default defineConfig({
|
|||||||
dts: false,
|
dts: false,
|
||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
onSuccess() {
|
||||||
onSuccess: 'cp -r src/template dist',
|
copySync('src/template', 'dist/template');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { copySync } from 'fs-extra/esm';
|
||||||
import { defineConfig } from 'tsup';
|
import { defineConfig } from 'tsup';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@ -8,6 +9,7 @@ export default defineConfig({
|
|||||||
dts: false,
|
dts: false,
|
||||||
shims: true,
|
shims: true,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
outExtension: () => ({ js: '.mjs' }),
|
onSuccess() {
|
||||||
onSuccess: 'cp -r src/runtime dist',
|
copySync('src/runtime', 'dist/runtime');
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user