8000 Merge branch 'master' of github.com:rigor789/nativescript-vue · galaxyblur/nativescript-vue@25aa080 · GitHub
[go: up one dir, main page]

Skip to content

Commit 25aa080

Browse files
committed
Merge branch 'master' of github.com:rigor789/nativescript-vue
2 parents 408c51b + 6cce337 commit 25aa080

File tree

1 file changed

+41
-27
lines changed

1 file changed

+41
-27
lines changed

CONTRIBUTING.md

Lines changed: 41 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -30,38 +30,15 @@ After cloning the repo, run:
3030
# Commonly used NPM scripts
3131

3232
```bash
33-
# watch and auto re-build dist/index.js
33+
# watch and auto re-build samples/app/nativescript-vue.js
3434
$ npm run dev
3535
```
3636

37-
# Testing with the sample application
37+
# Testing with the sample application(s)
3838

39-
First, **[link](https://docs.npmjs.com/cli/link) the development version** to make it available globally.
39+
To test the sample applications provided in the repository, you need to `npm run dev` in the root directory. This will watch for changes, and rebuild nativescript-vue, which in dev mode will be generated into the samples/app directory (this has been done to reduce the required steps of linking local packages, which had many issues with the recent releases of npm).
4040

41-
```
42-
cd nativescript-vue
43-
npm link
44-
```
45-
46-
This will create a symbolic link in your global `node_modules` folder, pointing to this location.
47-
48-
Then, **run the sample app** after linking it to the development code.
49-
50-
```
51-
cd samples
52-
npm link nativescript-vue
53-
```
54-
55-
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.
56-
57-
Finally, run the application :
58-
59-
```
60-
npm install
61-
tns run android --syncAllFiles
62-
```
63-
64-
The `--syncAllFiles` option reloads the application every time the `nativescript-vue` module changes.
41+
Next, open up a new terminal window and run `npm run samples`. This will bring up a list of all the available sample applications which you can choose from with your arrow keys. Pressing enter/return will select that sample, and prompt you to choose the platform you'd like to run the sample on. After selecting the platform the application should start on your emulator, and the output will be in your terminal.
6542

6643
# Project Structure
6744

@@ -93,3 +70,40 @@ sudo sysctl -w kern.maxfiles=65536
9370
sudo sysctl -w kern.maxfilesperproc=65536
9471
ulimit -n 65536 65536
9572
```
73+
74+
#### 2. Using XCode 8
75+
Check if xcodeproj is installed
76+
- `sudo gem install xcodeproj -v 1.4.1`
77+
You may need to enable system ruby (macos)
78+
- `rvm use system` // now using system ruby
79+
- repeat `sudo gem install xcodeproj -v 1.4.1`
80+
- tns run ios
81+
82+
You will probably get an error:
83+
`No profiles for 'org.nativescript.MyApp' were found: Xcode couldn't find a provisioning profile matching 'org.nativescript.MyApp'`
84+
85+
- Open the project
86+
- nav to app/iOS/build.xcconfig
87+
- include `PROVISIONING_PROFILE = testapp;`
88+
89+
Change app.js to
90+
```
91+
const Vue = require('nativescript-vue');
92+
93+
new Vue({
94+
95+
data: {
96+
message: "Hello Vue!"
97+
},
98+
99+
template: `
100+
<page>
101+
<stack-layout>
102+
<label v-model="message"></label>
103+
</stack-layout>
104+
</page>
105+
`,
106+
107+
}).$start()
108+
```
109+

0 commit comments

Comments
 (0)
0