mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-10-13 10:12:10 +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';
|
||||
|
||||
export default defineConfig({
|
||||
@ -34,5 +35,7 @@ export default defineConfig({
|
||||
dts: true,
|
||||
shims: true,
|
||||
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';
|
||||
|
||||
export default defineConfig({
|
||||
@ -8,6 +9,8 @@ export default defineConfig({
|
||||
dts: false,
|
||||
shims: true,
|
||||
outExtension: () => ({ js: '.mjs' }),
|
||||
onSuccess: 'cp public/* dist/',
|
||||
onSuccess() {
|
||||
copySync('public', 'dist');
|
||||
},
|
||||
format: ['esm'],
|
||||
});
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { copySync } from 'fs-extra/esm';
|
||||
import { defineConfig } from 'tsup';
|
||||
|
||||
export default defineConfig({
|
||||
@ -8,6 +9,7 @@ export default defineConfig({
|
||||
dts: false,
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
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';
|
||||
|
||||
export default defineConfig({
|
||||
@ -8,6 +9,7 @@ export default defineConfig({
|
||||
dts: false,
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
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';
|
||||
|
||||
export default defineConfig({
|
||||
@ -8,6 +9,7 @@ export default defineConfig({
|
||||
dts: false,
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
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';
|
||||
|
||||
export default defineConfig({
|
||||
@ -8,6 +9,7 @@ export default defineConfig({
|
||||
dts: false,
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
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';
|
||||
|
||||
export default defineConfig({
|
||||
@ -9,5 +10,7 @@ export default defineConfig({
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
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';
|
||||
|
||||
export default defineConfig({
|
||||
@ -8,6 +9,7 @@ export default defineConfig({
|
||||
dts: false,
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
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';
|
||||
|
||||
export default defineConfig({
|
||||
@ -8,6 +9,7 @@ export default defineConfig({
|
||||
dts: false,
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
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';
|
||||
|
||||
export default defineConfig({
|
||||
@ -8,6 +9,7 @@ export default defineConfig({
|
||||
dts: false,
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
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';
|
||||
|
||||
export default defineConfig({
|
||||
@ -8,6 +9,7 @@ export default defineConfig({
|
||||
dts: false,
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
outExtension: () => ({ js: '.mjs' }),
|
||||
onSuccess: 'cp -r src/runtime dist',
|
||||
onSuccess() {
|
||||
copySync('src/runtime', 'dist/runtime');
|
||||
},
|
||||
});
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>webpack - micro - index</div>
|
||||
<div>Fes4.x webpack - micro - index</div>
|
||||
</template>
|
||||
|
||||
<config>
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { copySync } from 'fs-extra/esm';
|
||||
import { defineConfig } from 'tsup';
|
||||
|
||||
export default defineConfig({
|
||||
@ -13,5 +14,8 @@ export default defineConfig({
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
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';
|
||||
|
||||
export default defineConfig({
|
||||
@ -8,6 +9,7 @@ export default defineConfig({
|
||||
dts: false,
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
outExtension: () => ({ js: '.mjs' }),
|
||||
onSuccess: 'cp -r src/template dist',
|
||||
onSuccess() {
|
||||
copySync('src/template', 'dist/template');
|
||||
},
|
||||
});
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { copySync } from 'fs-extra/esm';
|
||||
import { defineConfig } from 'tsup';
|
||||
|
||||
export default defineConfig({
|
||||
@ -8,6 +9,7 @@ export default defineConfig({
|
||||
dts: false,
|
||||
shims: true,
|
||||
format: ['esm'],
|
||||
outExtension: () => ({ js: '.mjs' }),
|
||||
onSuccess: 'cp -r src/runtime dist',
|
||||
onSuccess() {
|
||||
copySync('src/runtime', 'dist/runtime');
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user