You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+28-29Lines changed: 28 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,7 @@ We will re-iterate these guidelines as the project matures.
13
13
# Development setup
14
14
You will need Node.js installed, as well as Nativescript
15
15
16
-
Please make sure you are using Nativescript 3.0 (3.0.0-rc.2)
17
-
18
-
[Here is a guide to upgrade](https://www.nativescript.org/blog/nativescript-3.0-release-candidate-available-today)
16
+
Please make sure you are using Nativescript 3.x
19
17
20
18
After cloning the repo, run:
21
19
@@ -32,44 +30,45 @@ $ npm run dev
32
30
33
31
# Testing with the sample application
34
32
35
-
To test out changes, you will have to link `nativescript-vue` via npm's `link feature`:
36
-
37
-
Inside the `nativescript-vue` folder run:
38
-
39
-
`npm link`
33
+
First, **[link](https://docs.npmjs.com/cli/link) the development version** to make it available globally.
40
34
41
-
This will create a symbolic link in your global node_modules folder, pointing to this location
35
+
```
36
+
cd nativescript-vue
37
+
npm link
38
+
```
42
39
43
-
And then you will have to go into the `samples` folder and run:
40
+
This will create a symbolic link in your global `node_modules` folder, pointing to this location.
44
41
45
-
`npm link nativescript-vue`
42
+
Then, **run the sample app** after linking it to the development code.
46
43
47
-
Note: You only need to run this once
44
+
```
45
+
cd samples
46
+
npm link nativescript-vue
47
+
```
48
48
49
-
If all went well, `node_modules/nativescript-vue` should be a link to your global `node_modules/nativescript` folder, which is is also a link to the actual package.
49
+
If all went well, `samples/node_modules/nativescript-vue` should be a link to your global `node_modules/nativescript` folder, which is is also a link to the actual package.
50
50
51
-
Finally, you can run the application via:
52
-
`tns run android`
51
+
Finally, run the application :
53
52
54
-
If you want to reload the application, every time the `nativescript-vue` module changes, use the `--syncAllFiles` option:
53
+
```
54
+
npm install
55
+
tns run android --syncAllFiles
56
+
```
55
57
56
-
`tns run android --syncAllFiles`
58
+
The `--syncAllFiles` option reloads the application every time the `nativescript-vue` module changes.
57
59
58
60
# Project Structure
59
61
60
62
-`dist`: Directory for the bundled code
61
-
-`nativescript-vue`: This folder is the root of the module.
62
-
-`index.js`: Entry file for the rollup build
63
-
-`rollup.config.js`: rollup config for the build
64
-
-`platform/nativescript`: Contains `nativescript` specific platform code
65
-
-`compiler`: This is where template compilation logic will go (vue template -> render function)
66
-
-`renderer`: The renderer that handles rendering vdom into actual elements in {N}
67
-
-`runtime`: {N} specific Vue backend
68
-
-`util`: Utilities
69
-
-`element-registry.js`: Registry of supported elements
70
-
-`framework.js`: Entry file for the platform
71
-
72
-
-`vue-sample`: Sample {N} application for testing
63
+
-`platform/nativescript`: Contains `nativescript` specific platform code
64
+
-`compiler`: This is where template compilation logic will go (vue template -> render function)
65
+
-`renderer`: The renderer that handles rendering vdom into actual elements in {N}
66
+
-`runtime`: {N} specific Vue backend
67
+
-`util`: Utilities
68
+
-`element-registry.js`: Registry of supported elements
Copy file name to clipboardExpand all lines: README.md
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,3 +11,29 @@ This project is in its very early stages, so please don't try to use it for any
11
11
If you feel like contributing to this project, that’s awesome! Start by reading [this repo’s `CONTRIBUTING.MD`](https://github.com/rigor789/nativescript-vue/blob/master/CONTRIBUTING.md) file for details on the required development setup, how to send pull requests, and how to run this repo’s sample app.
12
12
13
13
If you’d like to get involved with making Vue integration for NativeScript happen, join us in the #vue channel on the [NativeScript community Slack](http://tinyurl.com/nativescriptSlack).
14
+
15
+
## Using other plugins
16
+
Plugins work as in any other NativeScript app, but you may wonder how UI plugin would work with Vue.
17
+
18
+
UI plugins work almost identical to how you'd use a NativeScript UI plugin in an Angular app. For instance consider this example usage of [nativescript-gradient](https://github.com/EddyVerbruggen/nativescript-gradient) which is used in the [listview sample](samples/app/app-with-list-view.js):
19
+
20
+
Install the plugin by running this command in the samples folder:
21
+
22
+
```sh
23
+
tns plugin add nativescript-gradient
24
+
```
25
+
26
+
Open your vue file and right after the imports at the top, do:
0 commit comments