Skip to content

d-band/babel-plugin-class-properties

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-class-properties

NPM version NPM downloads Build Status Coverage Status Dependency Status Greenkeeper badge

Install

$ npm install --save-dev babel-plugin-class-properties

Usage

{
  "plugins": [
    ["babel-plugin-class-properties", {
      "all": true,
      "props": [{
        "key": "name",
        "static": true
      }, {
        "key": "foo",
        "value": "2 + 3"
      }]
    }]
  ]
}

Options

Name Type Default Description
all {Boolean} false Is enabled for all classes
classes {Array[String]} [] Is enabled for specify classes
superClasses {Array[String]} [] Is enabled for specify superClasses
props {Array[Object]} [] Class properties that need to be added

props

  • key: String (required)
  • value: String | Function (default: null)
  • computed: Boolean (default: false)
  • static: Boolean (default: false)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published