update templates
这个提交包含在:
父节点
e3e7f18d4d
当前提交
d47d03c980
18
bin/init.js
18
bin/init.js
@ -83,12 +83,6 @@ function writeGreenlockJs(pkgdir, flags) {
|
||||
// continue
|
||||
}
|
||||
|
||||
if (flags.cluster) {
|
||||
tmpl = tmpl.replace(
|
||||
/options.cluster = false/g,
|
||||
'options.cluster = true'
|
||||
);
|
||||
}
|
||||
if (flags.maintainerEmail) {
|
||||
tmpl = tmpl.replace(
|
||||
/pkg.author/g,
|
||||
@ -117,17 +111,9 @@ function writeServerJs(pkgdir, flags) {
|
||||
}
|
||||
|
||||
if (flags.cluster) {
|
||||
tmpl = tmpl.replace(
|
||||
/options.cluster = false/g,
|
||||
'options.cluster = true'
|
||||
);
|
||||
}
|
||||
if (flags.maintainerEmail) {
|
||||
tmpl = tmpl.replace(
|
||||
/pkg.author/g,
|
||||
JSON.stringify(flags.maintainerEmail)
|
||||
);
|
||||
tmpl = tmpl.replace(/cluster: false/g, 'cluster: true');
|
||||
}
|
||||
|
||||
fs.writeFileSync(path.join(pkgdir, serverJs), tmpl);
|
||||
console.info("created '%s'", serverJs);
|
||||
}
|
||||
|
||||
正在加载...
x
在新工单中引用
屏蔽一个用户