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: docs/templates.md
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,28 @@ title: Templates
5
5
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.
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.
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.
23
32
It supports:
@@ -27,16 +36,21 @@ It supports:
27
36
- scss imports and scss inside `<style>` tags in .vue files;
28
37
- root imports (imports starting with `/ `refer to the root of the app folder);
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.
41
55
42
56
Features:
@@ -52,6 +66,7 @@ The webpack template leverages webpack to provide the same functionality as the
0 commit comments