Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SSENSE/flip
🔄 React -> Vue Component transpiler
https://github.com/SSENSE/flip
Last synced: 3 months ago
JSON representation
🔄 React -> Vue Component transpiler
- Host: GitHub
- URL: https://github.com/SSENSE/flip
- Owner: SSENSE
- License: mit
- Created: 2019-02-06T16:52:27.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T09:55:55.000Z (almost 2 years ago)
- Last Synced: 2024-07-18T10:01:55.965Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 8.88 MB
- Stars: 16
- Watchers: 7
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Flip
## 🔄 Transform React to Vue! 🔄Flip is great for teams migrating from react to vue, or projects that want to employ micro front ends using both technologies.
It will consume your React components, and generate out a new directory full of Vue components.
Optionally, you can also roll them into one nice exported bundle per framework (i.e - `bundle.react.js`, `bundle.vue.js`) 📦
_Flip initially started as a fork of [this babel plugin](https://github.com/vueact/babel-plugin-transform-react-to-vue) and still uses a modified version of it under the hood._
## How to use
```
yarn add -D @ssense/flip
```To use, run
```
yarn flip [path-to-your-components]
```This command also accepts an optional `-b` flag, which will rollup bundles of each your react and vue components for distribution. This is how that will look:
```
yarn flip [path-to-your-components] -b
```and it will generate the following folder structure:
```
- dist
| - react
| - button
| - form
| - vue
| - button
| - form
| - bundles
| - bundle.react.js
| - bundle.vue.js
```### Styling
While not necessary, flip is compatible with [styled-components](https://www.styled-components.com/) (it even handles remapping the react/vue styled component import 😎)
## Contributing
Please read [our contribution guide](CONTRIBUTING.md) for details on the development process, and the process for submitting a pull request
With any contribution, you accept all conditions implicitly defined in the [Code of Conduct](CODE_OF_CONDUCT.md).
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) for more details## Authors
Quinn Langille - [email](mailto:[email protected])