with Github Actions and config setup (package manager, bundler...)
🛑 Must install Bun first, using this command:
curl -fsSL https://bun.sh/install | bash
- To have auto-prepended emojis in your commits, run the following:
(ex:fix ajax stuff
becomes🐛 Fix: ajax stuff
automatically)
bunx husky install
-
Edit deployment files paths located in:
.github/workflows/deploy-preprod.yml
.github/workflows/deploy-prod.yml
-
Set repository secrets below in repository settings:
PREPROD_FTP_HOST PREPROD_FTP_USER PREPROD_FTP_PASS PROD_FTP_HOST PROD_FTP_USER PROD_FTP_PASS
- Copy code below into
.github/README.md
and change repository paths!
# Project
### Status
![deploy-preprod](https://github.com/DamChtlv/git-template/actions/workflows/deploy-preprod.yml/badge.svg?branch=release/preprod)
![deploy-prod](https://github.com/DamChtlv/git-template/actions/workflows/deploy-prod.yml/badge.svg?branch=release/prod)
Package manager / bundler / test runner used in this repo is bun
- Install scripts
bun i
- Run scripts (from
package.json
)
bun run script-name
- Execute package
bunx module-name
- Build assets
bun build ./index.js --outdir ./build
- Spin up a static server on
localhost:5000
bunx serve folder-name
- Run tests
bun test
- Force lint commits messages using commitlint?
- Automatically generate a changelog based on commits using Git Cliff?