create-payload-app
Advanced tools
Comparing version 0.3.25 to 0.3.26
@@ -86,3 +86,2 @@ "use strict"; | ||
// Check all common files are create | ||
assertProjectFileExists('.npmrc'); | ||
assertProjectFileExists('.gitignore'); | ||
@@ -89,0 +88,0 @@ assertProjectFileExists('nodemon.json'); |
@@ -48,3 +48,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var commonFilesDir, npmrc, npmrcDest, gi, giDest, packageJsonTemplate, packageJson, nodemon, nodemonDest, readmeTemplate, readme, tsconfig, tsconfigDest, dockerComposeTemplate, dockerCompose, dockerfileTemplate, dockerfile; | ||
var commonFilesDir, gi, giDest, packageJsonTemplate, packageJson, nodemon, nodemonDest, readmeTemplate, readme, tsconfig, tsconfigDest, dockerComposeTemplate, dockerCompose, dockerfileTemplate, dockerfile; | ||
return __generator(this, function (_a) { | ||
@@ -54,9 +54,2 @@ switch (_a.label) { | ||
commonFilesDir = path_1.default.resolve(__dirname, 'common-files'); | ||
npmrc = path_1.default.resolve(commonFilesDir, 'npmrc.template'); | ||
npmrcDest = path_1.default.resolve(projectDir, '.npmrc'); | ||
return [4 /*yield*/, fs_extra_1.default.copy(npmrc, npmrcDest) | ||
// .gitignore | ||
]; | ||
case 1: | ||
_a.sent(); | ||
gi = path_1.default.resolve(commonFilesDir, 'gitignore.template'); | ||
@@ -67,6 +60,6 @@ giDest = path_1.default.resolve(projectDir, '.gitignore'); | ||
]; | ||
case 2: | ||
case 1: | ||
_a.sent(); | ||
return [4 /*yield*/, fs_extra_1.default.readFile(path_1.default.resolve(commonFilesDir, 'package.template.json'), 'utf8')]; | ||
case 3: | ||
case 2: | ||
packageJsonTemplate = _a.sent(); | ||
@@ -81,3 +74,3 @@ packageJson = handlebars_1.default.compile(packageJsonTemplate)({ | ||
]; | ||
case 4: | ||
case 3: | ||
_a.sent(); | ||
@@ -89,6 +82,6 @@ nodemon = path_1.default.resolve(commonFilesDir, 'nodemon.json'); | ||
]; | ||
case 5: | ||
case 4: | ||
_a.sent(); | ||
return [4 /*yield*/, fs_extra_1.default.readFile(path_1.default.resolve(commonFilesDir, 'README.template.md'), 'utf8')]; | ||
case 6: | ||
case 5: | ||
readmeTemplate = _a.sent(); | ||
@@ -102,3 +95,3 @@ readme = handlebars_1.default.compile(readmeTemplate)({ | ||
]; | ||
case 7: | ||
case 6: | ||
_a.sent(); | ||
@@ -110,6 +103,6 @@ tsconfig = path_1.default.resolve(commonFilesDir, 'tsconfig.json'); | ||
]; | ||
case 8: | ||
case 7: | ||
_a.sent(); | ||
return [4 /*yield*/, fs_extra_1.default.readFile(path_1.default.resolve(commonFilesDir, 'docker-compose.template.yml'), 'utf8')]; | ||
case 9: | ||
case 8: | ||
dockerComposeTemplate = _a.sent(); | ||
@@ -122,6 +115,6 @@ dockerCompose = handlebars_1.default.compile(dockerComposeTemplate)(packageManager === 'yarn' | ||
]; | ||
case 10: | ||
case 9: | ||
_a.sent(); | ||
return [4 /*yield*/, fs_extra_1.default.readFile(path_1.default.resolve(commonFilesDir, 'Dockerfile.template'), 'utf8')]; | ||
case 11: | ||
case 10: | ||
dockerfileTemplate = _a.sent(); | ||
@@ -132,3 +125,3 @@ dockerfile = handlebars_1.default.compile(dockerfileTemplate)(packageManager === 'yarn' | ||
return [4 /*yield*/, fs_extra_1.default.writeFile(path_1.default.resolve(projectDir, 'Dockerfile'), dockerfile)]; | ||
case 12: | ||
case 11: | ||
_a.sent(); | ||
@@ -135,0 +128,0 @@ return [2 /*return*/]; |
@@ -40,3 +40,3 @@ { | ||
}, | ||
"version": "0.3.25", | ||
"version": "0.3.26", | ||
"devDependencies": { | ||
@@ -43,0 +43,0 @@ "@types/command-exists": "^1.2.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
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
85199
39
1668