26 Star 249 Fork 80

FormCreate/form-create-designer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gulpfile.js 471 Bytes
一键复制 编辑 原始数据 按行查看 历史
FormCreate 提交于 2023-01-16 16:13 . cli: 多语言打包
const gulp = require('gulp');
const execa = require('execa');
const fs = require('fs');
gulp.task('default', async function (cb) {
await execa('node_modules/.bin/rimraf', ['locale']);
fs.readdirSync('src/locale').forEach(async function (file) {
const res = /^(.*)\.js$/.exec(file);
if (res) {
await execa('./node_modules/.bin/vite', ['build', '--config', './vite.config.locale.js', '-m', res[1]]);
}
cb();
});
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/xaboy/form-create-designer.git
git@gitee.com:xaboy/form-create-designer.git
xaboy
form-create-designer
form-create-designer
next

搜索帮助

344bd9b3 5694891 D2dac590 5694891