easy-team / egg-react-typescript-boilerplate Goto Github PK
View Code? Open in Web Editor NEWEgg React TypeScript Server Side Render (SSR) / Client Side Render (CSR)
Home Page: https://easyjs.cn/egg-react
License: MIT License
Egg React TypeScript Server Side Render (SSR) / Client Side Render (CSR)
Home Page: https://easyjs.cn/egg-react
License: MIT License
该项目的前端代码不是TS 编写的吧~~
easywebpack和这里的readme都看了一遍,也有可能看漏了?
使用npm run debug命令启动项目后,页面始终停留在 “正在努力编译中...”, 刷新页面后程序并不会走进controller中。npm run dev正常。
对该文件的配置项进行任何修改,甚至是删除该文件,都不会影响前端编译。
{
"name": "egg-react-typescript-boilerplate",
"version": "3.0.1",
"typings": "./typings/app/index.d.ts",
"description": "基于 egg + react + typescript + webpack 服务端渲染工程骨架项目",
"scripts": {
"start": "egg-scripts start",
"dev": "egg-bin dev -r egg-ts-helper/register",
"debug": "egg-bin debug",
"build": "easy build",
"tsc": "ets && tsc -p tsconfig.json",
"clean": "ets clean",
"kill": "easy kill",
"lint": "tslint --project . -c tslint.json",
"fix": "tslint --fix --project . -c tslint.json",
"ii": "npm install --registry https://registry.npm.taobao.org"
},
"dependencies": {
"cross-env": "^5.0.0",
"egg": "^2.1.0",
"egg-cors": "^2.0.0",
"egg-logger": "^1.5.0",
"egg-scripts": "^2.6.0",
"egg-validate": "^1.0.0",
"egg-view-react-ssr": "^2.3.2",
"extend": "~3.0.0",
"history": "^4.7.2",
"lodash": "^4.17.4",
"mockjs": "^1.0.1-beta3",
"moment": "^2.17.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-redux": "^5.0.6",
"react-router": "^4.2.0",
"react-router-config": "^1.0.0-beta.4",
"react-router-dom": "^4.2.2",
"react-router-redux": "^4.0.8",
"redux": "^3.7.2"
},
"devDependencies": {
"@types/react": "^16.0.34",
"@types/react-dom": "^16.0.3",
"antd": "^3.0.3",
"autod-egg": "^1.0.0",
"easywebpack-cli": "^4.0.0",
"easywebpack-react": "^4.0.0",
"egg-bin": "^4.7.1",
"egg-ts-helper": "^1.9.0",
"egg-webpack": "^4.0.0",
"egg-webpack-react": "^2.0.0",
"eslint": "^4.6.1",
"eslint-config-egg": "^5.1.1",
"eslint-plugin-react": "^7.1.0",
"ip": "^1.1.5",
"less": "^2.7.2",
"less-loader": "^4.0.5",
"ts-loader": "^4.0.0",
"tslint": "^5.9.1",
"tslint-loader": "^3.5.3",
"typescript": "^3.0.0"
},
"egg": {
"typescript": true
},
"engines": {
"node": ">=6.0.0"
},
"ci": {
"version": "6, 7, 8"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hubcarl/egg-react-typescript-boilerplate.git"
},
"author": "[email protected]",
"license": "MIT",
"homepage": "https://github.com/hubcarl/egg-react-typescript-boilerplate"
}
在生成的工程當中有看到 dbfactory,但是不太理解應該如何具體應用,是否能夠添加一下二者之一的具體用例
window对象被重写了吗?现在无法调起录音了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.