-
-
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.
- Loading branch information
1 parent
fe76e2c
commit a8a7026
Showing
13 changed files
with
209 additions
and
419 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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,5 @@ | ||
# @generated SignedSource<<925cadd58f83cc3dc04af9cddfbc19be>> | ||
|
||
# paularmstrong-dev | ||
@paularmstrong | ||
|
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,7 +1,7 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
. "$(dirname -- "$0")/_/hooks.sh" | ||
|
||
# If the third argument is "1", then we have switched branches | ||
if [ $3 = '1' ]; then | ||
./bin/dev.mjs tasks -c post-checkout | ||
one tasks --lifecycle=post-checkout | ||
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/hooks.sh" | ||
|
||
one tasks --lifecycle=post-merge |
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")/_/hooks.sh" | ||
|
||
one tasks --lifecycle=post-checkout |
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")/_/hooks.sh" | ||
|
||
one tasks --lifecycle=pre-commit |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import type { Config } from 'onerepo'; | ||
import { eslint } from '@onerepo/plugin-eslint'; | ||
import { prettier } from '@onerepo/plugin-prettier'; | ||
import { typescript } from '@onerepo/plugin-typescript'; | ||
|
||
export default { | ||
root: true, | ||
|
||
codeowners: { | ||
'.': ['@paularmstrong'], | ||
}, | ||
|
||
dependencies: { | ||
mode: 'loose', | ||
dedupe: true, | ||
}, | ||
|
||
tasks: { | ||
'pre-commit': { | ||
parallel: [['$0 lint --add', '$0 format --add'], { cmd: '$0 astro -- check', match: '**/*.astro' }], | ||
serial: [{ cmd: '$0 astro -- sync', match: 'src/content/**' }, '$0 tsc'], | ||
}, | ||
'pre-merge': { | ||
serial: ['$0 lint --all --no-fix', '$0 format --check', '$0 tsc', '$0 tasks -c build', '$0 astro -- check'], | ||
}, | ||
'post-checkout': { | ||
serial: ['yarn'], | ||
}, | ||
build: { | ||
serial: ['$0 astro -- build'], | ||
}, | ||
}, | ||
|
||
plugins: [ | ||
eslint({ name: ['lint', 'eslint'], extensions: ['ts', 'tsx', 'js', 'jsx', 'cjs', 'mjs', 'astro'] }), | ||
prettier({ name: ['format', 'prettier'] }), | ||
typescript({ tsconfig: 'tsconfig.json', useProjectReferences: false }), | ||
], | ||
|
||
vcs: { | ||
autoSyncHooks: true, | ||
}, | ||
|
||
templateDir: './config/templates', | ||
} satisfies Config; |
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.