如何在 Node/Typescript 中创建材质构建
我是 Typescript 世界的新手,想知道有什么方法可以在 Typescript 中创建“材料构建”,以便轻松更新服务版本? 例如我在 package.json 中有这个依赖项:
"devDependencies": {
"@types/googlemaps": "^3.43.3",
"ts-loader": "^6.2.1",
"typescript": "^3.7.2",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.9.0"
},
有没有办法创建这样的东西:
"devDependencies": {
"@types/googlemaps": "${google.version}",
"ts-loader": "${tsloader.version}"....
},
只是为了避免进入每个项目并逐一更新
I am new in the Typescript world, and would like to know, is there any way to create a "build of materials" in Typescript, to update the versions of services easily?
for example I have this dependencies in package.json:
"devDependencies": {
"@types/googlemaps": "^3.43.3",
"ts-loader": "^6.2.1",
"typescript": "^3.7.2",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.9.0"
},
Is there a way to create something like this:
"devDependencies": {
"@types/googlemaps": "${google.version}",
"ts-loader": "${tsloader.version}"....
},
just to avoid to go in each project and update one by one
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论