Donation Banner Thermometer
The Internet Archive Donation Banner Thermometer
Installation
yarn add @internetarchive/donation-banner-thermometer
Usage
<script type="module">
import '@internetarchive/donation-banner-thermometer';
</script>
<donation-banner-thermometer
currentAmount="75000" goalAmount="150000">
</donation-banner-thermometer>
Demo
Check out this repo and run:
> yarn install
> yarn run start
Linting with ESLint, Prettier, and Types
To scan the project for linting errors, run
yarn run lint
You can lint with ESLint and Prettier individually as well
yarn run lint:eslint
yarn run lint:prettier
To automatically fix many linting errors, run
yarn run format
You can format using ESLint and Prettier individually as well
yarn run format:eslint
yarn run format:prettier
Testing with Karma
To run the suite of karma tests, run
yarn run test
To run the tests in watch mode (for TDD, for example), run
yarn run test:watch
Tooling configs
For most of the tools, the configuration is in the package.json
to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.
es-dev-server
Local Demo with yarn start
To run a local development server that serves the basic demo located in demo/index.html