feat(init): prompt for app name

This commit is contained in:
Noah Klayman
2020-08-05 13:37:11 -07:00
parent 5aa320c54b
commit d4c8526105
4 changed files with 14 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ module.exports = async (api, options) => {
init({
directory: api.resolve('.'),
appName: options.appName,
customConfig: {
build: null,
tauri: {

View File

@@ -13,7 +13,7 @@
"dependencies": {
"@vue/cli-shared-utils": "^4.1.1",
"execa": "^3.4.0",
"tauri": "^0.11.0"
"tauri": "^0.11.1"
},
"devDependencies": {
"@vue/cli": "^4.1.1",

View File

@@ -1,9 +1,16 @@
module.exports = pkg => [
{
type: 'input',
name: 'appName',
message: 'What should the app name be?',
validate: input => !!input,
default: pkg.name
},
{
type: 'input',
name: 'windowTitle',
message: 'What should the window title be?',
validate: input => !!input,
default: pkg.name
default: 'Tauri App'
}
]

View File

@@ -13334,10 +13334,10 @@ tasklist@^3.1.0:
pify "^2.2.0"
sec "^1.0.0"
tauri@^0.11.0:
version "0.11.0"
resolved "https://registry.yarnpkg.com/tauri/-/tauri-0.11.0.tgz#6f62308383086897c601cce391f08ddba3de5d47"
integrity sha512-2iWw7QCb2/wzZuu4HAPboKb4y158PxnIR9jTLmKFofKn0/uLx20wdUX4fOJg2caT2ahbaT3HQZ0LYD2iYk8vuQ==
tauri@^0.11.1:
version "0.11.1"
resolved "https://registry.yarnpkg.com/tauri/-/tauri-0.11.1.tgz#a49cd1412ad42c810f812942aabd14b85500231a"
integrity sha512-rcnUBpK4vwfc+O0tQcFNNxd8ItHg0DH7CrtzTlWBukrHw7HxuoOQgzqu+o2+UZNlgL4togVky16UhUEG2Djgrw==
dependencies:
"@tauri-apps/tauri-inliner" "1.14.1"
"@tauri-apps/toml" "2.2.4"