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
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,11 @@ $ yarn dev
38
38
39
39
To test the sample applications provided in the repository, you need to`yarn 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).
40
40
41
-
Next, open up a new terminal window andrun`yarn 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 youtochoose 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.
41
+
Next, open up a new terminal window andchange directorytosamples`cd samples`.
42
42
43
-
If you want to test the sample apps with HMR activated, please run`yarn samples -- --hmr` instead. Actually, we can pass any arguments to the`tns debug platform` command placing them after the`--` separator.
43
+
If you want to test the sample apps, please run`ns run <platform> --no-hmr` (disabling hmr isn't necessary, but preferred most of the time).
44
+
45
+
To test a different/new sample edit`app/entry.js` and update the`require('./<sample>')` statement to require any of the samples in the app folder.