【文件属性】:
文件名称:typescript-template:用于启动TypeScript项目的模板
文件大小:185KB
文件格式:ZIP
更新时间:2021-02-12 15:31:28
TypeScript
TypeScript模板
用于创建TypeScript项目的模板。 它是使用TypeScript时所需的所有基本配置。
TypeScript支持
ESLint配置
开玩笑的设置
使用Github操作的CI / CD管道
几乎零配置NPM发布
安装
这是一个模板存储库。 因此,请按照。
所有依赖项都应该是最新的,因此只需运行npm i即可安装依赖项。
建立
要构建脚本:
npm run build
ESLint
如果您使用VS Code,则每次保存时,所有内容都会被整理和格式化。
或者,您可以运行:
npm run lint
笑话
笑话已经设置好了。 测试时将运行任何*.test.ts文件。
要运行测试:
npm run test # or
npm run test:watch
CI / CD
Dependabot
Dependabot自动更新您的依赖关系。 这包括您的np
【文件预览】:
typescript-template-main
----.gitignore(2KB)
----.eslintrc(103B)
----package.json(1KB)
----package-lock.json(1.03MB)
----babel.config.cjs(128B)
----LICENSE(1KB)
----tsconfig.json(669B)
----.github()
--------workflows()
--------dependabot.yml(202B)
----test-setup.ts(209B)
----README.md(2KB)
----.vscode()
--------settings.json(158B)
----.npmignore(21B)
----.gitattributes(66B)