[hotfix] Ignore type checking for edge
[platform/framework/web/wrtjs.git] / device_home / node_modules / jake / test / integration / jakelib / publish.jake.js
1 const PROJECT_DIR=process.env.PROJECT_DIR;let fs=require("fs"),{publishTask:publishTask,rmRf:rmRf,mkdirP:mkdirP}=require(`${PROJECT_DIR}/lib/jake`);fs.writeFileSync("package.json",'{"version": "0.0.1"}'),mkdirP("tmp_publish"),fs.writeFileSync("tmp_publish/foo.txt","FOO"),publishTask("zerb",(function(){this.packageFiles.include(["package.json","tmp_publish/**"]),this.publishCmd="node -p -e \"'%filename'\"",this.gitCmd="echo",this.scheduleDelay=0,this._ensureRepoClean=function(){},this._getCurrentBranch=function(){return"v0.0"}})),jake.setTaskTimeout(5e3),jake.Task.publish.on("complete",(function(){rmRf("tmp_publish",{silent:!0}),rmRf("package.json",{silent:!0})}));