v4fire-cli

1.0.16 • Public • Published

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.160latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.160
1.0.150
1.0.140
1.0.130
1.0.120
1.0.110
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50

Package Sidebar

Install

npm i v4fire-cli

Weekly Downloads

0

Version

1.0.16

License

MIT

Unpacked Size

45.5 kB

Total Files

48

Last publish

Collaborators

  • xdan