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: add hosted app actions for sap [EXT-5612] #8603

Merged
merged 2 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 2 additions & 41 deletions apps/sap-commerce-cloud/README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
This project was bootstrapped with [Create Contentful App](https://github.com/contentful/create-contentful-app).
# SAP Commerce Cloud App

## Available Scripts

In the project directory, you can run:

### Install packages

`npm i`

### Set development ENV

Copy the contents of .env.development.sample into a new file called .env.development (calls to SAP will only work from localhost with this added)

#### `npm run start`

Creates or updates your app definition in contentful, and runs the app in development mode.
Open your app to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

#### `npm run build`

Builds the app for production to the `build` folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

## Libraries to use

To make your app look and feel like Contentful use the following libraries:

- [Forma 36](https://f36.contentful.com/) – Contentful's design system
- [Contentful Fields Editors](https://www.contentful.com/developers/docs/extensibility/field-editors/) – Contentful's field editor React components

## Learn More

[Read more](https://www.contentful.com/developers/docs/extensibility/app-framework/create-contentful-app/) and check out the video on how to use the CLI.

Create Contentful App uses [Create React App](https://create-react-app.dev/). You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started) and how to further customize your app.
TODO: fill this out
7 changes: 7 additions & 0 deletions apps/sap-commerce-cloud/app-actions/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
recursive: true
reporter: 'spec'
require:
- 'ts-node/register'
- './test/hooks.ts'
spec:
- 'src/**/*.spec.ts' # the positional arguments!
1 change: 1 addition & 0 deletions apps/sap-commerce-cloud/app-actions/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/hydrogen
1 change: 1 addition & 0 deletions apps/sap-commerce-cloud/app-actions/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# SAP App Actions
Loading