-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add hosted app actions for sap [EXT-5612] (#8603)
* feat: reorganize app to introduce haa * chore: add more template files to app actions and remove deploy scripts from frontend
- Loading branch information
1 parent
2a71662
commit e33074c
Showing
68 changed files
with
9,629 additions
and
4,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/hydrogen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# SAP App Actions |
Oops, something went wrong.