Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
255254eb
Unverified
Commit
255254eb
authored
Sep 28, 2023
by
Athurg Gooth
Committed by
GitHub
Sep 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add some dev tools in the docker compose (#2309)
* Add some dev tools in the docker compose * Merge tsc and lint
parent
c72f221f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
1 deletion
+41
-1
docker-compose.dev.yaml
docker-compose.dev.yaml
+40
-0
package.json
web/package.json
+1
-1
No files found.
docker-compose.dev.yaml
View file @
255254eb
...
...
@@ -34,3 +34,43 @@ services:
volumes
:
-
./web:/work
-
./.air/node_modules/:/work/node_modules/
# Cache for Node Modules
# Services below are used for developers to run once
#
# You can just run `docker compose run --rm SERVICE_NAME` to use
# For example:
# To regenerate typescript code of gRPC proto
# Just run `docker compose run --rm buf`
#
# All of theses services belongs to profile 'tools'
# This will prevent to launch by normally `docker compose up` unexpectly
# Generate typescript code of gRPC proto
buf
:
profiles
:
[
"
tools"
]
image
:
bufbuild/buf
working_dir
:
/work/proto
command
:
generate
volumes
:
-
./proto:/work/proto
-
./web/src/types/:/work/web/src/types/
# Do golang static code check before create PR
golangci-lint
:
profiles
:
[
"
tools"
]
image
:
golangci/golangci-lint:v1.54.2
working_dir
:
/work/
command
:
golangci-lint run -v
volumes
:
-
$HOME/go/pkg/:/go/pkg/
# Cache for go mod shared with the host
-
.:/work/
# Do javascript lint before create PR
lint
:
profiles
:
[
"
tools"
]
image
:
node:18-alpine
working_dir
:
/work
command
:
npm run lint
volumes
:
-
./web:/work
-
./.air/node_modules/:/work/node_modules/
web/package.json
View file @
255254eb
...
...
@@ -3,7 +3,7 @@
"scripts"
:
{
"dev"
:
"vite"
,
"build"
:
"tsc && vite build"
,
"lint"
:
"eslint --ext .js,.ts,.tsx, src"
,
"lint"
:
"
tsc &&
eslint --ext .js,.ts,.tsx, src"
,
"lint-fix"
:
"eslint --ext .js,.ts,.tsx, src --fix"
},
"packageManager"
:
"pnpm@8.7.0"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment