entertain

0.1.4 • Public • Published

Entertain

Web component visual testing tool. Powered by parcel and pug.

Setup

  1. Install npm i -D entertain
  2. Create a test template, e.g. /test/index.pug
  3. Add script "test": "entertain test/index.pug" in your package.json file
  4. Run the script and open the local server URL to view.

The test template should look like this:

extends ../node_modules/entertain/explorer/base

block title
  | Application Name

block head
  link(rel='stylesheet' href='../node_modules/entertain/explorer/styles.css')
  script(type='module' src='../src/index.js')

block nav
  ul
    +li('first')
    ul
      +li('first/test1')
      +li('first/test2')
    +li('_', 'Back to top')

block page
  //- include examples here

Testing

This package can be tested locally by running npm test at the folder root and it will run a local server using the /test/index.pug template.

Readme

Keywords

none

Package Sidebar

Install

npm i entertain

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

7.16 kB

Total Files

14

Last publish

Collaborators

  • fussy