react-creative-btns
v0.0.1
Published
Codrops creative buttons for React!
Downloads
4
Readme
react-creative-btns - Beautiful creative button styles from Codrops ported to React
Check out Codrops - Creative Button Styles for the original buttons.
Basic Usage
Demo: danielyaa5.github.io/react-creative-btns
Right now only Effects 1 has been tested.
Install: npm i -S react-creative-btns
.
Development
- Developing - npm start - Runs the development server at localhost:8080 and use Hot Module Replacement. You can override the default host and port through env (
HOST
,PORT
). - Creating a version - npm version <x.y.z> - Updates /dist and package.json with the new version and create a version tag to Git.
- Publishing a version - npm publish - Pushes a new version to npm and updates the project site.
Documentation Site
The boilerplate includes a GitHub Pages specific portion for setting up a documentation site for the component. The main commands handle with the details for you. Sometimes you might want to generate and deploy it by hand, or just investigate the generated bundle.
- Building - npm run gh-pages - Builds the documentation into
./gh-pages
directory. - Deploying - npm run gh-pages:deploy - Deploys the contents of
./gh-pages
to thegh-pages
branch. GitHub will pick this up automatically. Your site will be available through *.github.io/`. - Generating stats - npm run stats - Generates stats that can be passed to webpack analyse tool. This is useful for investigating what the build consists of.
Testing
The test setup is based on Jest. Code coverage report is generated to coverage/
. The coverage information is also uploaded to codecov.io after a successful Travis build.
- Running tests once - npm test
- Running tests continuously - npm run test:watch
- Running individual tests - npm test -- - Works with
test:watch
too. - Linting - npm run test:lint - Runs ESLint.
Documentation Site
Credits
Survivejs's react-component-boilerplate
License
react-creative-btns is available under MIT. See LICENSE for more details.