Skip to content

Commit

Permalink
feat: add hosted app actions for sap [EXT-5612] (#8603)
Browse files Browse the repository at this point in the history
* feat: reorganize app to introduce haa

* chore: add more template files to app actions and remove deploy scripts from frontend
  • Loading branch information
whitelisab authored Aug 16, 2024
1 parent ef54dac commit bcec6e5
Show file tree
Hide file tree
Showing 68 changed files with 9,629 additions and 4,906 deletions.
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

0 comments on commit bcec6e5

Please sign in to comment.