Avoid setting up a project from scratch. Start using VRTTV ๐
View Demo
ยท
Report Bug
ยท
Request Feature
Are you tired of always creating the same structure from scratch for your projects? Me too. ๐ฅฑ
This is my go-to when I start a new project on front-end development.
If you found it useful somehow, I would be grateful if you could leave a star in the project's GitHub repository ๐
- โก Vite - Next generation frontend tooling.
- ๐ฆ Imagemin - Plugin for compressing image assets.
- ๐ฆ Vite Plugin HTML - Plugin for processing HTML with minify.
- ๐ React - A JavaScript library for building user interfaces.
- ๐ React Router - Declarative routing for React apps at any scale.
- ๐ TypeScript - A superset of JavaScript.
- ๐จ Tailwind - A utility-first CSS framework.
- โ๏ธ Babel with preset-env - The compiler for next generation JavaScript.
- ๐ Prettier - Opinionated Code Formatter.
- ๐ ESLint - Tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
- ๐ฆ Simple Import Sort - Easy autofixable import sorting.
- ๐ฆ Import Plugin - Rules that help validate proper imports.
- ๐ฆ Tailwind Plugin - Plugin for Tailwind CSS usage.
- And a few other ES2015+ related rules.
- ๐ถ Husky - Git hooks made easy.
- ๐ช commit-msg
- ๐ช pre-commit
- ๐ซ Lint Staged - Run linters on git staged files.
- โ๏ธ Conventional Commits with ๐ Gitmoji - A specification for adding human and machine readable meaning to commit messages.
- ๐ฆ GitHub Actions - Automate your workflow on GitHub.
- ๐บ Vercel - Deploy your application on Vercel.
These are the necessary steps to use ๐ฏ of the potential of this boilerplate.
You need this technologies :
- Option 1: Generate a new repository with this template
- Option 2: Copy just the project scaffolding.
npx --yes degit Drumpy/vrttv-boilerplate your-folder-name
- Option 3: Clone the entire repository.
git clone https://github.com/Drumpy/vrttv-boilerplate
- Go to the project directory.
cd vrttv-boilerplate
- Install dependencies.
npm install
- Start the server.
npm run dev
- Run Vercel CLI in your project folder. After completed, a folder .vercel is created in your root directory.
vercel --confirm
- Go to actions secrets in your GitHub Repository.
https://github.com/your-username/your-repo-name/settings/secrets/actions/new
- Add this three tokens.
# Generate this in https://vercel.com/account/tokens
VERCEL_TOKEN
# It is located in 'project.json' inside the '.vercel' folder
ORG_ID
# It is located in 'project.json' inside the '.vercel' folder
PROJECT_ID
You can skip GitHub Action execution by adding [skip ci] to your commit message.
style: change the colors of the theme [skip ci]
- Run Husky command.
npx --yes husky install
- Use Gitmoji CLI to commit changes.
gitmoji -c
- Write your commits following the rules of Conventional Commit. Examples:
feat: added navbar component
fix(navbar): fixed all the broken links
Use this table as a reference when writing commits. Husky will be in charge of checking that the rules will be followed.
Commit Type | Title | Description | Emoji |
---|---|---|---|
feat |
Features | A new feature | โจ |
fix |
Bug Fixes | A bug fix | ๐ |
docs |
Documentation | Documentation only changes | ๐ |
style |
Styles | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) | ๐จ |
refactor |
Code Refactoring | A code change that neither fixes a bug nor adds a feature | โป๏ธ |
perf |
Performance Improvements | A code change that improves performance | โก |
test |
Tests | Adding missing tests or correcting existing tests | โ |
build |
Builds | Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) | ๐จ |
ci |
Continuous Integrations | Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs) | ๐ท |
chore |
Chores | Other changes that don't modify src or test files | โ |
revert |
Reverts | Reverts a previous commit | โช |
- ๐ Cancel Previous Redundant Builds
- ๐ Assign PR to creator
- ๐ ๐ผ Linting
- ๐ Deploy to Vercel
Diego Do Santos - [email protected]