web-illinois / toolkit-builder-3

New Toolkit Builder
0 stars 0 forks source link

Local builds may fail with partial components list #14

Closed areynold closed 1 day ago

areynold commented 2 weeks ago

While testing a component's builder file, toolkit-builder threw the following errors on build:

$ npm run build

> il-toolkit-builder@1.0.0 build
> gulp && eleventy

[15:15:43] Using gulpfile [...]\toolkit-builder-3\gulpfile.js
...
[15:15:43] 'array-component-versions' errored after 5.81 ms
[15:15:43] Error: File not found with singular glob: [...]/toolkit-builder-3/site/array/componentVersionPartial.txt (if this was purposeful, use `allowEmpty` option)
...
[15:23:24] 'array-components' errored after 2.6 ms
[15:23:24] Error: File not found with singular glob: [...]/toolkit-builder-3/site/array/componentPartial.txt (if this was purposeful, use `allowEmpty` option)
areynold commented 2 weeks ago

@bryanjonker-illinois it looks like I found this while you were adding the instructions for imported_json. Feel free to disregard.

As an alternative, it might be nice to have the gulp task test for empty directories in imported_json, and toss a meaningful message to the terminal. ("Copy your builder files" or somesuch.) Let me know if you'd rather go that route, and I will update my PR.