We are deprecating this template in favor of the webpack one. Some things may have changed and I haven't tested this template in a while.
Check the Groceries Vue app for an example of a working app using the webpack template.
This repo serves as the starting point for NativeScript + Vue.js projects, using nativescript-vue.
This template creates a project ready to use with Vue single file components* (.vue
files)!
It creates a project with the structure:
my-app
|
|-app # your app code
| |-components
| |-...
|
|-tns # the generated tns project
| |-app
| |-...
|...
This template supports:
<style>
tags in .vue files;/
refer to the root of the app
folder);es2015
and stage-2
presets;Dependencies:
npm install --global rollup
) -OR- add ./node_modules/.bin
to the PATH
.Create app from this template
tns create hello-ns-vue --template nativescript-vue-rollup-template
cd hello-ns-vue
3. Watch for changes while developing
In two separate terminals run:
rollup -c -w
cd tns tns run android
tns run ios
4. Code!
Check [Groceries Vue](https://github.com/tralves/groceries-ns-vue) to see this template
in action in a complete app.