egg-boilerplate-simple
Advanced tools
Comparing version 3.5.0 to 3.6.0
@@ -10,14 +10,13 @@ { | ||
"dependencies": { | ||
"egg": "^3", | ||
"egg-scripts": "^2" | ||
"egg": "^3.17.5", | ||
"egg-scripts": "2" | ||
}, | ||
"devDependencies": { | ||
"egg-bin": "^5", | ||
"egg-ci": "^2", | ||
"egg-mock": "^5", | ||
"eslint": "^8", | ||
"eslint-config-egg": "^12" | ||
"egg-bin": "6", | ||
"egg-mock": "5", | ||
"eslint": "8", | ||
"eslint-config-egg": "13" | ||
}, | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": ">=18.0.0" | ||
}, | ||
@@ -28,5 +27,4 @@ "scripts": { | ||
"dev": "egg-bin dev", | ||
"debug": "egg-bin debug", | ||
"test": "npm run lint -- --fix && npm run test-local", | ||
"test-local": "egg-bin test", | ||
"test": "npm run lint -- --fix && npm run test:local", | ||
"test:local": "egg-bin test", | ||
"cov": "egg-bin cov", | ||
@@ -36,6 +34,2 @@ "lint": "eslint .", | ||
}, | ||
"ci": { | ||
"version": "16, 18", | ||
"type": "github" | ||
}, | ||
"repository": { | ||
@@ -42,0 +36,0 @@ "type": "git", |
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
const { Controller } = require('egg'); | ||
@@ -4,0 +2,0 @@ |
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
/** | ||
@@ -4,0 +2,0 @@ * @param {Egg.Application} app - egg application |
/* eslint valid-jsdoc: "off" */ | ||
'use strict'; | ||
/** | ||
@@ -6,0 +4,0 @@ * @param {Egg.EggAppInfo} appInfo app info |
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
/** @type Egg.EggPlugin */ | ||
@@ -4,0 +2,0 @@ module.exports = { |
@@ -14,5 +14,5 @@ # {{name}} | ||
```bash | ||
$ npm i | ||
$ npm run dev | ||
$ open http://localhost:7001/ | ||
npm i | ||
npm run dev | ||
open http://localhost:7001/ | ||
``` | ||
@@ -23,4 +23,4 @@ | ||
```bash | ||
$ npm start | ||
$ npm stop | ||
npm start | ||
npm stop | ||
``` | ||
@@ -32,5 +32,3 @@ | ||
- Use `npm test` to run unit test. | ||
- Use `npm run autod` to auto detect dependencies upgrade, see [autod](https://www.npmjs.com/package/autod) for more detail. | ||
[egg]: https://eggjs.org | ||
[egg]: https://eggjs.org |
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
const { app, assert } = require('egg-mock/bootstrap'); | ||
@@ -4,0 +2,0 @@ |
{ | ||
"name": "egg-boilerplate-simple", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"description": "boilerplate for egg quickstart", | ||
@@ -23,12 +23,6 @@ "scripts": { | ||
"devDependencies": { | ||
"egg-ci": "^2.1.0", | ||
"egg-init": "^2.3.1", | ||
"eslint": "^8.24.0", | ||
"eslint-config-egg": "^12.1.0", | ||
"npminstall": "^6.5.1" | ||
}, | ||
"ci": { | ||
"version": "16", | ||
"type": "github" | ||
"eslint": "8", | ||
"eslint-config-egg": "13" | ||
} | ||
} |
# egg-boilerplate-simple | ||
Boilerplate for egg quickstart. | ||
Boilerplate for egg quickstart. | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[![Node.js CI](https://github.com/eggjs/egg-boilerplate-simple/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg-boilerplate-simple/actions/workflows/nodejs.yml) | ||
[![Test coverage][codecov-image]][codecov-url] | ||
[![David deps][david-image]][david-url] | ||
[![Known Vulnerabilities][snyk-image]][snyk-url] | ||
@@ -14,8 +13,4 @@ [![npm download][download-image]][download-url] | ||
[npm-url]: https://npmjs.org/package/egg-boilerplate-simple | ||
[travis-image]: https://img.shields.io/travis/eggjs/egg-boilerplate-simple.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/eggjs/egg-boilerplate-simple | ||
[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-boilerplate-simple.svg?style=flat-square | ||
[codecov-url]: https://codecov.io/gh/eggjs/egg-boilerplate-simple | ||
[david-image]: https://img.shields.io/david/eggjs/egg-boilerplate-simple.svg?style=flat-square | ||
[david-url]: https://david-dm.org/eggjs/egg-boilerplate-simple | ||
[snyk-image]: https://snyk.io/test/npm/egg-boilerplate-simple/badge.svg?style=flat-square | ||
@@ -31,10 +26,10 @@ [snyk-url]: https://snyk.io/test/npm/egg-boilerplate-simple | ||
```bash | ||
$ npm i -g egg-init | ||
$ egg-init --type simple showcase | ||
$ cd showcase | ||
$ npm i | ||
$ npm run dev | ||
$ open http://localhost:7001 | ||
npm i -g egg-init | ||
egg-init --type simple showcase | ||
cd showcase | ||
npm i | ||
npm run dev | ||
open http://localhost:7001 | ||
``` | ||
See [egg-init](https://github.com/eggjs/egg-init) for more detail. |
Sorry, the diff of this file is not supported yet
3
22
115
13891
34