Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/blesstosam/nuxt-ts-starter

Nuxtjs starter with typescript and koa
https://github.com/blesstosam/nuxt-ts-starter

koa koa2 koajs nuxt nuxtjs starter ts typescript vue vuejs

Last synced: about 5 hours ago
JSON representation

Nuxtjs starter with typescript and koa

Awesome Lists containing this project

README

        

# Nuxt-ts-starter

- Nuxtjs + Typescript + Koa Starter.
- No typescript/runtime.(没有用这个依赖是可以更灵活地拓展后台代码)
- build.sh 是自动部署脚本,部署工具是pm2。可以配合gitlab流水线进行自动打包部署。

## Feature
- Koa server support
- Nuxt server renderer
- Complete Typescript development experience
- I18n both in server or client
- CSRF support
- Csp support
- Session support
- Rate limit support

## Build Setup

``` bash
# install dependencies
$ npm run install

# serve with hot reload at localhost:3001
$ npm run server

# build for production
$ npm run build

# start server
$ npm run start:ts

# test
$ npm run test:ci

# publish
$ npm run publish:ts

# generate static project
$ npm run generate
```

## lint-staged v8.2.1 不要升级
会导致@babel/runtime 被删除导致报错

## tsconfig.json 里的 "module": "esnext" 要注释掉 否则无法识别 import 语法