1.0.16 • Published 4 years ago

v4fire-cli v1.0.16

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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.

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago