-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #528 from bartoval/enable_compress_webpack
Enable compress webpack
- Loading branch information
Showing
13 changed files
with
636 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
name: Lint Commit Messages | ||
on: [pull_request, push] | ||
name: Lint Commit Messages 📝 | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- v2 | ||
push: | ||
branches: | ||
- main | ||
- v2 | ||
|
||
jobs: | ||
commitlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout code 📥 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: wagoid/commitlint-github-action@v5 | ||
|
||
- name: Run commit lint check ✅ | ||
uses: wagoid/commitlint-github-action@v5 | ||
with: | ||
configFile: .commitlint.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Run the commitlint tool to check the commit message format during the commit-msg hook | ||
npx --no -- commitlint --edit ${1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
#!/bin/sh | ||
# .husky/pre-commit | ||
|
||
# Check if the "node_modules" directory exists, otherwise run yarn install | ||
if [ ! -d "node_modules" ]; then | ||
echo "node_modules directory not found. Running yarn install..." | ||
yarn install | ||
if ! yarn install; then | ||
echo "Error: yarn install failed!" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
# prettier | ||
yarn format | ||
|
||
# Run code formatting with Prettier | ||
echo "Running Prettier formatting..." | ||
if ! yarn format; then | ||
echo "Error: Code formatting failed!" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
#!/bin/sh | ||
yarn lint-fix | ||
yarn tsc | ||
|
||
# Run ESLint fix to automatically address any issues identified by ESLint | ||
echo "Running ESLint fix..." | ||
if ! yarn lint-fix; then | ||
echo "Error: ESLint fix failed!" | ||
exit 1 | ||
fi | ||
|
||
# Run TypeScript type check using tsc to verify the code compiles without errors | ||
echo "Running TypeScript type check..." | ||
if ! yarn tsc; then | ||
echo "Error: TypeScript check failed!" | ||
exit 1 | ||
fi | ||
|
||
# Run TypeScript type check using tsc to verify the code compiles without errors | ||
echo "Running TypeScript type dep. cycles..." | ||
if ! yarn check-cycles; then | ||
echo "Error: TypeScript dep. cycles failed!" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.