1.0.7 • Published 1 year ago

vue3-starter v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Ryan's Vue3 Awesome Starter

Author License Last Commit

Features

  • 📦  Typed Programming (Typescript)
  • 📚  Composition API & Setup (Vue3)
  • 🛹  Simple Store (Pinia)
  • 🧵  Built-in Component & Layout
  • 📙  Use Stric Codebase (ESLint)
  • 📘  Use Stric Style (StyleLint)
  •   Setting Reset Style
  • ⚡️  Setting Mixin Style
  • 📍  Absolute path
  • 📱  Check Device
  • 🗂️  SSR & Page SEO
  • 🪄  Theme Mode

Frameworks

  • Core : Vue3
  • Store : Pinia

Code Pattern

  • Static(public)
  • Root(src)
  •  api - rest api
  •  assets - static resource
  •  components - atomic stateless components
  •  containers - stateful components
  •  interface - interfaces
  •  layouts - layouts
  •  router - routers
  •  store - pinia store
  •  styles - style set
  •  utils - hooks, utils
  •  views - pages

Getting Started

1) Installation

npx vue3-starter my-project
cd my-project

2) Run development server

npm run dev

Using with Vue3 Script Setup

<script setup lang="ts">
// use function
const function = () => {console.log('Hello World!')}
// use props
const props = defineProps({title})
</script>

Using with Store

<script setup lang="ts">
import { storeToRefs } from 'pinia';
import useDataStore from '@store/useDataStore';
// use store
const store = useDataStore();
// use store state
const { data } = storeToRefs(store);
// use store function
store.getData()
</script>

Using Mixin

.app {
  // flex set(justify-content, align-items, flex-direction)
  @include flexSet('center', 'center', 'row')

  // box set(width, height, border-radius)
  @include boxSet(00px, 00px, 00px)

  // color set(color, background-color)
  @include colorSet($white, $black)

  // background set(url, object-fit)
  @include backgroundSet('url', 00px)

  // font set(font-size, font-weight, line-height)
  @include fontSet(00px, 000, 00px);

  // ellipsis set(line, line-height)
  @include ellipsisSet(0, 00px)

  // shadow set(length, length, blur, color, opacity)
  @include shadowSet(0, 0, 0, $white, 0.1)
}
1.0.7

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

0.0.0

2 years ago

1.0.0

4 years ago

0.8.0

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.7

4 years ago

0.4.9

4 years ago

0.6.6

4 years ago

0.4.8

4 years ago

0.6.9

4 years ago

0.6.8

4 years ago

0.6.10

4 years ago

0.6.12

4 years ago

0.6.11

4 years ago

0.6.17

4 years ago

0.6.14

4 years ago

0.6.13

4 years ago

0.6.16

4 years ago

0.6.15

4 years ago

0.5.0

4 years ago

0.4.20

4 years ago

0.4.21

4 years ago

0.4.26

4 years ago

0.4.24

4 years ago

0.4.25

4 years ago

0.4.22

4 years ago

0.4.23

4 years ago

0.4.19

4 years ago

0.4.10

4 years ago

0.4.17

4 years ago

0.4.18

4 years ago

0.4.15

4 years ago

0.4.16

4 years ago

0.4.13

4 years ago

0.4.14

4 years ago

0.4.11

4 years ago

0.4.12

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.5

4 years ago

0.6.4

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago