mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 19:46:23 +00:00
feat: reuse tasks
This commit is contained in:
parent
baec1f93d0
commit
ce2fd301b4
1 changed files with 29 additions and 7 deletions
|
@ -32,7 +32,7 @@ tasks:
|
||||||
- "env"
|
- "env"
|
||||||
- "credentials"
|
- "credentials"
|
||||||
cmds:
|
cmds:
|
||||||
- "{{.HAINISH}} bundle"
|
- "go-task bundle"
|
||||||
sources:
|
sources:
|
||||||
- "Gemfile"
|
- "Gemfile"
|
||||||
generates:
|
generates:
|
||||||
|
@ -58,9 +58,9 @@ tasks:
|
||||||
cmds:
|
cmds:
|
||||||
- "git lfs fetch"
|
- "git lfs fetch"
|
||||||
- "git lfs checkout"
|
- "git lfs checkout"
|
||||||
- "{{.HAINISH}} RAILS_ENV=production bundle exec rails webpacker:clobber"
|
- "go-task bundle rails -- webpacker:clobber RAILS_ENV=production"
|
||||||
- "{{.HAINISH}} RAILS_ENV=production bundle exec rails assets:precompile"
|
- "go-task bundle rails -- assets:precompile RAILS_ENV=production"
|
||||||
- "{{.HAINISH}} RAILS_ENV=production bundle exec rails assets:clean"
|
- "go-task bundle rails -- assets:clean RAILS_ENV=production"
|
||||||
sources:
|
sources:
|
||||||
- "package.json"
|
- "package.json"
|
||||||
- "yarn.lock"
|
- "yarn.lock"
|
||||||
|
@ -102,7 +102,7 @@ tasks:
|
||||||
deps:
|
deps:
|
||||||
- "database"
|
- "database"
|
||||||
cmds:
|
cmds:
|
||||||
- "{{.HAINISH}} bundle exec rails db:prepare"
|
- "go-task rails -- db:prepare"
|
||||||
serve:
|
serve:
|
||||||
desc: "Run Rails development server"
|
desc: "Run Rails development server"
|
||||||
deps:
|
deps:
|
||||||
|
@ -110,13 +110,35 @@ tasks:
|
||||||
- "gems"
|
- "gems"
|
||||||
cmds:
|
cmds:
|
||||||
- ": == Development server running at https://panel.{{.SUTTY_WITH_PORT}} =="
|
- ": == Development server running at https://panel.{{.SUTTY_WITH_PORT}} =="
|
||||||
- "{{.HAINISH}} bundle exec rails server"
|
- "go-task rails -- server"
|
||||||
status:
|
status:
|
||||||
- "test -f tmp/pids/server.pid"
|
- "test -f tmp/pids/server.pid"
|
||||||
- "pgrep -F tmp/pids/server.pid"
|
- "pgrep -F tmp/pids/server.pid"
|
||||||
|
yarn:
|
||||||
|
desc: "Yarn. Call with: go-task yarn -- arguments"
|
||||||
|
deps:
|
||||||
|
- "node-modules"
|
||||||
|
cmds:
|
||||||
|
- "{{.HAINISH}} yarn {{.CLI_ARGS}}"
|
||||||
|
bundle:
|
||||||
|
desc: "Bundle. Call with: go-task bundle -- arguments"
|
||||||
|
deps:
|
||||||
|
- "gems"
|
||||||
|
cmds:
|
||||||
|
- "{{.HAINISH}} bundle {{.CLI_ARGS}}"
|
||||||
|
rails:
|
||||||
|
desc: "Rails. Call with: go-task rails -- arguments"
|
||||||
|
deps:
|
||||||
|
- "prepare"
|
||||||
|
cmds:
|
||||||
|
- "go-task bundle -- exec rails {{.CLI_ARGS}}"
|
||||||
|
console:
|
||||||
|
desc: "Rails console"
|
||||||
|
cmds:
|
||||||
|
- "go-task rails -- console"
|
||||||
doc:
|
doc:
|
||||||
desc: "Build documentation"
|
desc: "Build documentation"
|
||||||
deps:
|
deps:
|
||||||
- "gems"
|
- "gems"
|
||||||
cmds:
|
cmds:
|
||||||
- "{{.HAINISH}} bundle exec yardoc -o public/doc app lib config db"
|
- "go-task bundle -- exec yardoc -o public/doc app lib config db"
|
||||||
|
|
Loading…
Reference in a new issue