-
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.
Add Husky, lint-staged to package.json. Fixes #23
- Add `husky` and configuration - Add `lint-staged` and configuration - Adjust `package.json` scripts - Alphabetize scripts in `package.json` for easy readability - Update URL in `"homepage"` object - Remove `npx` prefix from scripts - Update `"bugs"` object in `package.json`
- Loading branch information
Showing
12 changed files
with
1,148 additions
and
295 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
name: Build and release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
- "v*.*.*-rc.*" | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
- 'v*.*.*-rc.*' | ||
|
||
permissions: | ||
contents: write | ||
contents: write | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 14 | ||
cache: "npm" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: 14 | ||
cache: 'npm' | ||
|
||
- name: Install Node dependencies | ||
run: npm install | ||
- name: Install Node dependencies | ||
run: npm install | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict | ||
- name: Validate composer.json and composer.lock | ||
run: composer validate --strict | ||
|
||
- name: Install PHP dependencies | ||
run: composer install --no-progress | ||
- name: Install PHP dependencies | ||
run: composer install --no-progress | ||
|
||
- name: Build theme | ||
run: npm run build | ||
- name: Build theme | ||
run: npm run build | ||
|
||
- name: Package theme | ||
run: ./node_modules/.bin/wp-scripts plugin-zip | ||
- name: Package theme | ||
run: ./node_modules/.bin/wp-scripts plugin-zip | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ucsc-2022.zip | ||
generate_release_notes: true | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ucsc-2022.zip | ||
generate_release_notes: true |
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 test |
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 @@ | ||
module.exports = { | ||
'*.{css,scss}': 'npm run lint:style', | ||
'*.js': 'npm run format', | ||
}; |
Oops, something went wrong.