npm.io
3.3.8 • Published 5 years ago

@buffetjs/icons

Licence
MIT
Version
3.3.8
Deps
1
Size
418 kB
Vulns
0
Weekly
0
Stars
538

Buffet.js Icons

Getting Started

Installation

Using yarn

yarn add @buffetjs/icons
# Install the required dependencies
yarn add prop-types react styled-components

or npm

npm install @buffetjs/icons --save
# Install the required dependencies
npm install prop-types react styled-components --save
Contributing

In order to add a new icon, you can design your svg using Sketch or another design toolkit.

Then you need to clean your svg:

npm install -g svgo

svgo my-svg.svg

Finally transform the cleaned svg to a React Component.

Available commands
  • build
    Builds the library for production
  • build:analyze
    Analyse the generated build
  • build:watch
    Whatch the files with webpack
  • buildesm
    Whatch the files with babel
  • create:index
    Create the build/index.js file
  • test
    Runs the entire set of test: lint, style and jest
  • test:jest
    Runs the unit tests
  • testwatch
    Runs the unit tests in watch mode
  • test:lint
    Runs the lint tests
  • testquiet
    Runs the lint tests without displaying the warnings
  • test:style
    Runs the stylelint tests
  • testquiet
    Runs the stylelint tests without displaying the warnings
  • lint:fix
    Fixes the lint

Keywords