Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wizardpisces/vue-cli-plugin-klkspa

Vue CLI 3 plugin for klook ts spa
https://github.com/wizardpisces/vue-cli-plugin-klkspa

cli deploy spa typescript vue

Last synced: 4 days ago
JSON representation

Vue CLI 3 plugin for klook ts spa

Awesome Lists containing this project

README

        

# vue-cli-plugin-klkspa

Vue CLI 3 scalfold plugin for klook typescript spa ( node v8+ )

## Feature

* axios wrapper
* auto online deployment
* i18n integrated
* svg sprite
* basic utils and css
* ts store prototype

## How to Use

You need Vue CLI 3 installed globally as a pre-requisite. If you don't have it, please run

```
npm install -g @vue/cli
```

use vue-cli3 choose feature : babel ,typescript , router, vuex, css-Preprocessor( sass ):

```
vue create ${project_git_name}
```

```
vue add klkspa
```

## Deployment

add project git name so it can auto-generate deploy.sh for your online deployment,use
```
cd /srv/builds/{project_git_name} && sh deploy.sh origin/master
```
[more server configuration](https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations)

## other explanation:

1. theme color change modify @/assets/scss/variable.scss
2. add node to tsconfig.json types:

```
"types": [
"webpack-env",
"node"
],
```