create-prpl
Advanced tools
Comparing version 0.0.7 to 0.0.8
13
index.js
@@ -7,5 +7,6 @@ #!/usr/bin/env node | ||
const starter = 'https://github.com/tyhopp/prpl-starter-minimal.git'; | ||
const repoPath = path.resolve(__dirname, 'prpl-starter-minimal'); | ||
// Clone basic starter | ||
execSync(`git clone ${starter} --depth-1 --single-branch --quiet`, { | ||
execSync(`git clone ${starter} --depth 1 --single-branch --quiet`, { | ||
stdio: [0, 1, 2], | ||
@@ -15,6 +16,12 @@ cwd: path.resolve(__dirname, '') | ||
// Remove remote from starter | ||
execSync(`git remote remove origin`, { | ||
stdio: [0, 1, 2], | ||
cwd: repoPath | ||
}); | ||
// Install dependency | ||
execSync('npm i', { | ||
stdio: [0, 1, 2], | ||
cwd: path.resolve(__dirname, 'prpl-starter-minimal') | ||
cwd: repoPath | ||
}); | ||
@@ -25,3 +32,3 @@ | ||
stdio: [0, 1, 2], | ||
cwd: path.resolve(__dirname, 'prpl-starter-minimal') | ||
cwd: repoPath | ||
}); |
{ | ||
"name": "create-prpl", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Initializer for prpl projects", | ||
@@ -5,0 +5,0 @@ "author": "Ty Hopp (https://tyhopp.com)", |
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
2240
25