Skip to content

Commit

Permalink
feat: latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lotyp committed Dec 15, 2022
1 parent 18ee415 commit 0ef495f
Show file tree
Hide file tree
Showing 9 changed files with 821 additions and 76 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit "${1}"
17 changes: 17 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

echo '🏗️👷 Styling your project before committing👷‍♂️🏗️'
echo 'please be patient, this may take a while...'

# Check ESLint Standards
pnpm lint ||
(
echo '🔨❌ Yoo, you have a problem in your code. Check linter 🔨❌
Run pnpm lint, add changes and try commit again.';
false;
)

echo '🎉 No error found: committing this now.... ✨🚀🏄‍♂️🍻'

pnpm lint-staged --concurrent false
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ build:
$(NPM_RUNNER) run build
.PHONY: build

purge:
rm -rf .pnpm-store node_modules pnpm-lock.yaml
.PHONY: purge


# Docker Actions
# ------------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
command: '/bin/pnpm run dev'
environment:
- TERM=xterm-256color`
tty: true
labels:
- traefik.enable=true
- traefik.http.routers.${APP_NAME}.rule=Host(`${APP_NAME}.${PROJECT_SERVICES_NAMESPACE}.docker`)
Expand Down
7 changes: 7 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// More info — https://rizkicitra.dev/blog/how-to-setup-husky-nextjs
module.exports = {
'**/*.{js,jsx,ts,tsx}': ['eslint --fix', 'eslint', 'prettier --config ./.prettierrc.js --write'],
'**/*.ts?(x)': () => 'pnpm run check-types',
'*.json': ['prettier --config ./.prettierrc.js --write'],
'**/*.{css,scss,md,html,json}': ['prettier --config ./.prettierrc.js --write'],
}
22 changes: 20 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,36 @@
"version": "1.0.0",
"author": "[email protected]",
"license": "MIT",
"homepage": "https://wayof.dev",
"workspaces": [
"apps/*",
"packages/*"
],
"keywords": [
"template",
"boilerplate",
"nextjs",
"vercel",
"turbo",
"turbopack",
"wayofdev",
"monorepo",
"turborepo"
],
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev --parallel",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
"lint": "pnpm lint:secrets",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"prepare": "husky install"
},
"dependencies": {
"eslint": "^8.29.0"
},
"devDependencies": {
"eslint-config-custom": "workspace:*",
"husky": "^8.0.2",
"lint-staged": "^13.1.0",
"prettier": "latest",
"turbo": "latest"
},
Expand Down
12 changes: 7 additions & 5 deletions packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"eslint": "^7.23.0",
"eslint-config-next": "13.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-react": "7.31.8",
"eslint-config-turbo": "latest"
"eslint": "^8.29.0",
"eslint-config-next": "13.0.6",
"eslint-config-prettier": "^8.5.0",
"eslint-config-turbo": "latest",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"prettier": "latest"
},
"devDependencies": {
"typescript": "^4.7.4"
Expand Down
Loading

0 comments on commit 0ef495f

Please sign in to comment.