1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 02:44:40 +00:00

feat(repo): base taskfile

This commit is contained in:
2022-11-15 07:13:46 +07:00
parent 8d3b3f9fe3
commit 8b24b15df8
7 changed files with 41 additions and 5 deletions

31
Taskfile.yml Normal file
View File

@@ -0,0 +1,31 @@
version: '3'
dotenv: [ '.env' ]
tasks:
make:env:
cmds:
- '[ ! -f .env ] && cp .env.example .env; exit 0'
make:install:
cmds:
- '[ ! -d node_modules ] && npm install; exit 0'
local:run:
ignore_error: true
deps: [ make:env, make:install ]
cmds:
- npm run dev
docker:run:
deps: [ make:env ]
cmds:
- docker-compose -p $APP_NAME up -d
docker:stop:
cmds:
- docker-compose -p $APP_NAME down
docker:stop:force:
cmds:
- docker-compose -p $APP_NAME down -v --remove-orphans