Javascript 如何在干净的Nest.js安装中忽略React.js源文件?
我有一个clean Nest.js安装和一个名为“client”的文件夹,其中包含create react app clean安装 假设项目结构为:Javascript 如何在干净的Nest.js安装中忽略React.js源文件?,javascript,reactjs,typescript,nestjs,tsconfig,Javascript,Reactjs,Typescript,Nestjs,Tsconfig,我有一个clean Nest.js安装和一个名为“client”的文件夹,其中包含create react app clean安装 假设项目结构为: ./ ...some Nest.js folders... client <- React.js is here ...some more Nest.js folders... tsconfig.json <- here the "client" folder is excluded in the "exclude" b
./
...some Nest.js folders...
client <- React.js is here
...some more Nest.js folders...
tsconfig.json <- here the "client" folder is excluded in the "exclude" block
您还必须排除
tsconfig.build.json中的文件夹
{
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"test",
"dist",
"**/*spec.ts",
"client"
]
}
repo真的很简单。复制步骤:1。全局安装Nest.js并创建一个新的Nest.js安装2。在安装文件夹3内创建一个文件夹“client”。全局安装“创建react应用程序”工具,并在“客户端”文件夹4内创建新的react安装。转到项目根文件夹并运行“npm run start:dev”并查找错误w!那很近。正是我一直在寻找的!非常感谢。
{
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"test",
"dist",
"**/*spec.ts",
"client"
]
}