
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@yzyaz/cra-template-typescript
Advanced tools
自定义react脚手架模板, The base TypeScript template for Create React App.
This is the official TypeScript template for Create React App.
To use this template, add --template typescript
when creating a new app.
For example:
npx create-react-app my-app --scripts-version @yzyaz/react-scripts --template @yzyaz/typescript
# or
yarn create react-app my-app --scripts-version @yzyaz/react-scripts --template @yzyaz/typescript
For more information, please refer to:
可使用less。 且默认开启postcss.config.js配置方便配置(若需要关闭只使用默认的配置可设置环境变量YZY_DEFAULT_POSTCSS_CONFIG=true)
在assets>style中的css架构
默认采用rematch全局管理, 见models目录, 使用见pages>Account>index.tsx
默认加入了@welldone-software/why-did-you-render来进行页面多余渲染的检测
在.github>node.yml中配置了部署至GitHub Pages和自己服务器的脚本, 打开注释即可, 具体配置见文档: https://yzyaz.yuque.com/docs/share/ed27925f-1396-490b-9106-2ebea37be9df?# 《GitHub actions与部署至GitHub pages和部署至》
使用react-router-config进行路由管理
使用husky, 对提交时进行规范检查, 包含:
commitlint: 检查提交规范, 不规范则退出, 规范如下:
<type>(<scope>): <subject>
│ │ │
│ │ └─⫸ 描述:指的是对代码变更的简短总结
│ │
│ └─⫸ 作用域: animations|bazel|benchpress|common|compiler|...
│
└─⫸ 提交类型:build|ci|docs|feat|fix|perf|refactor|test...(必须, 类型见.czrc文件)
可手敲, 也可使用这两个命令进行规范提交
yarn commit
#or
npm run commit
eslint: 检查错误, 超过0个提示则退出
stylelint: 检查错误, 有报错则退出
prettier: 使用prettier进行格式化
yarn release
#or
npm run release
FAQs
自定义react脚手架模板, The base TypeScript template for Create React App.
The npm package @yzyaz/cra-template-typescript receives a total of 6 weekly downloads. As such, @yzyaz/cra-template-typescript popularity was classified as not popular.
We found that @yzyaz/cra-template-typescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.