Init coder environment
This commit is contained in:
parent
86d64df0af
commit
527a3bebcc
6 changed files with 4 additions and 36 deletions
|
@ -1,4 +1,5 @@
|
|||
[build]
|
||||
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"
|
||||
exclude_dir = [".gitlab", "docker", "scripts", "node_modules", "static", "storage", "tmp"]
|
||||
|
|
|
@ -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/
|
|
@ -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
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"license": "Apache-2.0",
|
||||
"scripts": {
|
||||
"tailwind:dev": "npx tailwindcss -i ./web/static/css/tailwind.css -o ./web/static/css/style.css --watch",
|
||||
"tailwind:build": "npx tailwindcss -i ./web/static/css/tailwind.css -o ./web/static/css/style.css --minify"
|
||||
"tailwind:dev": "npx tailwindcss -i ./static/css/tailwind.css -o ./static/css/style.css --watch",
|
||||
"tailwind:build": "npx tailwindcss -i ./static/css/tailwind.css -o ./static/css/style.css --minify"
|
||||
},
|
||||
"dependencies": {
|
||||
"autoprefixer": "^10.0.2",
|
|
@ -1,6 +1,6 @@
|
|||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
content: ["./web/templates/**/*.html"],
|
||||
content: ["./templates/**/*.html"],
|
||||
theme: {
|
||||
container: {
|
||||
center: true
|
Loading…
Reference in a new issue