create-interval-app
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -93,3 +93,4 @@ "use strict"; | ||
} | ||
console.log(`Creating an Interval app with the ${args.template} template...`); | ||
const langName = args.language === 'javascript' ? 'JavaScript' : 'TypeScript'; | ||
console.log(`Creating a ${langName} Interval app with the ${args.template} template...`); | ||
console.log('Fetching app template...'); | ||
@@ -122,3 +123,7 @@ try { | ||
child_process_1.default.execSync(installCommand, { cwd: args.destination }); | ||
const langName = args.language === 'javascript' ? 'JavaScript' : 'TypeScript'; | ||
// if there's a sample .env file, rename it to .env | ||
try { | ||
child_process_1.default.execSync(`mv .env_sample .env`, { cwd: args.destination }); | ||
} | ||
catch (e) { } | ||
const packageManager = isYarn ? 'yarn' : 'npm'; | ||
@@ -125,0 +130,0 @@ let startCommand = `${packageManager} start`; |
{ | ||
"name": "create-interval-app", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Quickly bootstrap a new Interval project.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -128,4 +128,8 @@ import degit from 'tiged' | ||
console.log(`Creating an Interval app with the ${args.template} template...`) | ||
const langName = args.language === 'javascript' ? 'JavaScript' : 'TypeScript' | ||
console.log( | ||
`Creating a ${langName} Interval app with the ${args.template} template...` | ||
) | ||
console.log('Fetching app template...') | ||
@@ -169,3 +173,6 @@ | ||
const langName = args.language === 'javascript' ? 'JavaScript' : 'TypeScript' | ||
// if there's a sample .env file, rename it to .env | ||
try { | ||
childProcess.execSync(`mv .env_sample .env`, { cwd: args.destination }) | ||
} catch (e) {} | ||
@@ -172,0 +179,0 @@ const packageManager = isYarn ? 'yarn' : 'npm' |
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
12856
411