2.1.0 • Published 6 years ago
react-simple-modal-ts v2.1.0
react-simple-modal-ts
A simple Modal Component for react
Usage
npm install react-simple-modal-ts --saveStart coding! package.json and entry files are already set up for you, so don't worry about linking to your main file, typings, etc. Just keep those files with the same name.
Features
Importing library
You can import the generated bundle to use the whole library generated by this starter:
import ReactSimpleModal from 'react-simple-modal-ts'Additionally, you can import the transpiled modules from dist/lib in case you have a modular library:
import something from 'react-simple-modal-ts/dist/lib/something'NPM scripts
npm t: Run test suitenpm start: Runnpm run buildin watch modenpm run test:watch: Run test suite in interactive watch modenpm run test:prod: Run linting and generate coveragenpm run build: Generate bundles and typings, create docsnpm run lint: Lints codenpm run commit: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)
Setup steps
From now on, you'll need to use npm run commit, which is a convenient way to create conventional commits.