Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brianegan/rxdart_codemod
A collection of codemods to upgrade your RxDart code from one version to the next
https://github.com/brianegan/rxdart_codemod
Last synced: 21 days ago
JSON representation
A collection of codemods to upgrade your RxDart code from one version to the next
- Host: GitHub
- URL: https://github.com/brianegan/rxdart_codemod
- Owner: brianegan
- License: mit
- Created: 2019-11-26T22:18:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-28T13:15:28.000Z (almost 5 years ago)
- Last Synced: 2024-10-08T08:09:23.473Z (about 1 month ago)
- Language: Dart
- Size: 25.4 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-codemods - rxdart_codemod - A collection of codemods to upgrade your RxDart code from one version to the next. (Misc / ant-design)
README
# rxdart_codemod
[![Build Status](https://api.travis-ci.org/brianegan/rxdart_codemod.svg?branch=master)](https://travis-ci.org/brianegan/rxdart_codemod)
[![codecov](https://codecov.io/gh/brianegan/rxdart_codemod/branch/master/graph/badge.svg)](https://codecov.io/gh/brianegan/rxdart_codemod)A utility for updating RxDart code from 0.22.x to 0.23.x.
RxDart 0.23.x removes the Observable class by taking advantage of extension
methods. This change requires many small refactors, mostly around calling
slightly different constructors.This [codemod](https://pub.dev/packages/codemod) runs through your codebase
and performs these refactors so you don't have to!## Installation
`rxdart_codemod` provides an executable via dart global packages.
In your terminal:
```
pub global activate rxdart_codemod
```## Usage
```
cd path/to/your/code
pub global run rxdart_codemod:22_to_23
```## Arguments
```
--[no-]recursive Apply updates to Dart files in the current directory and all subdirectories recursively.
(defaults to on)--[no-]classes Use Stream classes instead of Rx factories. Example: "TimerStream" instead of "Rx.timer"
(defaults to off)-h, --help Prints the help menu
```