@t7/npm-example
v0.0.1
Published
This is a dummy repo, to explain how to publish T7's React packages to NPM.
Downloads
5
Readme
@t7/npm-example
This is a dummy repo, to explain how to publish T7's React packages to NPM.
# Install via NPM.
npm install @t7/npm-example --save
To use the CSS, be sure to import it into your project.
// Example: In a root JS file.
import '@t7/npm-example/dist/index.css'
/* Example: In a root CSS file. */
@import "./node_modules/@t7/npm-example/dist/index.css";
View on NPM:
https://www.npmjs.com/package/@t7/npm-example
Demo page:
https://t7-components.github.io/npm-example/build/
Test coverage:
https://t7-components.github.io/npm-example/coverage/lcov-report/
Component documentation:
▲ NOTE:
All the lines above are typical of what we would expect to have within our "root level" README.md
file. This includes:
- NPM install
- CSS usage
- Demo page link
- Test coverage link
- Individual component docs
For this repo specifically, here are further instructions on how to publish to NPM, and which steps to take in order to run unit tests and generate the demo page…