Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何仅在构建时排除打字稿中的特定文件?
是否可以排除仅用于构建的所有测试文件 但将它们与 nodemon 一起使用以在本地运行测试 当我排除测试文件时tsconfig json在我的例子中 我收到一个打字稿错误 它找不到像 jest 这样的测试库的类型 Cannot find n
javascript
typescript
jestjs
tsconfig
修复 TS2688:在 node_modules 中找不到类型定义文件
运行 tsc 时 我得到了很多TS2688 Cannot find type definition file for someLibrary 这些库来自node modules 我曾尝试排除node modules and skipLibC
typescript
tsc
tsconfig
包含客户端、服务器和共享代码的项目中的 Typescript 文件夹结构
我有一个具有以下结构的项目 project client src index js and js some js other js files js public server out index js any other dependen
nodejs
typescript
directorystructure
tsconfig
typescriptcompilerapi
TypeScript TSConfig CompilerOptions ES2017 目标和库
我正在开发一个 TypeScript 项目 我们使用 ES2017 作为输出目标以及其中一个库 因为它将通过 Babel 并且我们希望支持任何 Env 的最新功能集我们的目标是巴别塔 一切似乎都很顺利 所以我不太担心 然而 我不知道幕后发生
typescript
ECMAScript6
babeljs
tsconfig
ecmascript2017
Angular 应用程序中的空注释
是否有任何配置设置可以删除这些空注释和空格 我的构建命令是ng build environment prod progress false target productiontsconfig 是 compileOnSave false co
angular
Angularcli
tsconfig
Jest 26 和 Angular - 错误行号报告不正确
自从升级到 Jest 26 和 Angular 10 以来 单元测试错误行号的报告不正确 我从 Angular 4 开始就一直使用 Jest 并且随着每个新版本的升级 我已经阅读了所有关于此的现有文章 并尝试了我能找到的所有建议 它们似乎都
angular
jestjs
tsconfig
tsjest
为什么 Vite 会创建两个 TypeScript 配置文件:tsconfig.json 和 tsconfig.node.json?
我正在使用Vite来创建一个新的 React TypeScript 项目 https vitejs dev guide scaffolding your first vite project 创建项目后 根文件夹中有两个 TypeScrip
javascript
typescript
tsconfig
vite
带有第三方库的 Typescript 3 项目参考(来自 npm)
我正在使用 Typescript 并尝试与服务工作者建立后台同步 有人建议我应该这样做this https stackoverflow com a 52377959 6683308 您可以使用单独的 tsconfig json 文件将项目拆
typescript
tsconfig
projectreference
如何在 vscode 中使用不同的 tsconfig 文件作为测试文件?
这个问题与这个问题类似 如何使用不同的tsconfig文件进行测试 https stackoverflow com questions 52890331 how to use different tsconfig file for test
typescript
VisualStudioCode
tsconfig
自定义 TypeScript 类型定义文件被忽略
我正在开发 Angular 9 项目 我想用一个调整大小观察者 https developer mozilla org en US docs Web API ResizeObserver 但由于 TypeScript 的 lib dom d
angular
typescript
VisualStudioCode
tsconfig
typedefinition
tsconfig.json typeroots 自定义路径未选取
我有一些自定义 d ts 文件 我希望 tsc 在编译时选取这些文件 为了完成此任务 我修改 tsconfig file 以包含以下内容 typeRoots node modules types app modules app module
typescript
module
tsconfig
打字稿路径无法解析
Here https github com oleersoy typescript pathsGithub MCVE 显示了一个问题 npm run compile显示错误 我正在尝试这样做 import Todo from test 但这
javascript
nodejs
typescript
tsconfig
由于 ɵɵFactoryTarget 未定义,在 Angular 中出现错误
我最近尝试将 Angular 10 升级到 Angular 12 但是 当我在浏览器中运行该项目时 我在控制台中收到此错误 vendor js 55447 Uncaught TypeError Cannot read property Di
angular
WEBPACK
Angularcli
tsconfig
不得设置compilerOptions.paths(不支持别名导入)
我正在尝试映射 tsconfig json 中的路径以摆脱相对路径地狱 我的React App 基于 Create React App 我试过这个所以线程 https stackoverflow com questions 43281741
ReactJS
typescript
tsconfig
tsconfigpaths
React Typescript 类型转换问题 - 解析错误:缺少分号
我有这行简单的代码 const target e target as HTMLLIElement 我收到此错误 Line 18 28 Parsing error Missing semicolon gt 18 const target e
javascript
ReactJS
typescript
eslint
tsconfig
如何在 TypeScript 中全局导入 Chai 'expect()' 函数?
其他相关问题只是问关于JavaScript的 但我知道Chai https en wikipedia org wiki List of unit testing frameworks JavaScript团队已经提供了 chai regis
typescript
types
chai
tsconfig
使用spec/test文件夹设置tsconfig
假设我把我的代码放在下面src和测试下spec spec classA spec ts src classA ts classB ts index ts tsconfig json 我只想转译src to the dist文件夹 自从ind
typescript
VisualStudioCode
tsconfig
Typescript noEmit 用例
用途是什么noEmit在打字稿中 我很感兴趣 因为我想看看是否可以使用它进行开发 在其中编译并运行编译后的代码 而不将它们输出到文件系统上 这样会更有效 编辑 也许这会很直接 我可以使用noEmit打字稿中的标签来编译和运行代码而不将它们输
typescript
tsc
tsconfig
打字稿不创建 dist 文件夹
尝试编写打字稿项目 这是我的项目结构 rootdir src server ts other folders node modules tsconfig json package json tsconfig json compilerOpt
nodejs
typescript
tsconfig
Angular 6 / 在 tsconfig.lib.json 中声明库的路径
我正在尝试配置路径Angular 6库 我已经成功配置了以前的 Angular 项目的路径 这是我以前的应用程序的工作原理tsconfig json file compilerOptions baseUrl src paths class
angular
path
tsconfig
compileroptions
angularlibrary
«
1
2
3
»