UNPKG

1.13 kBMarkdownView Raw
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
7The easiest way to integrate Views with your project is to [follow this guide](https://github.com/viewstools/docs/tree/master/UseViews).
8
9If you know what you're doing run it as a standalone command. You can install it with:
10
11```
12npm install --save-dev @viewstools/morph
13```
14
15Then, you can use it with any React or React Native app like this from within
16your project's folder:
17
18```
19# run on the src directory and morph as react-dom
20views-morph src --watch --as react-dom
21
22# run on the current directory and morph as react-native
23views-morph . --watch --as react-dom
24```
25
26Views 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
34Brilliant! Check out [CONTRIBUTING.md](https://github.com/viewstools/morph/blob/master/CONTRIBUTING.md) for a step-by-step guide.
35
36See https://views.tools for more info.
37
38License BSD-Clause-3
39
40by UXtemple