Skip to content

Commit

Permalink
update - skeet create cmd fix #192
Browse files Browse the repository at this point in the history
  • Loading branch information
POPPIN-FUMI committed Nov 14, 2023
1 parent f9929d1 commit 232d9da
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/cli/create/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ export const skeetCreate = async (appName: string, template: string) => {

export const generateInitFiles = async (appName: string, template: string) => {
const spinner = await Logger.syncSpinner('Generating init files...')
// const tsconfigJson = await fileDataOf.tsconfigJson(appName)
// writeFileSync(
// tsconfigJson.filePath,
// JSON.stringify(tsconfigJson.body, null, 2)
// )
await initPackageJson(appName)
if (template === SkeetTemplate.ExpoFirestore) {
await initAppJson(appName)
Expand All @@ -108,36 +103,17 @@ export const generateInitFiles = async (appName: string, template: string) => {
await addAppNameToSkeetOptions(appName, DEFAULT_FUNCTION_NAME)
}

const eslintrcJson = await fileDataOf.eslintrcJson(appName, template)
writeFileSync(
eslintrcJson.filePath,
JSON.stringify(eslintrcJson.body, null, 2),
)

const eslintignore = await fileDataOf.eslintignore(appName, template)
writeFileSync(eslintignore.filePath, eslintignore.body)

const firebaserc = await fileDataOf.firebaserc(appName)
writeFileSync(firebaserc.filePath, firebaserc.body)

const firestoreIndexesJson = await fileDataOf.firestoreIndexesJson(appName)
writeFileSync(firestoreIndexesJson.filePath, firestoreIndexesJson.body)

// Generate firestore.rules
// const firestoreRules = await fileDataOf.firestoreRules(appName)
// writeFileSync(firestoreRules.filePath, firestoreRules.body)

const prettierrc = await fileDataOf.prettierrc(appName)
writeFileSync(prettierrc.filePath, JSON.stringify(prettierrc.body, null, 2))
const skeetCloudConfigGen = await fileDataOf.skeetCloudConfigGen(
appName,
template,
)
writeFileSync(skeetCloudConfigGen.filePath, skeetCloudConfigGen.body)
const prettierignore = await fileDataOf.prettierignore(appName, template)
writeFileSync(prettierignore.filePath, prettierignore.body)
const gitignore = await fileDataOf.gitignore(appName, template)
writeFileSync(gitignore.filePath, gitignore.body)
spinner.stop()
}

Expand Down

0 comments on commit 232d9da

Please sign in to comment.