@contentful/cra-template-create-contentful-app
Advanced tools
Comparing version 0.8.0 to 0.8.1-alpha.0
{ | ||
"name": "@contentful/cra-template-create-contentful-app", | ||
"version": "0.8.0", | ||
"version": "0.8.1-alpha.0+e21e849", | ||
"description": "A template for building Contentful Apps", | ||
@@ -48,3 +48,3 @@ "author": "Contentful GmbH", | ||
}, | ||
"gitHead": "4d52e5f4c3156063e0d6313c571ee9fa363e0a37" | ||
"gitHead": "e21e849484eb909d0108614cebc68caf5202a864" | ||
} |
@@ -20,7 +20,12 @@ { | ||
}, | ||
"devDependencies": { | ||
"@contentful/app-scripts": "^0.5.0" | ||
}, | ||
"scripts": { | ||
"start": "cross-env BROWSER=none react-scripts start" | ||
"start": "cross-env BROWSER=none react-scripts start", | ||
"upload": "contentful-app-scripts upload --bundle-dir ./build", | ||
"upload-ci": "contentful-app-scripts upload --ci --bundle-dir ./build --organization-id $CONTENTFUL_ORG_ID --definition-id $CONTENTFUL_APP_DEF_ID --token $CONTENTFUL_ACCESS_TOKEN" | ||
}, | ||
"homepage": "." | ||
} | ||
} | ||
} |
@@ -23,2 +23,20 @@ This project was bootstrapped with [Create Contentful App](https://github.com/contentful/create-contentful-app). | ||
#### `npm run upload` | ||
Uploads the build folder to contentful and creates a bundle that is automatically activated. | ||
The command guides you through the deployment process and asks for all required arguments. | ||
Read [here](https://www.contentful.com/developers/docs/extensibility/app-framework/create-contentful-app/#deployment) for more information about the deployment process. | ||
#### `npm run upload-ci` | ||
Similar to `npm run upload` it will upload your app to contentful and activate it. The only difference is | ||
that with this command all required arguments are read from the environment variables, for example when you add | ||
the upload command to your CI pipeline. | ||
For this command to work, the following environment variables must be set: | ||
- `CONTENTFUL_ORG_ID` - The ID of your organization | ||
- `CONTENTFUL_APP_DEF_ID` - The ID of the app to which to add the bundle | ||
- `CONTENTFUL_ACCESS_TOKEN` - A personal [access token](https://www.contentful.com/developers/docs/references/content-management-api/#/reference/personal-access-tokens) | ||
## Libraries to use | ||
@@ -25,0 +43,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20858
327
53
1