Skip to content

Commit

Permalink
moved getResolver to ultis
Browse files Browse the repository at this point in the history
  • Loading branch information
zoey-kaiser committed Mar 29, 2024
1 parent 8b69a86 commit 43d72e1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,24 @@ const main = async () => {
await wrapInSpinner("Adding Nuxt modules", addModules, preferences, template.dir)
}

// 3. Initialize git
// 3. Add Linter

// 4. Initialize git
if (preferences.runGitInit) {
await wrapInSpinner("Running `git init`", initGit, template.dir)
}

// 4. Add CI
// 5. Add CI
if (preferences.addCi === "github") {
await wrapInSpinner("Adding CI template", addCi, preferences, template.dir)
}

// 5. Run install
// 6. Run install
if (preferences.runInstall) {
await wrapInSpinner(`Running \`${getUserPkgManager()} install\``, npmInstall, template.dir)
}

// 6. Write readme
// 7. Write readme
await wrapInSpinner("Adding README", addReadme, preferences, template.dir)

sayGoodbye(preferences)
Expand Down
2 changes: 1 addition & 1 deletion src/steps/2.addModules/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getResolver } from "../../getResolver"
import { getResolver } from "../../utils/getResolver"
import { Preferences } from "../../prompts"
import { File, moduleConfigs, Modules } from "./moduleConfigs"
import { addPackageDependencies, Dependency } from "../../utils/addPackageDependency"
Expand Down
2 changes: 1 addition & 1 deletion src/steps/4.addCi.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mkdir, writeFile } from "node:fs/promises"
import { getResolver } from "../getResolver"
import { getResolver } from "../utils/getResolver"
import { Preferences } from "../prompts"

const GITHUB_ACTIONS_TEMPLATE = `
Expand Down
2 changes: 1 addition & 1 deletion src/steps/6.addReadme.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { writeFile } from "node:fs/promises"
import { getResolver } from "../getResolver"
import { getResolver } from "../utils/getResolver"
import { Preferences } from "../prompts"
import { getUserPkgManager } from "../utils/getUserPkgManager"
import { moduleConfigs, Modules } from "./2.addModules/moduleConfigs"
Expand Down
File renamed without changes.

0 comments on commit 43d72e1

Please sign in to comment.