Skip to content
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

Merged
merged 4 commits into from
Mar 20, 2025

Conversation

BobHemphill76
Copy link
Contributor

@BobHemphill76 BobHemphill76 commented Mar 20, 2025

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

  • Create a example using --example flag
  • Create a template using --function flag
  • npm run create-app-definition from both folders
  • npm run add-locations from both folders

Breaking Changes

Dependencies and/or References

Deployment

Copy link

netlify bot commented Mar 20, 2025

Deploy Preview for ecommerce-app-base-components canceled.

Name Link
🔨 Latest commit 7f27a5c
🔍 Latest deploy log https://app.netlify.com/sites/ecommerce-app-base-components/deploys/67dc6007e1b7260008ac166a

@@ -3,7 +3,7 @@
"build": "contentful-app-scripts build-functions --ci"
Copy link
Contributor Author

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"
Copy link
Contributor Author

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"
Copy link
Contributor Author

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"
Copy link
Contributor Author

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"
Copy link
Contributor Author

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"
Copy link
Contributor Author

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"
Copy link
Contributor Author

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"
Copy link
Contributor Author

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"
Copy link
Contributor Author

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"
Copy link
Contributor Author

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

@BobHemphill76 BobHemphill76 force-pushed the feat/ext-6267/bump-app-scripts-examples branch from 4affc8d to a8f20c8 Compare March 20, 2025 14:14
Copy link
Contributor

@whitelisab whitelisab left a 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 👍

@BobHemphill76
Copy link
Contributor Author

Let me rebase with your PR and I'll take a peek at those README's and add where it makes sense

@BobHemphill76 BobHemphill76 force-pushed the feat/ext-6267/bump-app-scripts-examples branch from a8f20c8 to 9bc4f3c Compare March 20, 2025 14:59
@BobHemphill76 BobHemphill76 requested review from a team as code owners March 20, 2025 15:10
@@ -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.
Copy link
Contributor

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)

Copy link
Contributor Author

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

Copy link
Contributor

@whitelisab whitelisab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BobHemphill76 BobHemphill76 force-pushed the feat/ext-6267/bump-app-scripts-examples branch from b263ec5 to 7f27a5c Compare March 20, 2025 18:35
@BobHemphill76 BobHemphill76 merged commit 6401ebf into master Mar 20, 2025
17 checks passed
@BobHemphill76 BobHemphill76 deleted the feat/ext-6267/bump-app-scripts-examples branch March 20, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants