Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit d4c8526

Browse files
committed
feat(init): prompt for app name
1 parent 5aa320c commit d4c8526

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

generator/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = async (api, options) => {
1313

1414
init({
1515
directory: api.resolve('.'),
16+
appName: options.appName,
1617
customConfig: {
1718
build: null,
1819
tauri: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@vue/cli-shared-utils": "^4.1.1",
1515
"execa": "^3.4.0",
16-
"tauri": "^0.11.0"
16+
"tauri": "^0.11.1"
1717
},
1818
"devDependencies": {
1919
"@vue/cli": "^4.1.1",

prompts.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
module.exports = pkg => [
2+
{
3+
type: 'input',
4+
name: 'appName',
5+
message: 'What should the app name be?',
6+
validate: input => !!input,
7+
default: pkg.name
8+
},
29
{
310
type: 'input',
411
name: 'windowTitle',
512
message: 'What should the window title be?',
613
validate: input => !!input,
7-
default: pkg.name
14+
default: 'Tauri App'
815
}
916
]

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13334,10 +13334,10 @@ tasklist@^3.1.0:
1333413334
pify "^2.2.0"
1333513335
sec "^1.0.0"
1333613336

13337-
tauri@^0.11.0:
13338-
version "0.11.0"
13339-
resolved "https://registry.yarnpkg.com/tauri/-/tauri-0.11.0.tgz#6f62308383086897c601cce391f08ddba3de5d47"
13340-
integrity sha512-2iWw7QCb2/wzZuu4HAPboKb4y158PxnIR9jTLmKFofKn0/uLx20wdUX4fOJg2caT2ahbaT3HQZ0LYD2iYk8vuQ==
13337+
tauri@^0.11.1:
13338+
version "0.11.1"
13339+
resolved "https://registry.yarnpkg.com/tauri/-/tauri-0.11.1.tgz#a49cd1412ad42c810f812942aabd14b85500231a"
13340+
integrity sha512-rcnUBpK4vwfc+O0tQcFNNxd8ItHg0DH7CrtzTlWBukrHw7HxuoOQgzqu+o2+UZNlgL4togVky16UhUEG2Djgrw==
1334113341
dependencies:
1334213342
"@tauri-apps/tauri-inliner" "1.14.1"
1334313343
"@tauri-apps/toml" "2.2.4"

0 commit comments

Comments
 (0)