eggjs / egg-bin Goto Github PK
View Code? Open in Web Editor NEWegg developer tool
License: MIT License
egg developer tool
License: MIT License
如题,6.x版本运行egg dev无法识别declarations配置,不会运行ets生成typings。这个符合预期吗,在changelog里没看到相关信息
This issue tracks the request to pick the new DAL generation feature introduced in PR #257 to the master branch. The feature enhances the Egg.js framework's data access layer capabilities by automating the generation of DAL code, making development processes more efficient. Picking this feature to the master branch will ensure its availability for broader use.
process.env.INIT_CWD 是 monorepo root 目录
process.env.npm_rootpath 是 undefined
可以加载default.js 但是local配置文件 无法加载
目前是临时黑魔法。
If you change any test files (ending with 'test.js' in Egg project), and you run:
npm run test-local-changed
You'll always be told there's no file changed.
"globby" is referring "minimatch" for the global pattern searches.
In Windows, we can use either "/" or "\" as path seperators, however Only "/" is supported. Please read here: https://github.com/isaacs/minimatch#windows
To convert the "pattern" paths by replacing "" to "/".
如上图,egg-bin@4、egg-bin@5 中,当 detect 到的端口与 defaultPort
一致时,将不会赋值给 argv.port
,导致 argv.port
为空,进而用了 config.default.js 里面配置的 port
。
如上图,在 egg-bin@6 中,任何情况都会赋值 this.port
,也就意味着不会使用到 config.default.js 中配置的 port
。
与 6 版本相比,4/5 看起来是 bug 逻辑,但表现上符合业务预期。6 是正常逻辑,但表现上不符合业务预期。
致谢!
用到的模块版本,是不是egg-bin降级5.x能解决下述问题?
"egg": "^3.17.5",
"egg-cors": "^3.0.0",
"egg-jwt": "^3.1.7",
"egg-mongoose": "^4.0.1",
"egg-multipart": "^3.3.0",
"egg-redis": "^2.5.0",
"egg-scripts": "^2.17.0",
"egg-sequelize": "^6.0.0",
"egg-session-redis": "^2.1.0",
"egg-view-nunjucks": "^2.3.0",
"egg-bin": "^6.5.2",
"egg-ci": "^2.2.0",
"egg-mock": "^5.10.9",
但egg升级到3.17.5版本,其他egg模块升级最新版本后,npm run debug如下:
该如何显示出chrome-devtools地址呢?ws地址不能直接在浏览器新页签中打开,不方便使用。
升级egg 3.x之后,config.default.js中,指定端口的配置,npm run start生效,npm run dev、debug不生效,始终是7001,该如何调整?
// 修改dev模式监听的端口,默认7001
config.cluster = {
listen: {
path: '',
port: 3003,
hostname: '0.0.0.0'
}
};
Can "egg-bin dev" support "https" ? I want to use "http2" protocol when my website fetch static resource in local env.
在^6.5.2版本时,egg-ts-helper插件未工作,启动时没有生成typings文件夹及其目录,进行版本降低(^5),运行正常
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.