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
{{ message }}
This repository was archived by the owner on Dec 5, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+11-13
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
> **Note:** This is a new version of the template, if you are looking for the old template, it is available on the [legacy branch](https://github.com/nativescript-vue/vue-cli-template/tree/legacy).
1
+
> **Note:** This is a new version of the template for NativeScript 7, if you are looking for the old template, it is available on the [ns6 branch](https://github.com/nativescript-vue/vue-cli-template/tree/ns6).
2
2
3
3
# vue-cli-template
4
4
@@ -18,19 +18,19 @@ cd <project-name>
18
18
npm install
19
19
20
20
# Build
21
-
tns build <platform>
21
+
ns build <platform>
22
22
23
23
# Preview the application on a device
24
-
tns preview
24
+
ns preview
25
25
26
26
# Build, watch for changes and run the application
27
-
tns run
27
+
ns run
28
28
29
29
# Clean the NativeScript application instance
30
-
tns platform remove <platform>
30
+
ns platform remove <platform>
31
31
32
32
# Hot Module Replacement (HMR) disabled Debugging session
33
-
tns debug <platform> --no-hmr
33
+
ns debug <platform> --no-hmr
34
34
```
35
35
<details><summary>Yarn usage</summary>
36
36
<p>
@@ -58,27 +58,25 @@ During usual run, project runs with following settings -
58
58
59
59
```bash
60
60
# Build, watch for changes and debug the application
61
-
tns debug <platform>
61
+
ns debug <platform>
62
62
```
63
63
64
64
To minify code, and prevent Vue logs -
65
65
66
66
```bash
67
67
# Build for production
68
-
tns build <platform> --env.production
68
+
ns build <platform> --env.production
69
69
70
70
# Run as production
71
-
tns run <platform> --env.production
71
+
ns run <platform> --env.production
72
72
```
73
73
74
74
## Using NativeScript plugins
75
75
76
76
Installing plugins is the same as official NativeScript [documentation](https://docs.nativescript.org/plugins/plugins#installing-plugins).
77
77
78
-
Use `tns plugin add` from the root of the project directory.
78
+
Use `ns plugin add` from the root of the project directory.
79
79
80
80
```shell
81
-
tns plugin add <plugin-name>
81
+
ns plugin add <plugin-name>
82
82
```
83
-
84
-
Please note that some plugins still have issues resolving with this template, visit the community [Slack](https://developer.telerik.com/wp-login.php?action=slack-invitation) for getting them to work and for general help.
0 commit comments