Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork48
A Vue-CLI (2.x) template for NativeScript-Vue
License
nativescript-vue/vue-cli-template
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This template has been deprecated in favor of using thens create
command:
ns create myAwesomeApp --vue# add --ts if you'd like to scaffold a project with TypeScriptcd myAwesomeAppns run ios|android
Note: This is a new version of the template for NativeScript 7, if you are looking for the old template, it is available on thens6 branch.
NativeScript-Vue application template for quick prototyping with vue-cli (2.x).
This is a project template forvue-cli.
# Scaffold projectnpm install -g @vue/cli @vue/cli-initvue init nativescript-vue/vue-cli-template<project-name>cd<project-name># Install dependenciesnpm install# Buildns build<platform># Preview the application on a devicens preview# Build, watch for changes and run the applicationns run# Clean the NativeScript application instancens platform remove<platform># Hot Module Replacement (HMR) disabled Debugging sessionns debug<platform> --no-hmr
Yarn usage
# Scaffold projectyarn global add @vue/cli @vue/cli-initvue init nativescript-vue/vue-cli-template<project-name>cd<project-name># Install dependenciesyarn
During usual run, project runs with following settings -
- Code isnot minified
- Vue.config.silent is false, so every component creation is logged
# Build, watch for changes and debug the applicationns debug<platform>
To minify code, and prevent Vue logs -
# Build for productionns build<platform> --env.production# Run as productionns run<platform> --env.production
Installing plugins is the same as official NativeScriptdocumentation.
Usens plugin add
from the root of the project directory.
ns plugin add<plugin-name>
About
A Vue-CLI (2.x) template for NativeScript-Vue
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.