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: 12 months 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-09T13:50:08.000Z (about 1 year ago)
- Last Synced: 2025-05-08T22:42:27.615Z (about 1 year ago)
- Topics: koa, koa2, koajs, nuxt, nuxtjs, starter, ts, typescript, vue, vuejs
- Language: TypeScript
- Homepage:
- Size: 655 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 20
-
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 语法