-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/modular app templates #34
base: main
Are you sure you want to change the base?
Conversation
…/modular-app-templates
@@ -11,6 +11,7 @@ export const TEST_INPUT_DIR = 'input'; | |||
export const TEST_OUTPUT_DIR = 'output'; | |||
export const RUN_OUTPUT_DIR = 'output'; // Same as TEST_OUTPUT_DIR | |||
export const CACHE_DIR = 'cache'; | |||
export const PROTECTED_DATA_MOCK_DIR = 'mock/protectedData'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ProtectedData mocks are stored in mock/protectedData
, we may want to store them in cache/mock/protectedData
for lesser visibility?
This is a preliminary refactor to enable supporting multiple protectedData mocks; a default
protectedData mock is provided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work 💪🏻💪🏻
type: 'confirm', | ||
name: 'useRequesterSecret', | ||
message: | ||
'Would you like to use requester secrets inside your iApp? (requester secrets are secrets provisioned by the user)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Would you like to use requester secrets inside your iApp? (requester secrets are secrets provisioned by the user)', | |
'Would you like to use requester secrets inside your iApp? (requester secrets are secrets that will be provided by any users that will run your iapp)', |
type: 'confirm', | ||
name: 'useAppSecret', | ||
message: | ||
'Would you like to use an app secret inside your iApp? (app secret is a secret provisioned by the app owner)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'Would you like to use an app secret inside your iApp? (app secret is a secret provisioned by the app owner)', | |
'Would you like to use an app secret inside your iApp? (app secret is a secret provisioned by the app owner linked to your iapp that will never changed)', |
message: 'What kind of project do you want to init?', | ||
choices: [ | ||
{ | ||
title: 'hello-world', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you think about using PascalCase here ?
title: 'hello-world', | |
title: 'HelloWorld', |
modular template
choose init type (
hello-world
oradvanced
)hello-world
- get started with a simple "hello-world" app (only useargs
)advanced
- pick the features you wantUser choices produce a template with selected features (technically we strip unwanted features from a "full-featured" template)
misc
mock/protectedData
and copied ininput
folder when neededinput
is now cleaned before eachiapp test
iapp.config.json
has been added to ignore files as it may contain some secrets