@edgedev/create-edge-app 1.1.12 → 1.1.14

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 CHANGED
@@ -38,6 +38,29 @@ const modifyPackageJson = (repoName) => {
38
38
  return true
39
39
  }
40
40
 
41
+ const cleanGitignore = (repoName) => {
42
+ try {
43
+ const gitignorePath = path.join(repoName, '.gitignore')
44
+ const gitignoreData = fs.readFileSync(gitignorePath, 'utf-8')
45
+ const lines = gitignoreData.split('\n')
46
+
47
+ const markerIndex = lines.findIndex(line => line.trim() === '# Remove these after install:')
48
+ if (markerIndex !== -1) {
49
+ const cleanedLines = lines.slice(0, markerIndex)
50
+ fs.writeFileSync(gitignorePath, cleanedLines.join('\n'))
51
+ console.log('.gitignore cleaned successfully')
52
+ }
53
+ else {
54
+ console.log('No cleanup marker found in .gitignore')
55
+ }
56
+ }
57
+ catch (err) {
58
+ console.error('Failed to clean .gitignore', err)
59
+ return false
60
+ }
61
+ return true
62
+ }
63
+
41
64
  const repoName = process.argv[2]
42
65
 
43
66
  const gitCheckoutCommand = `git clone --depth 1 https://github.com/Edge-Marketing-and-Design/edgeApp.git ${repoName}`
@@ -64,6 +87,12 @@ if (!modifiedPackageJson) {
64
87
  process.exit(1)
65
88
  }
66
89
 
90
+ console.log(`Cleaning .gitignore for ${repoName}...`)
91
+ const cleanedGitignore = cleanGitignore(repoName)
92
+ if (!cleanedGitignore) {
93
+ process.exit(1)
94
+ }
95
+
67
96
  console.log(`Installing dependencies for ${repoName}...`)
68
97
  const installedDeps = runCommand(installDependenciesCommand)
69
98
  if (!installedDeps) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/create-edge-app",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "description": "Create Edge Starter App",
5
5
  "bin": {
6
6
  "create-edge-app": "./bin/cli.js"
@@ -56,89 +56,28 @@ const page = computed(() => {
56
56
  <template>
57
57
  <div
58
58
  v-if="edgeGlobal.edgeState.organizationDocPath"
59
- class="w-full max-w-7xl mx-auto bg-white rounded-[9.96px] shadow-md px-6"
60
59
  >
61
60
  <edge-organization-settings
62
61
  v-if="page === 'organization-settings'"
63
62
  :subscribe-options="subscribeOptions"
64
63
  :form-schema="orgSchema"
65
64
  :org-fields="orgFields"
66
- class="bg-white"
67
- >
68
- <template #header>
69
- <Teleport to="#page-header">
70
- <edge-shad-breadcrumbs
71
- :items="[
72
- { text: 'Settings', to: '/app/dashboard/my-profile' },
73
- { text: 'Organization', to: '' },
74
- ]"
75
- />
76
- </Teleport>
77
- </template>
78
- </edge-organization-settings>
65
+ />
79
66
  <edge-my-account
80
67
  v-if="page === 'my-account'"
81
- class="bg-white"
82
- >
83
- <template #header>
84
- <Teleport to="#page-header">
85
- <edge-shad-breadcrumbs
86
- :items="[
87
- { text: 'Settings', to: '/app/dashboard/my-profile' },
88
- { text: 'My Account', to: '' },
89
- ]"
90
- />
91
- </Teleport>
92
- </template>
93
- </edge-my-account>
68
+ />
94
69
  <edge-my-profile
95
70
  v-if="page === 'my-profile'"
96
71
  :form-schema="metaSchema"
97
72
  :meta-fields="metaFields"
98
- class="bg-white"
99
- >
100
- <template #header>
101
- <Teleport to="#page-header">
102
- <edge-shad-breadcrumbs
103
- :items="[
104
- { text: 'Settings', to: '/app/dashboard/my-profile' },
105
- { text: 'My Profile', to: '' },
106
- ]"
107
- />
108
- </Teleport>
109
- </template>
110
- </edge-my-profile>
73
+ />
111
74
  <edge-organization-members
112
75
  v-if="page === 'organization-members'"
113
- class="bg-white"
114
- >
115
- <template #header>
116
- <Teleport to="#page-header">
117
- <edge-shad-breadcrumbs
118
- :items="[
119
- { text: 'Settings', to: '/app/dashboard/my-profile' },
120
- { text: 'Users', to: '' },
121
- ]"
122
- />
123
- </Teleport>
124
- </template>
125
- </edge-organization-members>
76
+ />
126
77
  <edge-my-organizations
127
78
  v-if="page === 'my-organizations'"
128
79
  :registration-code="config.public.registrationCode"
129
- class="bg-white"
130
- >
131
- <template #header>
132
- <Teleport to="#page-header">
133
- <edge-shad-breadcrumbs
134
- :items="[
135
- { text: 'Settings', to: '/app/dashboard/my-profile' },
136
- { text: 'My Organizations', to: '' },
137
- ]"
138
- />
139
- </Teleport>
140
- </template>
141
- </edge-my-organizations>
80
+ />
142
81
  <edge-billing
143
82
  v-if="page === 'subscription'"
144
83
  />