ember-decorators-codemod

0.3.1 • Public • Published

ember-decorators-codemod [WIP]

A collection of codemod's for converting class properties to decorated properties.

This codemod is currently a work in progress, so treat it as experimental! If you find a problem, please report it (or better still, fix and pull request :) )

Known Issues

There is currently an issue in larger files where some of the whitespace is being lost. You may need to run your preferred code formatter again after applying this codemod.

Usage

To run a specific codemod from this project, you would run the following:

npx mfeckie/ember-decorators-codemod <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

# or

yarn global add ember-decorators-codemod
ember-decorators-codemod <TRANSFORM NAME> path/of/files/ or/some**/*glob.js

Transforms

Contributing

Pull requests are welcome!

Installation

  • clone the repo
  • change into the repo directory
  • yarn

Running tests

  • yarn test

Update Documentation

  • yarn update-docs

Readme

Keywords

Package Sidebar

Install

npm i ember-decorators-codemod

Weekly Downloads

0

Version

0.3.1

License

MIT

Unpacked Size

277 kB

Total Files

34

Last publish

Collaborators

  • mfeckie