1 | # Views Tools language morpher
|
2 |
|
3 | [![NPM package](https://img.shields.io/npm/v/@viewstools/morph.svg)](https://www.npmjs.com/package/@viewstools/morph)
|
4 |
|
5 | [Looking for Views Tools docs?](https://github.com/viewstools/docs)
|
6 |
|
7 | The easiest way to integrate Views with your project is to [follow this guide](https://github.com/viewstools/docs/tree/master/UseViews).
|
8 |
|
9 | If you know what you're doing run it as a standalone command. You can install it with:
|
10 |
|
11 | ```
|
12 | npm install --save-dev @viewstools/morph
|
13 | ```
|
14 |
|
15 | Then, you can use it with any React or React Native app like this from within
|
16 | your project's folder:
|
17 |
|
18 | ```
|
19 | # run on the src directory and morph as react-dom
|
20 | views-morph src --watch --as react-dom
|
21 |
|
22 | # run on the current directory and morph as react-native
|
23 | views-morph . --watch --as react-dom
|
24 | ```
|
25 |
|
26 | Views morphs `.view` files into `.view.js`. You may want to add those to `.gitignore`:
|
27 |
|
28 | ```
|
29 | **/*.view.js
|
30 | ```
|
31 |
|
32 | ## Want to contribute?
|
33 |
|
34 | Brilliant! Check out [CONTRIBUTING.md](https://github.com/viewstools/morph/blob/master/CONTRIBUTING.md) for a step-by-step guide.
|
35 |
|
36 | See https://views.tools for more info.
|
37 |
|
38 | License BSD-Clause-3
|
39 |
|
40 | by UXtemple
|