-
Notifications
You must be signed in to change notification settings - Fork 153
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
feat: bump app-script & add add-locations script [EXT-6267] #9586
feat: bump app-script & add add-locations script [EXT-6267] #9586
Conversation
✅ Deploy Preview for ecommerce-app-base-components canceled.
|
@@ -3,7 +3,7 @@ | |||
"build": "contentful-app-scripts build-functions --ci" |
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.
Decided not to add script as I believe the intent with these is that they are merged with another template that has the script
@@ -3,7 +3,7 @@ | |||
"build": "contentful-app-scripts build-functions --ci" |
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.
Decided not to add script as I believe the intent with these is that they are merged with another template that has the script
@@ -3,6 +3,6 @@ | |||
"build": "contentful-app-scripts build-functions --ci" |
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.
Decided not to add script as I believe the intent with these is that they are merged with another template that has the script
@@ -3,7 +3,7 @@ | |||
"build": "contentful-app-scripts build-functions --ci" |
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.
Decided not to add script as I believe the intent with these is that they are merged with another template that has the script
@@ -3,6 +3,6 @@ | |||
"build": "contentful-app-scripts build-functions --ci" |
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.
Decided not to add script as I believe the intent with these is that they are merged with another template that has the script
@@ -3,7 +3,7 @@ | |||
"build": "contentful-app-scripts build-functions --ci" |
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.
Decided not to add script as I believe the intent with these is that they are merged with another template that has the script
@@ -3,7 +3,7 @@ | |||
"build": "contentful-app-scripts build-functions --ci" |
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.
Decided not to add script as I believe the intent with these is that they are merged with another template that has the script
@@ -3,7 +3,7 @@ | |||
"build": "contentful-app-scripts build-functions --ci" |
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.
Decided not to add script as I believe the intent with these is that they are merged with another template that has the script
@@ -3,6 +3,6 @@ | |||
"build": "contentful-app-scripts build-functions --ci" |
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.
Decided not to add script as I believe the intent with these is that they are merged with another template that has the script
@@ -3,7 +3,7 @@ | |||
"build": "contentful-app-scripts build-functions --ci" |
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.
Decided not to add script as I believe the intent with these is that they are merged with another template that has the script
4affc8d
to
a8f20c8
Compare
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.
Looks good! Just need to resolve some merge conflicts. Also do you think it's worth adding a description of this script in the README for any of these examples? Otherwise approving 👍
Let me rebase with your PR and I'll take a peek at those README's and add where it makes sense |
a8f20c8
to
9bc4f3c
Compare
@@ -22,8 +22,13 @@ You will need to set the following environment variables as listed below: | |||
|
|||
It as simple using the CLI command `npm run upload-ci`. This will perform two actions: upload the code, linking it to the app, and then finally activating the code ready for usage in both | |||
|
|||
### Adding locations to an app | |||
|
|||
You can add locations to an existing app using CLI using `npm run add-locations`. This will launch an interactive prompt, allowing you to select locations to add to your app. |
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.
I think this first sentence can be updated to: You can add locations to an existing app using the CLI command npm run add-locations
(this would apply to all the MD changes)
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.
Got it. I updated the create-app-definition MD as well to reflect that sentence structure
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.
⭐
b263ec5
to
7f27a5c
Compare
Purpose
Bump @contentful/app-scripts to ^2.3.0 for all examples
Add a new add-locations interactive script to all examples
Approach
Some of the examples have sub folders for javascript / typescript. For those the script was omitted under the assumption that those package scripts would be merged with another package that has the script.
Testing steps
From CCA I was able to create
npm run create-app-definition
from both foldersnpm run add-locations
from both foldersBreaking Changes
Dependencies and/or References
Deployment