James Harton
ef5d6462b9
All checks were successful
continuous-integration/drone/push Build is passing
New factory DSL options: 1. `auto_build` allows you to provide a list of relationships which must also be built when building that factory. 2. `auto_load` allows you to provide a load statement for relationships and calculations that must be loaded when building that factory. Reviewed-on: #83 Co-authored-by: James Harton <james@harton.nz> Co-committed-by: James Harton <james@harton.nz>
27 lines
491 B
Elixir
27 lines
491 B
Elixir
spark_locals_without_parens = [
|
|
after_build: 1,
|
|
after_build: 2,
|
|
attribute: 2,
|
|
attribute: 3,
|
|
auto_build: 1,
|
|
auto_load: 1,
|
|
before_build: 1,
|
|
before_build: 2,
|
|
domain: 1,
|
|
factory: 1,
|
|
factory: 2,
|
|
factory: 3
|
|
]
|
|
|
|
[
|
|
import_deps: [:ash, :spark],
|
|
inputs: [
|
|
"*.{ex,exs}",
|
|
"{config,lib,test}/**/*.{ex,exs}"
|
|
],
|
|
plugins: [Spark.Formatter],
|
|
locals_without_parens: spark_locals_without_parens,
|
|
export: [
|
|
locals_without_parens: spark_locals_without_parens
|
|
]
|
|
]
|