-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds prettier - Adds lint-staged and husky - Adds bin scripts - Adds initial react app
- Loading branch information
1 parent
b97d92f
commit d5dcc90
Showing
34 changed files
with
5,286 additions
and
7,177 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npm run staged |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = { | ||
'./client-mu-plugins/goodbids/assets/**/*.{js,jsx,ts,tsx}': [ | ||
'eslint', | ||
'prettier --check ./client-mu-plugins/goodbids/src/**/*.{js,jsx,ts,tsx}', | ||
], | ||
'./client-mu-plugins/goodbids/assets/**/*.css': [ | ||
'prettier --check ./client-mu-plugins/goodbids/src/**/*.css', | ||
], | ||
}; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
18 |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
arrowParens: 'always', | ||
bracketSameLine: false, | ||
bracketSpacing: true, | ||
htmlWhitespaceSensitivity: 'css', | ||
printWidth: 80, | ||
proseWrap: 'preserve', | ||
semi: true, | ||
singleQuote: true, | ||
tabWidth: 2, | ||
trailingComma: 'all', | ||
useTabs: false, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
nodejs 18.19.0 |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# bin/format: Check for formatting errors | ||
# | ||
# When to use: | ||
# - When you want to check for formatting errors | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
npm run format |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# bin/format-fix: Fix formatting errors | ||
# | ||
# When to use: | ||
# - When you want to fix for formatting errors | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
npm run format:fix |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# bin/install: Install dependencies | ||
# | ||
# When to use: | ||
# - When you want to install dependencies | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
# Install composer dev dependencies | ||
composer install | ||
npm install | ||
|
||
# Install must-use plugin dependencies | ||
cd client-mu-plugins/goodbids | ||
composer install |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# bin/lint: Check for linting errors | ||
# | ||
# When to use: | ||
# - When you want to check for linting errors | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
npm run lint |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# bin/lint-fix: Fix linting errors | ||
# | ||
# When to use: | ||
# - When you want to fix linting errors | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
npm run lint:fix |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# bin/start: Start local dev with VIP CLI | ||
# | ||
# When to use: | ||
# - When you want to run the WP server | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
vip dev-env --slug=goodbids start |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# bin/start: Stop local dev with VIP CLI | ||
# | ||
# When to use: | ||
# - When you want to stop the WP server | ||
|
||
set -e | ||
|
||
cd "$(dirname "$0")/.." | ||
|
||
vip dev-env --slug=goodbids stop |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
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 +1 @@ | ||
import './assets/css/admin.css' | ||
import './assets/css/admin.css'; |
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,21 +1,21 @@ | ||
.form-field #gbnp-legal-name, | ||
.form-field #gbnp-ein, | ||
.form-field #gbnp-website { | ||
max-width: 25em; | ||
max-width: 25em; | ||
} | ||
|
||
.warning-message { | ||
background: #fff; | ||
border: 1px solid #c3c4c7; | ||
border-left: 4px solid #dba617; | ||
box-shadow: 0 1px 1px rgba(0,0,0,.04); | ||
display: inline-block; | ||
margin: 5px 0 15px; | ||
padding: 1px 12px; | ||
background: #fff; | ||
border: 1px solid #c3c4c7; | ||
border-left: 4px solid #dba617; | ||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04); | ||
display: inline-block; | ||
margin: 5px 0 15px; | ||
padding: 1px 12px; | ||
} | ||
.warning-message p { | ||
font-size: 13px; | ||
line-height: 1.5; | ||
margin: 0.5em 0; | ||
padding: 2px; | ||
font-size: 13px; | ||
line-height: 1.5; | ||
margin: 0.5em 0; | ||
padding: 2px; | ||
} |
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.