2.4.0 • Published 3 years ago

@devatpax/web-components v2.4.0

Weekly downloads
14
License
-
Repository
github
Last release
3 years ago

Pax Web Components

Standalone Web Components for Pax, built with Stencil.

  1. Development
    1. Setup
    2. Local Development
      1. Notes on Developing
  2. Publishing
  3. Usage

Development

Setup

  1. Checkout the correct Node version: see .nvmrc
    • Using NVM: nvm use
  2. Install all dependencies: npm install

Local Development

  1. Finish setup.
  2. Start local development: npm run start

Notes on developing

Testing

Visual Regression Testing

  1. Run docker.
  2. Start local development: npm run start
  3. Open a new terminal tab.
  4. Take reference screenshots: npm run test.screenshots.refs
    • Do this only once before making any changes
  5. Take test screenshots: npm run test.screenshots
    • Do this as often as needed during development, but at least once before submitting changes

Publishing

  1. Finish setup.
  2. Update version number in package.json.
  3. Build web components: npm run build
  4. Login to NPM: npm login (if not already logged in)
  5. Publish to NPM: npm publish

Publish to NPM

Usage

  1. Install web components as a dependency: npm install @devatpax/web-components --save
  2. Put the following tags in the head of your index.html
    • <link href="https://use.typekit.net/ydt8vux.css" rel="stylesheet">
    • <link href="node_modules/@devatpax/web-components/dist/pax/pax.css" rel="stylesheet">
    • <script nomodule src="node_modules/@devatpax/web-components/dist/pax.js"></script>
    • <script type="module" src="node_modules/@devatpax/web-components/dist/pax/pax.esm.js"></script>
  3. Then you can use the element anywhere in your template, JSX, html etc
2.4.0

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

4 years ago

0.0.4

4 years ago