Skip to content

Commit

Permalink
docs: mention dev env setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Mar 24, 2024
1 parent 741686e commit 4beac63
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ go.work*
web/static/export/*
*_templ*
build/
id_rsa*
id_rsa*
cover.out
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"go.testFlags": [
"-v"
],
"go.testEnvVars": {
"FLDARKSTAT_FREELANCER_FOLDER": "/home/naa/windows10shared/Discovery/DiscoveryFreelancer",
"DARKSTAT_LOG_LEVEL": "DEBUG",
},
"editor.formatOnSave": true,
"terminal.integrated.env.linux": {
"FLDARKSTAT_FREELANCER_FOLDER": "/home/naa/windows10shared/Discovery/DiscoveryFreelancer",
"DARKSTAT_LOG_LEVEL": "DEBUG",
}
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Description

flstat on online-web version to browse game data for game Freelancer.

# dev env setup

- check [env environment to set](.vscode/settings.json)
- check [commands to run](Taskfile.yml)

11 changes: 10 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ version: '3'
tasks:
test:
cmds:
- go test ./... {{.CLI_ARGS}}
- go test ./... -coverprofile=cover.out {{.CLI_ARGS}}
vars:
PWD:
sh: echo '$(pwd)'

test:cover:
cmds:
- go tool cover -html=cover.out

test:cover:total:
cmds:
- task: test
- go tool cover -func cover.out

build:
cmds:
- templ generate
Expand Down

0 comments on commit 4beac63

Please sign in to comment.