@patternfly/pfe-tools

3.0.1 • Public • Published

@patternfly/pfe-tools

Tools and utilities for building PatternFly Elements and other design systems.

Config

Repos using pfe-tools can customize the docs pages, dev server, and custom-elements manifest generator by adding a .pfe.config.json file to the repository root.

See config.ts for info on what that file can contain.

11ty Helpers

test

Helpers for testing web components using web test runner

dev-server

Preset web-dev-server configuration.

Troubleshooting

I ran npm start but get 404 not found when the dev server launches the browser

The dev server config in pfe-tools tries its best to find the root directory of your project, but there are cases where this may not work. If you get a 404 error to index.html,

  1. Confirm that you have an index.html file in your repository root
  2. Set the rootDir option to pfeDevServerConfig, e.g.
    import { pfeDevServerConfig } from '@patternfly/pfe-tools/dev-server/config.js';
    
    export default pfeDevServerConfig({
      rootDir: '.',
    });

Make sure to do the same in web-test-runner.config.js as well, for your unit tests

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i @patternfly/pfe-tools

    Weekly Downloads

    369

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    4.18 MB

    Total Files

    224

    Last publish

    Collaborators

    • adamviktora
    • bennyp
    • dlabaj
    • ausuliv
    • dgutride
    • dlabrecq
    • patternfly-build
    • jeff-phillips-18
    • mturley
    • mwcz
    • kylebuch8
    • evwilkin
    • schulj12
    • nicolethoen
    • heymp
    • zhawkins