@ecoacoustics/web-components
TypeScript icon, indicating that this package has built-in type declarations

0.1.1-alpha.3 • Public • Published

Ecoacoustics Web Components

Online deployment of example components

Using this workspace, the src/components directory has been automatically deployed to the following locations

How to use

CDN

You can import web components through the CDN

Script tag snippet:

<script type="module" src="https://esm.run/@ecoacoustics/web-components"></script>

Full page example:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Web Component CDN Example</title>
    <script type="module" src="https://esm.run/@ecoacoustics/web-components"></script>
  </head>

  <body>
    <my-todo-list></my-todo-list>
  </body>
</html>

NPM

You can add the example components used in this repository by using the following command

$ npm i @ecoacoustics/web-components
>

You can then import them into a file using

import * from "@ecoacoustics/web-components";

Contributing

  • Install a recent stable version of Node JS
  • Install pnpm: corepack enable pnpm, followed by corepack use pnpm@latest
  • The install dependencies: pnpm install (this should have happened with the last step)

Then you can run the following commands:

  • pnpm dev to start a development server
  • pnpm build to build the components
  • pnpm test to run the tests

GitHub Releases

You can manually import the example components in this repository using the GitHub releases page

Download the component.js file to use all web components or import a subset of components through the components.zip zip archive.

Readme

Keywords

none

Package Sidebar

Install

npm i @ecoacoustics/web-components

Weekly Downloads

4

Version

0.1.1-alpha.3

License

none

Unpacked Size

925 kB

Total Files

41

Last publish

Collaborators

  • hudson-newey
  • atruskie