Init coder environment

This commit is contained in:
Florian Hoss 2023-10-02 22:35:11 +02:00
parent 86d64df0af
commit 527a3bebcc
6 changed files with 4 additions and 36 deletions

View file

@ -1,4 +1,5 @@
[build] [build]
bin = "tmp/godash" bin = "tmp/godash"
pre_cmd = ["npx tailwindcss -i ./web/static/css/tailwind.css -o ./web/static/css/style.css"]
cmd = "go build -o tmp/godash cmd/godash/godash.go" cmd = "go build -o tmp/godash cmd/godash/godash.go"
exclude_dir = [".gitlab", "docker", "scripts", "node_modules", "static", "storage", "tmp"] exclude_dir = [".gitlab", "docker", "scripts", "node_modules", "static", "storage", "tmp"]

View file

@ -1,16 +0,0 @@
services:
dev:
build:
context: .
dockerfile: ./docker/Dockerfile.dev
args:
- GOLANG_VERSION=${GOLANG_VERSION}
command: air -c .air.toml
environment:
- TZ=Europe/Berlin
- LOG_LEVEL=debug
- TITLE=DEV
ports:
- 4000:4000
volumes:
- ./:/app/

View file

@ -1,17 +0,0 @@
ARG GOLANG_VERSION
FROM golang:${GOLANG_VERSION}-alpine
RUN apk add tzdata
# GoDash
WORKDIR /app
COPY ./go.mod .
COPY ./go.sum .
RUN go mod download
# Air
RUN go install github.com/cosmtrek/air@latest
COPY ./.air.toml .
# Envs
ENV APP_VERSION=v0.0.1-dev
ENV BUILD_TIME=2023-04-05T20:48:07Z

View file

@ -1,8 +1,8 @@
{ {
"license": "Apache-2.0", "license": "Apache-2.0",
"scripts": { "scripts": {
"tailwind:dev": "npx tailwindcss -i ./web/static/css/tailwind.css -o ./web/static/css/style.css --watch", "tailwind:dev": "npx tailwindcss -i ./static/css/tailwind.css -o ./static/css/style.css --watch",
"tailwind:build": "npx tailwindcss -i ./web/static/css/tailwind.css -o ./web/static/css/style.css --minify" "tailwind:build": "npx tailwindcss -i ./static/css/tailwind.css -o ./static/css/style.css --minify"
}, },
"dependencies": { "dependencies": {
"autoprefixer": "^10.0.2", "autoprefixer": "^10.0.2",

View file

@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { module.exports = {
content: ["./web/templates/**/*.html"], content: ["./templates/**/*.html"],
theme: { theme: {
container: { container: {
center: true center: true