https://github.com/viewstools/morph
Views Tools morpher
https://github.com/viewstools/morph
Last synced: 10 months ago
JSON representation
Views Tools morpher
- Host: GitHub
- URL: https://github.com/viewstools/morph
- Owner: viewstools
- Created: 2017-04-27T14:30:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T04:50:36.000Z (over 3 years ago)
- Last Synced: 2025-08-08T23:54:49.541Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 6.65 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Views Tools language morpher
[](https://www.npmjs.com/package/@viewstools/morph)
[Looking for Views Tools docs?](https://github.com/viewstools/docs)
The easiest way to integrate Views with your project is to [follow this guide](https://github.com/viewstools/docs/tree/master/UseViews).
If you know what you're doing run it as a standalone command. You can install it with:
```
npm install --save-dev @viewstools/morph
```
Then, you can use it with any React or React Native app like this from within
your project's folder:
```
# run on the src directory and morph as react-dom
views-morph src --watch --as react-dom
# run on the current directory and morph as react-native
views-morph . --watch --as react-dom
```
Views morphs `.view` files into `.view.js`. You may want to add those to `.gitignore`:
```
**/*.view.js
```
## Want to contribute?
Brilliant! Check out [CONTRIBUTING.md](https://github.com/viewstools/morph/blob/master/CONTRIBUTING.md) for a step-by-step guide.
Licence MIT