diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 2491abd..d1f0fb2 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,7 +1,7 @@ # This workflow will build a golang project # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go -name: Go +name: CI Checks on: push: @@ -14,12 +14,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.22' - name: Build run: go build -v ./... diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..9653832 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: Deploy + +on: + release: + types: + - "published" + +jobs: + build-and-publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + + - name: Install Dependencies + run: go get . + + - name: Build + run: go build -v ./... -o bin/tmplts diff --git a/README.md b/README.md index ea39eaa..8e2366a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# template.ts +# TmplTS Package to bootstrap TypeScript projects with ESLint, SWC or ESBuild, and Jest configurations. Additionally it will include appropriate scripts and dependencies in the `package.json` file for each generated configuration file. diff --git a/cmd/models/questionnaire.model.go b/cmd/models/questionnaire.model.go index 777cf3a..4dc6a80 100644 --- a/cmd/models/questionnaire.model.go +++ b/cmd/models/questionnaire.model.go @@ -183,7 +183,7 @@ func (u *UserAnswers) ListEsLintDevDependencies() []Dependency { }, { Key: "@ev-the-dev/highway", - Value: "^0.2.0", + Value: "^0.2.2", }, } diff --git a/cmd/root.cmd.go b/cmd/root.cmd.go index a6b28e0..56a8334 100644 --- a/cmd/root.cmd.go +++ b/cmd/root.cmd.go @@ -6,9 +6,9 @@ import ( "os" "path" - "github.com/ehutchllew/template.ts/cmd/models" - "github.com/ehutchllew/template.ts/cmd/utils" - "github.com/ehutchllew/template.ts/tui" + "github.com/ev-the-dev/tmplts/cmd/models" + "github.com/ev-the-dev/tmplts/cmd/utils" + "github.com/ev-the-dev/tmplts/tui" "github.com/spf13/cobra" ) @@ -67,7 +67,7 @@ func init() { func printWelcomeMessage() { fmt.Println("**********************************************") fmt.Println("* *") - fmt.Println("* Welcome to Template.TS! Let's get started. *") + fmt.Println("* Welcome to TmplTS! Let's get started. *") fmt.Println("* *") fmt.Println("**********************************************") } diff --git a/cmd/utils/generateTemplates.util.go b/cmd/utils/generateTemplates.util.go index 6f9ee06..63173cc 100644 --- a/cmd/utils/generateTemplates.util.go +++ b/cmd/utils/generateTemplates.util.go @@ -6,8 +6,8 @@ import ( "sync" "text/template" - "github.com/ehutchllew/template.ts/cmd/models" - ct "github.com/ehutchllew/template.ts/templates" + "github.com/ev-the-dev/tmplts/cmd/models" + ct "github.com/ev-the-dev/tmplts/templates" ) // TODO: If package.json already exists: unmarshal, add these changes, then marshal again. That way we don't overwrite entire files. diff --git a/go.mod b/go.mod index 9ac304d..013d7d6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ -module github.com/ehutchllew/template.ts +module github.com/ev-the-dev/tmplts -go 1.20 +go 1.22 require ( github.com/charmbracelet/bubbles v0.16.1 diff --git a/main.go b/main.go index 6b68f89..eae9901 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,7 @@ package main import ( - "github.com/ehutchllew/template.ts/cmd" + "github.com/ev-the-dev/tmplts/cmd" ) func main() { diff --git a/tui/wizard.tui.go b/tui/wizard.tui.go index 8ea39d1..efcf3c6 100644 --- a/tui/wizard.tui.go +++ b/tui/wizard.tui.go @@ -7,7 +7,7 @@ import ( "github.com/charmbracelet/bubbles/textinput" tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" - "github.com/ehutchllew/template.ts/cmd/models" + "github.com/ev-the-dev/tmplts/cmd/models" ) type WizardAnswers struct {