@contentful/create-contentful-app 1.4.3 → 1.4.4
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.
- package/lib/index.js +3 -3
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -25,14 +25,14 @@ const utils_1 = require("./utils");
|
|
|
25
25
|
const logger_1 = require("./logger");
|
|
26
26
|
const chalk_1 = __importDefault(require("chalk"));
|
|
27
27
|
const DEFAULT_APP_NAME = 'contentful-app';
|
|
28
|
-
function successMessage(folder) {
|
|
28
|
+
function successMessage(folder, useYarn) {
|
|
29
29
|
console.log(`
|
|
30
30
|
${(0, logger_1.success)('Success!')} Created a new Contentful app in ${(0, logger_1.highlight)((0, tildify_1.default)(folder))}.`);
|
|
31
31
|
(0, logger_1.wrapInBlanks)((0, logger_1.highlight)('---- Next Steps'));
|
|
32
32
|
console.log(`Now kick it off by running
|
|
33
33
|
|
|
34
34
|
${(0, logger_1.code)(`cd ${(0, tildify_1.default)(folder)}`)}
|
|
35
|
-
${(0, logger_1.code)(
|
|
35
|
+
${(0, logger_1.code)(`${useYarn ? 'yarn' : 'npm'} start`)}
|
|
36
36
|
`);
|
|
37
37
|
}
|
|
38
38
|
function updatePackageName(appFolder) {
|
|
@@ -94,7 +94,7 @@ function initProject(appName, options) {
|
|
|
94
94
|
else {
|
|
95
95
|
yield (0, utils_1.exec)('npm', ['install', '--no-audit', '--no-fund'], { cwd: fullAppFolder });
|
|
96
96
|
}
|
|
97
|
-
successMessage(fullAppFolder);
|
|
97
|
+
successMessage(fullAppFolder, useYarn);
|
|
98
98
|
}
|
|
99
99
|
catch (err) {
|
|
100
100
|
(0, logger_1.error)(`Failed to create ${appName}`, err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/create-contentful-app",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "A template for building Contentful Apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contentful",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"@types/tildify": "2.0.2",
|
|
67
67
|
"@types/validate-npm-package-name": "4.0.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "09cf5f70ba90c19e40b62cb0dcea33f14dd713b5"
|
|
70
70
|
}
|