8000 Update templates.md · fishr01/nativescript-vue@4c90d2e · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c90d2e

Browse files
authored
Update templates.md
1 parent 68cafb7 commit 4c90d2e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/templates.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,28 @@ title: Templates
55
You can also use NativeScript's [template system](https://docs.nativescript.org/tooling/app-templates) to help you bootstrapping your `nativescript-vue` app. All these templates generate NativeScript app that uses the `nativescript-vue` plug-in. Some templates are equipped with more features such as support for Vue.js Single File Component (`.vue`) and livereload.
66

77
## nativescript-vue-template
8+
89
#### Project link
10+
911
https://github.com/tralves/nativescript-vue-template
12+
1013
#### Description
14+
1115
This one the most basic template. It contains a number of app samples that you can use as the starting point of your app. To try them, copy and paste the code from `app-with-list-view.js`, `app-with-router.js`, `app-with-tab-view.js`, or `app-with-vmodel.js` into your app’s `app.js` file.
16+
1217
#### Installation
18+
1319
```sh
1420
tns create sample-app --template nativescript-vue-template
1521
```
1622
*Follow the [project link](https://github.com/tralves/nativescript-vue-template) for further instructions.*
1723

1824
## nativescript-vue-rollup-template
25+
1926
#### Project link
27+
2028
https://github.com/tralves/nativescript-vue-rollup-template
29+
2130
#### Description
2231
Originally a [fork from rigor789's](https://github.com/rigor789/nativescript-vue-rollup-template), this template is currently the most stable and feature complete. You can see it in action in the [🍏 🍍 🍓 Groceries Vue](https://github.com/tralves/groceries-ns-vue) app.
2332
It supports:
@@ -27,16 +36,21 @@ It supports:
2736
- scss imports and scss inside `<style>` tags in .vue files;
2837
- root imports (imports starting with `/ `refer to the root of the app folder);
2938
- babel with `es2015` and `stage-2` presets;
39+
3040
#### Installation
3141
```sh
3242
tns create sample-app --template nativescript-vue-rollup-template
3343
```
3444
*Follow the [project link](https://github.com/tralves/nativescript-vue-rollup-template) for further instructions.*
3545

3646
## nativescript-vue-webpack-template
47+
3748
#### Project link
49+
3850
https://github.com/tralves/nativescript-vue-webpack-template
51+
3952
#### Description
53+
4054
The webpack template leverages webpack to provide the same functionality as the rollup counterpart. It is evolving to support code sharing, i.e., create projects that share as much of the logic as possible between a web build and the native (android/iOS) builds.
4155

4256
Features:
@@ -52,6 +66,7 @@ The webpack template leverages webpack to provide the same functionality as the
5266
tns create sample-app --template https://github.com/tralves/nativescript-vue-webpack-template
5367
```
5468
*Follow the [project link](https://github.com/tralves/nativescript-vue-webpack-template) for further instructions.*
69+
5570
# What's next?
5671

5772
<a router-link="/articles" class="docute-button docute-button-success">

0 commit comments

Comments
 (0)
0