Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/blesstosam/nuxt-ts-starter
- Owner: blesstosam
- Created: 2020-03-24T08:58:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-20T16:05:15.000Z (3 months ago)
- Last Synced: 2024-08-20T18:25:56.957Z (3 months ago)
- Topics: koa, koa2, koajs, nuxt, nuxtjs, starter, ts, typescript, vue, vuejs
- Language: TypeScript
- Homepage:
- Size: 590 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
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 语法