-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: reorganize common parameters and scripts into utility_scrip…
…ts module
- Loading branch information
1 parent
6805eef
commit 0d94acb
Showing
4 changed files
with
50 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import { Parameter, Script } from './interfaces'; | ||
|
||
// Common parameters available across scripts and modules | ||
export const commonParameters: Parameter[] = [ | ||
{ | ||
key: 'platform', | ||
question: 'Which platform(s) are you targeting?', | ||
type: 'select', | ||
choices: ['ios', 'android', 'web'], | ||
platform: ['android', 'ios', 'web'], | ||
}, | ||
{ | ||
key: 'ensemble_version', | ||
question: 'Which version of ensemble are you using?', | ||
type: 'text', | ||
platform: ['android', 'ios', 'web'], | ||
}, | ||
]; | ||
|
||
// Custom Scripts (standalone Dart scripts) | ||
export const scripts: Script[] = [ | ||
{ | ||
name: 'generateKeystore', | ||
path: 'scripts/generate_keystore.dart', | ||
parameters: [ | ||
{ | ||
key: 'storePassword', | ||
question: 'Please provide the store password: ', | ||
platform: ['android'], | ||
type: 'text', | ||
}, | ||
{ | ||
key: 'keyPassword', | ||
question: 'Please provide the key password: ', | ||
platform: ['android'], | ||
type: 'text', | ||
}, | ||
{ | ||
key: 'keyAlias', | ||
question: 'Please provide the key alias: ', | ||
platform: ['android'], | ||
type: 'text', | ||
}, | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters