Code scaffolding
It is now conceivable to help bricks developers producing high quality code by implementing a scaffolding feature into the toolbelt.
As an example, it could be useful to provide the following commands :
$ npm run generate widget timechart
$ npm run generate editor rrule
$ npm run generate renderer datetime
$ npm run generate component dropdownmenu
These commands would :
- create the files (
hbs
andjs
) into thesrc
folder, in their apropriate location - fill those files with boilerplate content
- rerun automatically the
compile
script to regenerate bricks entry points - create boilerplate tests for these elements