-
Notifications
You must be signed in to change notification settings - Fork 0
/
.amber.yml
34 lines (33 loc) · 971 Bytes
/
.amber.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
type: app
database: pg
language: slang
model: granite
# list of tasks to be run by `amber watch`
watch:
# NOTE: names that match crystal commands are special (e.g. run, spec)
run:
# commands will be joined with && (join them yourself if need || or ;)
build_commands:
- mkdir -p bin
- crystal build ./src/sprite-microservice.cr -o bin/sprite-microservice
run_commands:
- bin/sprite-microservice
include:
- ./config/**/*.cr
- ./config/environments/*.yml
- ./src/**/*.cr
- ./src/**/*.ecr
- ./src/views/**/*.slang
- ./src/locales/*.yml
# exclude: # NOTE simplistic implementation: (1) enumerate all includes and excludes; (2) return (includes - excludes)
# - ./src/some_irrelevant_file.cr
spec:
run_commands:
- AMBER_ENV=test crystal spec
include:
- ./spec/**/*.cr
npm:
build_commands:
- npm install --loglevel=error
run_commands:
- npm run watch