0.0.4 • Published 5 years ago

babel-plugin-react-data-name v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

babel-plugin-react-data-name

Overview

Babel plugin for adding meaningful identifiers to React Components. This allows our components to have a designated attribute for end-to-end integration tests (without having to add them manually).

Installation

This package is available on npm as babel-plugin-react-data-name, and you can find it here.

To install the latest stable version with Yarn:

$ yarn add --dev babel-plugin-react-data-name

Usage

BABEL CONFIG

{
  "env": {
    "development": {
      "plugins": ["react-data-name"]
    }
  }
}

CUSTOM ATTRIBUTE NAME

You can pass custom attribute name with your .bablerc.

{
  "env": {
    "development": {
      "plugins": [["react-data-name", { "property": "data-test" }]]
    }
  }
}

License

MIT

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago