@edgedev/create-edge-site 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/bin/cli.js +8 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -45,6 +45,7 @@ const repoName = process.argv[2]
45
45
  const gitCheckoutCommand = `git clone --depth 1 https://github.com/Edge-Marketing-and-Design/edge-site-starter.git ${repoName}`
46
46
  const removeGitDirCommand = `rm -rf ${repoName}/.git`
47
47
  const installDependenciesCommand = `cd ${repoName} && pnpm store prune && pnpm install --force --ignore-scripts=false`
48
+ const initGitCommand = `cd ${repoName} && git init && git add . && git commit -m "Initial commit"`
48
49
 
49
50
  console.log(`Cloning with name ${repoName}...`)
50
51
  const checkedOut = runCommand(gitCheckoutCommand)
@@ -70,5 +71,11 @@ if (!installedDeps) {
70
71
  process.exit(1)
71
72
  }
72
73
 
74
+ console.log(`Initializing new git repo in ${repoName}...`)
75
+ const initializedGit = runCommand(initGitCommand)
76
+ if (!initializedGit) {
77
+ process.exit(1)
78
+ }
79
+
73
80
  console.log(`Successfully created ${repoName}!`)
74
- console.log(`cd into ${repoName} and run 'sh firebase_init.sh' to initialize your firebase project.`)
81
+ console.log(`cd into ${repoName} and run 'pnpm dev'.`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/create-edge-site",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Create Edge Starter Site",
5
5
  "bin": {
6
6
  "create-edge-site": "./bin/cli.js"