@contentful/create-contentful-app 1.14.0 → 1.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +11 -10
  2. package/lib/index.js +1 -3
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -85,18 +85,19 @@ or specify your own template
85
85
  Official Contentful templates are hosted at https://github.com/contentful/apps/tree/master/examples.
86
86
 
87
87
  Arguments:
88
- app-name app name
88
+ app-name app name
89
89
 
90
90
  Options:
91
- --npm use npm
92
- --yarn use Yarn
93
- -js, --javascript use default JavaScript template
94
- -ts, --typescript use default TypeScript template
95
- -e, --example <example-name> bootstrap an example app from https://github.com/contentful/apps/tree/master/examples
96
- -s, --source <url> provide a template by its source repository.
97
- format: URL (HTTPS or SSH) or vendor:user/repo (e.g., github:user/repo)
98
- -a, --actions includes a hosted app action in ts or js template
99
- -h, --help shows all available CLI options
91
+ --npm use npm
92
+ --yarn use Yarn
93
+ -js, --javascript use default JavaScript template
94
+ -ts, --typescript use default TypeScript template
95
+ -e, --example <example-name> bootstrap an example app from https://github.com/contentful/apps/tree/master/examples
96
+ -s, --source <url> provide a template by its source repository.
97
+ format: URL (HTTPS or SSH) or vendor:user/repo (e.g., github:user/repo)
98
+ -a, --actions includes a hosted app action in ts or js template
99
+ -f, --function <function-template-name> include the specified function template
100
+ -h, --help shows all available CLI options
100
101
  ```
101
102
 
102
103
  ### Tracking
package/lib/index.js CHANGED
@@ -113,9 +113,7 @@ function initProject(appName, options) {
113
113
  if (!isInteractive && (0, utils_1.isContentfulTemplate)(templateSource) && normalizedOptions.action) {
114
114
  yield (0, includeAppAction_1.cloneAppAction)(fullAppFolder, !!normalizedOptions.javascript);
115
115
  }
116
- if (!isInteractive &&
117
- (0, utils_1.isContentfulTemplate)(templateSource) &&
118
- normalizedOptions.function) {
116
+ if (!isInteractive && (0, utils_1.isContentfulTemplate)(templateSource) && normalizedOptions.function) {
119
117
  yield (0, includeFunction_1.cloneFunction)(fullAppFolder, !!normalizedOptions.javascript, normalizedOptions.function);
120
118
  }
121
119
  updatePackageName(fullAppFolder);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/create-contentful-app",
3
- "version": "1.14.0",
3
+ "version": "1.15.2",
4
4
  "description": "A template for building Contentful Apps",
5
5
  "keywords": [
6
6
  "contentful",
@@ -81,5 +81,5 @@
81
81
  "sinon-chai": "^3.7.0",
82
82
  "ts-node": "^10.9.1"
83
83
  },
84
- "gitHead": "2f6ce49aba5bb8a8a781b46ea8441b33aa347404"
84
+ "gitHead": "a755d107cec2d496e20f1718567c8a522f0045a8"
85
85
  }