0.10.3 • Published 4 years ago

@bilalvis01/bs-material-ui-icons v0.10.3

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

bs-material-ui-icons

Reason bindings for material ui icons.

Status

This package is still under active development.

Installation

npm install --save-dev @bilalvis01/bs-material-ui-icons

Add a script to your package.json.

{
  "scripts" {
    "build-icons": "bs-mui-icons --build"
  }
}

note: @material-ui/core >= 4.5.0, @material-ui/icons >= 4.5.0 and reason-react >= 0.7.0 are peer depencencies.

Usage

Create bsmuiicons.config.js in your project directory.

// bsmuiicons.config.js
module.exports = {
  icons = [
    'Menu',
    'Search',
  ]
}

Run the command below in your project directory.

$ npm run build-icons

If everything went right, the icons (with all theme: Filled, Outlined, Rounded, TwoTone, Sharp) will be generated in mui-icons folder in your project directory.

Finally, don't forget to update your bsconfig.json if necessary.

Configuration

FieldsDescriptionTypeDefault
iconsList of generated icons.'all' | array(materialIcons)'all'
outputDirThe location of the generated icons.string'./mui-icons'

note: set icons value to 'all' is discouraged because the number of the generated icons are more than 5000 and it may affect to your build performance.

Options

--build

Pass this flag when you want to build your icons.

Documentation

WIP

0.10.3

4 years ago

0.10.2

4 years ago

0.10.1

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago