4 Star 0 Fork 0

makex / GameCloudService

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

egg-vue-typescript-boilerplate

基于 Egg + Vue + TypeScript + Element + Webpack4 多页面和单页面服务端客户端渲染同构工程骨架项目, Webpack3 构建请见 webpack3.

1. 版本

  • Egg 版本: ^2.x.x
  • Node 版本: Node ^8.x.x+,
  • Webpack 版本: ^4.0.0
  • Vue 版本: ^2.5.0
  • TypeScript: ^2.6.2
  • Element UI

2. 文档

3. 特性

  • 支持 Egg Node 端代码 和 前端代码 TypeScript 编写和构建

  • 支持 async和 await 特性, Controller 采用 class 方式编写

  • 支持 server 和 client 端代码修改, Webpack 时时编译和热更新, npm run dev 一键启动应用

  • 基于 vue + vuex + vue-router + axios 单页面服务器客户端同构实现

  • 支持开发环境, 测试环境,正式环境 Webpack 编译

  • 支持 js/css/image 资源依赖, 内置支持CDN特性

  • 支持 Webpack DLL 自动化构建

  • 支持 Vue 组件服务端渲染异步加载

4. 依赖

5. 使用

5.1 安装依赖

npm install

5.2 启动应用

首次运行请先运行一次 npm run tsc

npm run dev

应用访问: http://127.0.0.1:7001

npm start启动

5.3 构建

  • TypeScript Egg 构建
npm run tsc
  • TypeScript 前端工程构建
npm run build

5.4 打包部署

  1. 先运行 npm run tscnpm run build 构建 TypeScript Egg 代码和 TypeScript 前端代码
  2. 项目代码和构建代码一起打包代码
  3. 应用部署后,通过 npm start 启动应用

License

MIT

The MIT License (MIT) Copyright (c) 2017 sky. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

MakeX赛事云端服务 展开 收起
TypeScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
TypeScript
1
https://gitee.com/makex/GameCloudService.git
git@gitee.com:makex/GameCloudService.git
makex
GameCloudService
GameCloudService
master

搜索帮助