v4fire-cli
v1.0.16
Published
Tools for creating V4Fire blocks and pages from CLI
Downloads
23
Readme
WIP V4Fire-cli
Tools for creating V4Fire blocks and pages from CLI
v4fire -h
Usage
Make block
TBD
Rename block
TBD
Make test
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.
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.