1 Star 0 Fork 6

790696/IMES

forked from Gitee 极速下载/IMES 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gulpfile.js 850 Bytes
一键复制 编辑 原始数据 按行查看 历史
jukbot 提交于 2018-06-14 17:41 . fixed build
const gulp = require("gulp");
const del = require("del");
/**
* Builds the Firebase-ready version of the PWA, moving the necessary
* files to the functions folder to be used by PRPL Server
*/
gulp.task("firebase", () => {
// These are the files needed by PRPL Server, that are going to be moved to the functions folder
const filesToMove = ["build/polymer.json", "build/**/index.html"];
// Delete the build folder inside the functions folder
return (
del("functions/build")
.then(
() =>
// Copy the files needed by PRPL Server
new Promise(resolve =>
gulp
.src(filesToMove, { base: "." })
.pipe(gulp.dest("functions"))
.on("end", resolve)
)
)
// Delete them from the original build
.then(() => del(filesToMove))
);
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML/CSS
1
https://gitee.com/ice_frame/IMES.git
[email protected]:ice_frame/IMES.git
ice_frame
IMES
IMES
master

搜索帮助