Comments (12)
https://github.com/eggjs/egg-boilerplate-ts/blob/master/boilerplate/_package.json 需要使用 ts 的脚手架,配置加上
"egg": { "typescript": true }试了下这个模版,把typing删了再npm run dev并不会重新生成类型声明文件
"egg": { "declarations": true, "typescript": true },
一样的,6.x的egg-bin的我试了还是不行
from egg-bin.
给一个可以复现的 repo?
from egg-bin.
@fengmk2 https://stackblitz.com/edit/stackblitz-starters-qkb6hw?description=&file=package.json&title=Egg.js%20Starter
egg-bin的版本是^6,package.json配置了egg.declarations,运行egg-bin没有typings文件,降级egg-bin到4或5是可以的
代码里搜了下egg-ts-helper,应该是重构的时候漏掉了
from egg-bin.
https://github.com/eggjs/egg-bin/blob/master/scripts/postinstall.js#L40 在 npm install 阶段没有执行 postinstall 吗?
from egg-bin.
https://github.com/eggjs/egg-bin/blob/master/scripts/postinstall.js#L40 在 npm install 阶段没有执行 postinstall 吗?
我不是很理解,是说在postinstall执行ets么,难道更新typings靠重新npm install吗,这不太合理吧,之前都是egg-bin dev的时候执行ets
from egg-bin.
在packag.json加上如下配置可以了
"egg": { "require": "./node_modules/egg-ts-helper/register.js" },
@fengmk2 这属于breaking change了吧
from egg-bin.
先记个 bug
from egg-bin.
https://github.com/eggjs/egg-boilerplate-ts/blob/master/boilerplate/_package.json 需要使用 ts 的脚手架,配置加上
"egg": {
"typescript": true
}
from egg-bin.
https://github.com/eggjs/egg-bin/blob/master/scripts/postinstall.js#L40 在 npm install 阶段没有执行 postinstall 吗?
我不是很理解,是说在postinstall执行ets么,难道更新typings靠重新npm install吗,这不太合理吧,之前都是egg-bin dev的时候执行ets
我也不理解
from egg-bin.
https://github.com/eggjs/egg-boilerplate-ts/blob/master/boilerplate/_package.json 需要使用 ts 的脚手架,配置加上
"egg": { "typescript": true }
试了下这个模版,把typing删了再npm run dev并不会重新生成类型声明文件
from egg-bin.
https://github.com/eggjs/egg-boilerplate-ts/blob/master/boilerplate/_package.json 需要使用 ts 的脚手架,配置加上
"egg": { "typescript": true }试了下这个模版,把typing删了再npm run dev并不会重新生成类型声明文件
"egg": { "declarations": true, "typescript": true },
from egg-bin.
https://github.com/eggjs/egg-boilerplate-ts/blob/master/boilerplate/_package.json 需要使用 ts 的脚手架,配置加上
"egg": { "typescript": true }试了下这个模版,把typing删了再npm run dev并不会重新生成类型声明文件
"egg": { "declarations": true, "typescript": true },
一样的,6.x的egg-bin的我试了还是不行
same problem here.
from egg-bin.
Related Issues (15)
- 配置 artus excludes 让 scripts 目录允许写 js 文件后缀
- 使用egg init创建项目后运行npm run dev报错,你们代码执行命令报错 HOT 13
- postinstall 运行 ets 不支持 monorepo HOT 2
- 'test-local-changed' won't work properly on Windows
- 报错如何消除
- 最新版 无法加载egg config.local.js 配置文件 HOT 1
- egg从2.x升级到3.17.5后,npm run debug不显示DevTools 地址 HOT 1
- egg-bin 启动时未生成typings目录反馈 HOT 2
- egg-bin@6,默认端口覆盖了 config.default.js 中配置的端口 HOT 4
- 网站 404 了 HOT 1
- Pick DAL Generation Feature to Master Branch
- Can "egg-bin dev" support "https" ?
- Track merging of feature from PR #264 into master branch
- Track merging of TS_NODE_TYPE_CHECK feature into master
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from egg-bin.