Tools for creating V4Fire blocks and pages from CLI
npm install v4fire-cli``bash`
v4fire -h
TBD
TBD
`bash`
v4fire make-test src/base/b-slider
You can generate test files for both component and module.
The tool also will take care of updating demo-page
dependencies and adding new test cases to test cases file.
For both component and module the tool generates test/index.js file
that performs basic test setup and executes simple test.
In case of _module_ test, the tool relies on b-dummy component
designed specifically for testing purposes.
#### Runners
You can specify which runners you want to be included in test directory. By default, there are no runners
and all test code locates in the test/index.js file. So if you'd like to have different runners for your test cases,
you can specify them just after the path to module or component being tested.
`bash`
v4fire make-test src/base/b-slider analytics render events
For each specified runner the tool will create test/runner/runner-name file. Here is the example
of runner template for a module.
In this case generated test/index.js` file will include only test setup and all test evaluation code will be moved to runners.