Code Monkey home page Code Monkey logo

auto-project's Introduction

一个基于 Git Actions 的 CI/CD 流程

✨ Features

  • 🌈 eslint、prettier
  • 📦 husky
  • 🛡 git-cz
  • ⚙️ 基于nginx部署的docker
  • 🌍 在pull request时触发 CI/CD
  • 🎨 基于vitest的功能测试(还在完善中...)

Install

pnpm install
pnpm dev

提交

git add .
pnpm start
git push origin 分支名

目录结构

auto-project   
├─ .github
│  ├─ workflows
│  │  ├─ ci.yml      # 触发 ci 的 yml 文件
├─ .husky
│  ├─ commit-msg.sh  # 执行 commitlint 的脚本
│  ├─ pre-commit.sh  # 提交 commit 之前,执行 lint-staged 命令
├─ dist                                    
├─ public                                  
├─ src                       
│  ├─ assets                        
│  ├─ App.tsx                
│  ├─ main.tsx               
│  └─ vite-env.d.ts          
├─ Dockerfile              # 基于Dockerfile文件生成镜像             
├─ README.md                 
├─ commitlint.config.js    # commitlint检查,提交时检查commit信息是否符合规范  
├─ deploy.sh               # 登录服务器后的执行脚本,写在服务器中             
├─ index.html                
├─ nginx.conf              # nginx配置文件             
├─ package.json              
├─ pnpm-lock.yaml            
├─ tsconfig.json             
├─ tsconfig.node.json        
├─ vite.config.ts            
└─ vitest.config.ts          

⚠️注意deploy.sh中的变量需要在github中进行配置secrets和vars

auto-project's People

Contributors

jiaynn avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.