All Projects → AkiraLaine → Vuets

AkiraLaine / Vuets

Licence: MIT license
A Vue, TypeScript ready boilerplate using class-style components, vue plugin options, webpack & vue-cli.

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
typescript
32286 projects
HTML
75241 projects

Projects that are alternatives of or similar to Vuets

Vue2.0 Multi Page
基于vue-cli(vue2.X,webpack1.X,es6,sass环境)多页面开发
Stars: ✭ 206 (+758.33%)
Mutual labels:  vue-cli
Intro To Vue
Workshop Materials for my Introduction to Vue.js Workshop
Stars: ✭ 2,668 (+11016.67%)
Mutual labels:  vue-cli
Blog Admin
blog-admin @react、@typescript、@apollographql
Stars: ✭ 239 (+895.83%)
Mutual labels:  vue-cli
Grapefruit.vucore
A front-background project using ASP.NET Core WebApi and Vue.js
Stars: ✭ 210 (+775%)
Mutual labels:  vue-cli
Vuetheme
WordPress theme using Rest API and Vue.js
Stars: ✭ 219 (+812.5%)
Mutual labels:  vue-cli
Vue Admin
基于and-design-vue的vue后台管理系统模板
Stars: ✭ 226 (+841.67%)
Mutual labels:  vue-cli
Vue Admin Template
a vue2.0 minimal admin template
Stars: ✭ 15,411 (+64112.5%)
Mutual labels:  vue-cli
Netease Music Demo
「网易云音乐」Demo。使用了 Vue2.0 全家桶来开发的。
Stars: ✭ 254 (+958.33%)
Mutual labels:  vue-cli
Web designer
网页设计器图形化工具,通过拖拽组件进行页面排版和生成页面代码
Stars: ✭ 219 (+812.5%)
Mutual labels:  vue-cli
Vue Cli Plugin Browser Extension
Browser extension development plugin for vue-cli 3.0
Stars: ✭ 238 (+891.67%)
Mutual labels:  vue-cli
Vue Foundation
VueJS + Foundation + Vue-Router + Webpack
Stars: ✭ 212 (+783.33%)
Mutual labels:  vue-cli
Nx Admin
👍 A magical 🐮 ⚔ vue admin,记得star
Stars: ✭ 2,497 (+10304.17%)
Mutual labels:  vue-cli
Vue Material Kit
Vue Material Kit - Open Source Material Design UI Kit
Stars: ✭ 231 (+862.5%)
Mutual labels:  vue-cli
Vue Blog
🎉 基于vue全家桶 + element-ui 构建的一个后台管理集成解决方案
Stars: ✭ 208 (+766.67%)
Mutual labels:  vue-cli
Vue Examples
Collection of Vue examples for beginner front end developers
Stars: ✭ 244 (+916.67%)
Mutual labels:  vue-cli
Electron Vue
An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
Stars: ✭ 14,610 (+60775%)
Mutual labels:  vue-cli
Vuemmerce
👉 Responsive ecommerce template 🛒 built with Vue.js and Nuxt.js
Stars: ✭ 223 (+829.17%)
Mutual labels:  vue-cli
Vue Element Admin
🎉 A magical vue admin https://panjiachen.github.io/vue-element-admin
Stars: ✭ 73,044 (+304250%)
Mutual labels:  vue-cli
Aspnetcore Vueclimiddleware
Helpers for building single-page applications on ASP.NET MVC Core using Vue Cli or Quasar Cli.
Stars: ✭ 253 (+954.17%)
Mutual labels:  vue-cli
Renren Fast Vue
renren-fast-vue基于vue、element-ui构建开发,实现renren-fast后台管理前端功能,提供一套更优的前端解决方案。
Stars: ✭ 2,779 (+11479.17%)
Mutual labels:  vue-cli

Vuets

A Vue, TypeScript ready boilerplate using class-style components

Usage

# Download vue-cli and Vuets template
npm i -g vue-cli
vue init akiralaine/vuets <PROJECT_NAME>

# Install dependencies
cd <PROJECT_NAME>
yarn (or npm i)
yarn run dev (or npm run dev)

What's a class-style component?

Vuets uses vue-class-component to enable the following

<script lang='ts'>
import Vue from 'vue'
import Component from 'vue-class-component'
import Intro from './components/Intro'

@Component({
  components: {
    Intro
  }
})
export default class App extends Vue {
  // data
  appName : string = 'vuets'

  // lifecycle hooks
  mounted () {
    this.printToConsole()
  }

  // methods
  printToConsole () {
    console.log('Welcome to Vuets')
  }

  // computed
  get properName () {
    return `${this.appName[0].toUpperCase()}${this.appName.slice(1)}`
  }
}
</script>

What's different?

Data

Normal Syntax:

data () {
  return {
    foo: 'bar'
  }
}

Class syntax:

foo = 'bar'

Using types:

foo : string = 'bar'

Methods

Methods are the same except they don't go in a methods object

Computed

Like methods, computed properties don't go in a computed object. But you must specify a getter like so:

get someProp () {
  return 'hello'
}

using types:

get sommeProp () : string {
  return 'hello'
}

Props / Watchers / Components

Unlike everything else, the above are specified in your Component decorator.

import SomeComponent from './SomeComponent'

@Component({
  components: {
    SomeComponent
  }
  props: ['someProp'],
  watch: {
    'foo' (val) {
      console.log(val)
    }
  }
})
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].