init commit
Showing
.dockerignore
0 → 100644
.gitignore
0 → 100644
.gitlab-ci.yml
0 → 100644
Dockerfile
0 → 100644
README.md
100644 → 100755
app.ts
0 → 100644
app/controller/home.ts
0 → 100644
app/extend/context.ts
0 → 100644
app/extend/filter.ts
0 → 100755
app/extend/helper.ts
0 → 100644
app/middleware/auth.ts
0 → 100644
app/public/favicon.png
0 → 100755
3.04 KB
app/router.ts
0 → 100755
app/service/Jwt.ts
0 → 100644
app/view/layout/layout.tpl
0 → 100755
app/view/news/detail.tpl
0 → 100755
app/view/news/item.tpl
0 → 100755
app/view/news/list.tpl
0 → 100755
app/view/news/user.tpl
0 → 100755
config/config.default.ts
0 → 100755
config/config.local.ts
0 → 100755
config/config.prod.ts
0 → 100755
config/plugin.ts
0 → 100755
index.d.ts
0 → 100644
package-lock.json
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
package.json
0 → 100755
| { | |||
| "name": "@jianbing/egg-ts", | |||
| "version": "1.0.0", | |||
| "description": "", | |||
| "egg": { | |||
| "typescript": true | |||
| }, | |||
| "scripts": { | |||
| "start": "npm run tsc && egg-scripts start", | |||
| "dev": "egg-bin dev -r egg-ts-helper/register", | |||
| "debug": "egg-bin debug -r egg-ts-helper/register", | |||
| "docker": "npm run tsc && eggctl start --title=", | |||
| "test-local": "egg-bin test -r egg-ts-helper/register", | |||
| "test": "npm run lint -- --fix && npm run test-local", | |||
| "cov": "egg-bin cov -r egg-ts-helper/register", | |||
| "tsc": "ets && tsc -p tsconfig.json", | |||
| "ci": "npm run lint && npm run cov && npm run tsc", | |||
| "autod": "autod", | |||
| "lint": "tslint .", | |||
| "clean": "ets clean" | |||
| }, | |||
| "dependencies": { | |||
| "egg": "^2.6.0", | |||
| "egg-jwt": "^3.1.6", | |||
| "egg-redis": "^2.3.1", | |||
| "egg-router-decorator": "^2.1.0", | |||
| "egg-scripts": "^2.6.0", | |||
| "egg-sequelize": "^4.3.1", | |||
| "egg-validate": "^2.0.2", | |||
| "egg-view-nunjucks": "^2.2.0", | |||
| "moment": "^2.22.0", | |||
| "mysql2": "^1.6.5" | |||
| }, | |||
| "devDependencies": { | |||
| "@types/cheerio": "^0.22.1", | |||
| "@types/mocha": "^2.2.40", | |||
| "@types/node": "^7.0.12", | |||
| "@types/supertest": "^2.0.0", | |||
| "autod": "^3.0.1", | |||
| "autod-egg": "^1.1.0", | |||
| "cheerio": "^1.0.0-rc.2", | |||
| "egg-bin": "^4.6.2", | |||
| "egg-mock": "^3.16.0", | |||
| "egg-ts-helper": "^1.4.2", | |||
| "tslib": "^1.9.0", | |||
| "tslint": "^4.0.0", | |||
| "typescript": "^2.8.1" | |||
| }, | |||
| "engines": { | |||
| "node": ">=8.9.0" | |||
| } | |||
| } |
tsconfig.json
0 → 100755
tslint.json
0 → 100755
typings/app/index.d.ts
0 → 100644
typings/config/index.d.ts
0 → 100644
typings/config/plugin.d.ts
0 → 100644
typings/index.d.ts
0 → 100755