Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trepo Web Components

Making genealogy development easier

About

Trepo Web Components are built using v1 Custom Elements and v1 Shadow Dom. Polyfills are available here.

Note: Components target evergreen browsers and are NOT transpiled to es2015 at this time.

Usage

  1. npm install tpo
  2. Include tpo/tpo.js on your page
    <head>
      ...
      <script src="/node_modules/tpo/tpo.js" />
      ...
    </head>
  3. Use tpo components on your page
    <body>
      ...
      <tpo-person node="1234" repo="my/repo"></tpo-person>
      ...
    </body>

Custom builds

$ npm install tpo-[whatever]
$ webpack --module-bind 'html=raw' node_modules/tpo-[whatever]/component.js bundle.js

About

Trepo Web Components

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages