views-morph
Version:
Views language morpher
49 lines (33 loc) • 1.15 kB
Markdown
# Views Tools language morpher
*IMPORTANT: We've moved Views Tools morpher to [/morph](https://www.npmjs.com/package/@viewstools/morph).*
Install the new package with:
```
yarn add --dev /morph
```
Uninstall the old package with:
```
yarn remove views-morph
```
[Looking for Views Tools docs?](https://github.com/viewstools/docs)
The easiest way to integrate Views with your project is to run it as a
standalone command. You can install it with:
```
npm install --save-dev views-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.
See https://views.tools for more info.
License BSD-Clause-3
by UXtemple