# web-template **Repository Path**: jaydiy/web-template ## Basic Information - **Project Name**: web-template - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-11 - **Last Updated**: 2024-12-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 这是一个前端项目模板 这是一个基于各种前端框架和工具的前端项目模板,方便快速开发 ## 搭建步骤 1. 生成项目 ```shell npm init -y ``` 2. EditorConfig ```shell # ``editor touch .editorconfig ``` 3. stylelint - ignore ```shell touch .stylelintignore ``` 4. Markdownlint ```shell # ``mdlint 参照文件中的步骤说明 # 1. 安装包 # npm install -D markdownlint-cli npm install --save-dev markdownlint-cli2 # 2. # markdownlint **/*.md markdownlint-cli2 "**/*.md" "#node_modules" markdownlint-cli2 --fix "**/*.md" "#node_modules" ``` 5. .vscode/settings 6. git init ```shell git init touch .gitignore git add . git commit -m "init" ``` 7. commitizen ```shell npm install -g commitizen commitizen init cz-conventional-changelog --save-dev --save-exact git add. && git cz ``` package.json 中添加脚本 `"cz": "git-cz"`, 运行 `npm run cz` 提交代码 8. todo ## 目录结构