mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-01 01:21:15 +01:00
265af01f9c
With this change, any developer can simply open a development environment in Gitpod. The environment has docs, web, and binary being built on every code change. Also included the vscode extensions for Go and Docker. Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
28 lines
No EOL
643 B
YAML
28 lines
No EOL
643 B
YAML
tasks:
|
|
- name: docs
|
|
before: make docs-deps
|
|
command: mkdocs serve
|
|
- name: binary
|
|
before: |
|
|
npm install --global nodemon
|
|
make cli-deps-static-sites
|
|
command: |
|
|
nodemon --watch './**/*.go' --ext go --signal SIGTERM --exec "CGO_ENABLED=1 go run main.go serve --listen-http :2586 --debug --base-url $(gp url 2586)"
|
|
openMode: split-right
|
|
- name: web
|
|
before: make web-deps
|
|
command: cd web && npm start
|
|
openMode: split-right
|
|
|
|
vscode:
|
|
extensions:
|
|
- golang.go
|
|
- ms-azuretools.vscode-docker
|
|
|
|
ports:
|
|
- name: docs
|
|
port: 8000
|
|
- name: binary
|
|
port: 2586
|
|
- name: web
|
|
port: 3000 |