mirror of
https://github.com/TECHNOFAB11/ergogen.git
synced 2025-12-12 16:10:04 +01:00
Template dependency injection
This commit is contained in:
parent
1da40bce6f
commit
886c22937d
12 changed files with 39 additions and 8 deletions
1
test/cli/bad_template/command
Normal file
1
test/cli/bad_template/command
Normal file
|
|
@ -0,0 +1 @@
|
|||
node src/cli.js test/cli/bad_template/input --clean
|
||||
1
test/cli/bad_template/error
Normal file
1
test/cli/bad_template/error
Normal file
|
|
@ -0,0 +1 @@
|
|||
Unknown dependency "nonexistent_require" among the requirements of injection "bad_template"!
|
||||
10
test/cli/bad_template/input/config.yaml
Normal file
10
test/cli/bad_template/input/config.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
points.zones.matrix:
|
||||
outlines:
|
||||
box:
|
||||
- what: rectangle
|
||||
where: true
|
||||
size: 18
|
||||
pcbs:
|
||||
bad_template:
|
||||
outlines.edge.outline: box
|
||||
template: bad_template
|
||||
1
test/cli/bad_template/input/templates/bad_template.js
Normal file
1
test/cli/bad_template/input/templates/bad_template.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
const bad = require('nonexistent_require')
|
||||
Loading…
Add table
Add a link
Reference in a new issue