better-npm-init
Version:
A better version of npm init, with templates and more. Usage: better-npm-init <template> [--yarn] [--install] [--git] [--yes] [--help]
26 lines (20 loc) • 442 B
JavaScript
const App = require('./platform')
const common = require('./common')
class LinuxApp extends App {
get originalElectronName () {
return 'electron'
}
get newElectronName () {
return common.sanitizeAppName(this.executableName)
}
async create () {
await this.initialize()
await this.renameElectron()
await this.copyExtraResources()
return this.move()
}
}
module.exports = {
App: LinuxApp
}