Skip to content

Instantly share code, notes, and snippets.

View withchandra's full-sized avatar

Chandra withchandra

View GitHub Profile
/vendor/
node_modules/
npm-debug.log
yarn-error.log
# Laravel 4 specific
bootstrap/compiled.php
app/storage/
# Laravel 5 & Lumen specific
@withchandra
withchandra / README.md
Last active August 26, 2020 13:51
Default README.md for initial project

README / BACA DULU

This is Talenavi default readme file, please add important instruction here based on each project.

Preparation before cloning / Persiapan sebelum clone

  • Make sure your PHP version is suitable with this laravel
  • You have installed composer (https://getcomposer.org)
  • You have installed nodeJS (https://nodejs.org)
  • Make sure you have npm ready by running npm --version
@withchandra
withchandra / #readme.md
Last active July 9, 2024 09:04
Laravel + PHP CS Fixer + Prettier + ESLint + airbnb-base + Husky + lint-staged + commitlint + pre-commit hook + pre-push hook

This is my personal setup for linting and repo branches protection for a new laravel project. Feel free to copy and adjust.

Reason

I am using both bitbucket and github for mostly private projects, while bitbucket allows private repo to use advance features such as branch permission, github limit their protected branch feature for free-user.

On the other hand, implementing standard linting for both JS and PHP will help code-reviewer to read and evaluate the code.

Last but not least, standardized commit message will make everybody happy. =)