@edgedev/create-edge-app 1.0.24 → 1.0.25
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/bin/cli.js +8 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -39,8 +39,10 @@ const modifyPackageJson = (repoName) => {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
const repoName = process.argv[2]
|
|
42
|
+
|
|
42
43
|
const gitCheckoutCommand = `git clone --depth 1 https://github.com/Edge-Marketing-and-Design/edgeApp.git ${repoName}`
|
|
43
44
|
const removeGitDirCommand = `rm -rf ${repoName}/.git`
|
|
45
|
+
const updatePackagesCommand = `cd ${repoName} && pnpm up -L`
|
|
44
46
|
const installDependenciesCommand = `cd ${repoName} && pnpm install --force`
|
|
45
47
|
const installFunctionDependenciesCommand = `cd ${repoName}/functions && npm install`
|
|
46
48
|
const cloneFirebaseFrameworkCommand = `cd ${repoName} && git clone https://github.com/Edge-Marketing-and-Design/edgeFirebaseFramework`
|
|
@@ -63,6 +65,12 @@ if (!modifiedPackageJson) {
|
|
|
63
65
|
process.exit(1)
|
|
64
66
|
}
|
|
65
67
|
|
|
68
|
+
console.log(`Updating packages for ${repoName} to their latest versions...`)
|
|
69
|
+
const updatedPackages = runCommand(updatePackagesCommand)
|
|
70
|
+
if (!updatedPackages) {
|
|
71
|
+
process.exit(1)
|
|
72
|
+
}
|
|
73
|
+
|
|
66
74
|
console.log(`Installing dependencies for ${repoName}...`)
|
|
67
75
|
const installedDeps = runCommand(installDependenciesCommand)
|
|
68
76
|
if (!installedDeps) {
|