Hacker News showcase using typescript && egg
$ npm i
$ npm run dev
$ open http://localhost:7001/
Don't tsc compile at development mode, if you had run tsc
then you need to npm run clean
before npm run dev
.
$ npm run tsc
$ npm start
- Use
npm run lint
to check code style - Use
npm test
to run unit test - se
npm run clean
to clean compiled js at development mode once
- Node.js 8.x
- Typescript 2.8+
。按插件 => 框架 => 应用依次加载 。插件之间的顺序由依赖关系决定,被依赖方先加载,无依赖按object key配置顺序加载 。框架按继承顺序加载,越底层越先加载
- package.json
- config/plugin.{env}.js
- app/extend/applications.js
- app/extend/request.js
- app/extend/response.js
- app/extend/context.js
- app/extend/helper.js
- agent.js
- app.js
- app/service
- app/middle
- app/controller
- app/router.js