当前位置: 首页 > 软件库 > 手机/移动开发 > >

nativescript-vue-typescript-starter

授权协议 Readme
开发语言 JavaScript TypeScript
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 司空瑾瑜
操作系统 iOS
开源组织
适用人群 未知
 软件概览

NS Vue Typescript Sample

A native mobile application built with NativeScript-Vue in Typescript

Technologies

NativeScript

A cross-platform Javascript platform that allows writing native (not hybrid) mobile appsfor iOS and Android using Javascript.

https://nativescript.org

Vue JS

A modern Javascript frontend framework, strongly believing in single file components.

https://vuejs.org

Vue Router

Default router (made by official maintainers of Vue JS)

https://router.vuejs.org/

Vuex

Default state management framework for Vue (made by official maintainers of Vue JS)

https://vuex.vuejs.org/

Typescript

A language developed by Microsoft that is a superset of Javascript ES2017 standard.Adds the concept of strong types, interfaces to Javascript. Compiles down to Javascript.

https://typescriptlang.org

Usage

Installing and Running

Here <platform> can be android or ios

# Install dependencies
npm install
# -- or -- 
yarn 

# Build, watch for changes and run the application
tns run <platform> --bundle

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
tns debug <platform> --bundle

To minify code, and prevent Vue logs -

# Build for production
tns build <platform> --bundle --env.production

tns run <platform> --bundle --env.production
 相关资料
  • NativeScript + Vue + TypeScript nativescript-vue-typescript-seed This project is so anyone can get started using NativeScript and Vue with TypeScript. It is created when using the nativescript-vue-tem

  • NativeScript TypeScript nativescript-dev-typescript is deprecated in favour of bundle workflow, which will be introduced with CLI v6.0. More info about the upcoming new approach can be found here. A p

  • Supporting NativeScript-Vue NativeScript-Vue is an MIT-licensed open source project made possible by our sponsors: and these awesome backers: Tiago Alves Kamen Bundev Jan Weller OpenLitterMap Aparajit

  • Supporting NativeScript-Vue-Examples This project is a personal maintenance project, due to limited energy, you need to support. Welcome star, your star is my biggest support! NSVue Examples A native

  • A simple router implementation that is suitable for NativeScript-Vue. Prerequisites / Requirements All your own components must have unique name All routes name must have unique name Your app need a m

  • NativeScript-Vue-Navigator NativeScript-Vue-Navigator is a simple router implementation that is suitable for NativeScript-Vue. Quick Start $ npm install --save nativescript-vue-navigator // main.jsimp