Skip to content

Commit

Permalink
Merge pull request #6 from ev-the-dev/upkeep/github-workflows
Browse files Browse the repository at this point in the history
Upkeep/GitHub workflows
  • Loading branch information
ev-the-dev authored Apr 2, 2024
2 parents 6e5dd51 + 41812cc commit 3ea3031
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 ./...
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
2 changes: 1 addition & 1 deletion cmd/models/questionnaire.model.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (u *UserAnswers) ListEsLintDevDependencies() []Dependency {
},
{
Key: "@ev-the-dev/highway",
Value: "^0.2.0",
Value: "^0.2.2",
},
}

Expand Down
8 changes: 4 additions & 4 deletions cmd/root.cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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("**********************************************")
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/utils/generateTemplates.util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/ehutchllew/template.ts/cmd"
"github.com/ev-the-dev/tmplts/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion tui/wizard.tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3ea3031

Please sign in to comment.