0.1.4 • Published 2 years ago

entertain v0.1.4

Weekly downloads
3
License
MIT
Repository
-
Last release
2 years ago

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.

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

6 years ago

0.0.0

7 years ago