This repo serves as the starting point for NativeScript + Vue.js projects, using nativescript-vue.
This template was born ready for Vue single file components* (.vue
files)!
(*) Er... almost... the <style>
section isn't working yet...
-
Install NativeScript tools (see http://docs.nativescript.org/start/quick-setup)
-
Create app from this template
tns create hello-ns-vue --template https://github.com/tralves/nativescript-vue-webpack-template
- Move
webpack.config.js
cd hello-ns-vue
mv app/webpack.config.js .
TODO: put this step in a
postinstall
script.
- Run in Android or iOS (see: {NS} documentation on webpack bundling)
npm run start-android-bundle -- --clean
npm run start-ios-bundle -- --clean
- Code! You will find more sample code here.