vue-cli-template

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

  • 所有者: nativescript-vue/vue-cli-template
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

vue-cli-template

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

Usage

This is a project template for vue-cli.

# Scaffold project
npm install -g @vue/cli @vue/cli-init
vue init nativescript-vue/vue-cli-template <project-name>
cd <project-name>

# Install dependencies
npm install

# Build
ns build <platform>

# Preview the application on a device
ns preview

# Build, watch for changes and run the application
ns run

# Clean the NativeScript application instance
ns platform remove <platform>

# Hot Module Replacement (HMR) disabled Debugging session 
ns debug <platform> --no-hmr
# Scaffold project
yarn global add @vue/cli @vue/cli-init
vue init nativescript-vue/vue-cli-template <project-name>
cd <project-name>

# Install dependencies
yarn

Debugging vs Production

During usual run, project runs with following settings -

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

To minify code, and prevent Vue logs -

# Build for production
ns build <platform> --env.production

# Run as production
ns run <platform> --env.production

Using NativeScript plugins

Installing plugins is the same as official NativeScript documentation.

Use ns plugin add from the root of the project directory.

ns plugin add <plugin-name>

主要指標

概覽
名稱與所有者nativescript-vue/vue-cli-template
主編程語言JavaScript
編程語言JavaScript (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2018-02-26 12:27:46
推送於2022-12-05 17:42:22
最后一次提交2022-12-05 18:42:22
發布數0
用户参与
星數282
關注者數21
派生數48
提交數121
已啟用問題?
問題數99
打開的問題數2
拉請求數37
打開的拉請求數2
關閉的拉請求數16
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?