Skip to content

Latest commit

 

History

History
85 lines (59 loc) · 2 KB

README.md

File metadata and controls

85 lines (59 loc) · 2 KB

ildsk! 🔥

Logo

Oversætter fra dansk til ildsk og tilbage.

Made with ✨sparkles✨ by maragu.

Getting started

You can start the app with:

make start

If you make style changes, watch the CSS with:

make watch-css

You can run tests and linting with:

make test lint

Enabling TailwindCSS auto-complete in your IDE

TailwindCSS has auto-complete of classnames (and more) through IDE plugins.

After you've installed the TailwindCSS plugin for your IDE, it needs some configuration to work with gomponents. Here's the config for VS Code and JetBrains IDEs:

VSCode

Edit vscode-settings.json and add the following:

{
	"tailwindCSS.includeLanguages": {
		"go": "html",
	},
	"tailwindCSS.experimental.classRegex": [
		["Class(?:es)?[({]([^)}]*)[)}]", "[\"`]([^\"`]*)[\"`]"]
	],
}

See the official plugin page for more info

JetBrains/GoLand

Go to Settings -> Languages & Frameworks -> Style Sheets -> Tailwind CSS and add the following (don't delete the other config):

{
	"includeLanguages": {
		"go": "html"
	},
	"experimental": {
		"classRegex": [
			["Class(?:es)?[({]([^)}]*)[)}]", "[\"`]([^\"`]*)[\"`]"]
		]
	}
}

See the official plugin page for more info

Deploying

The CD workflow automatically builds a multi-platform Docker image and pushes it to the Github container registry GHCR.io, tagged with the commit hash as well as latest.

You can try building the image locally with:

make build-docker

Note that you need the containerd image store enabled for this to work.