Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

A Vue-CLI (2.x) template for NativeScript-Vue

License

NotificationsYou must be signed in to change notification settings

nativescript-vue/vue-cli-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note: This is a new version of the template, if you are looking for the old template, it is available on thelegacy branch.

vue-cli-template

NativeScript-Vue application template for quick prototyping with vue-cli (2.x).

Usage

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# Buildtns build<platform># Preview the application on a devicetns preview# Build, watch for changes and run the applicationtns run# Clean the NativeScript application instancetns platform remove<platform># Hot Module Replacement (HMR) disabled Debugging sessiontns 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

Debugging vs Production

During usual run, project runs with following settings -

  1. Code isnot minified
  2. Vue.config.silent is false, so every component creation is logged
# Build, watch for changes and debug the applicationtns debug<platform>

To minify code, and prevent Vue logs -

# Build for productiontns build<platform> --env.production# Run as productiontns run<platform> --env.production

Using NativeScript plugins

Installing plugins is the same as official NativeScriptdocumentation.

Usetns plugin add from the root of the project directory.

tns plugin add<plugin-name>

Please note that some plugins still have issues resolving with this template, visit the communitySlack for getting them to work and for general help.

About

A Vue-CLI (2.x) template for NativeScript-Vue

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Contributors25


[8]ページ先頭

©2009-2025 Movatter.jp