Skip to content

Commit

Permalink
feat: add create project codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbruijn committed Oct 24, 2023
0 parents commit d77177b
Show file tree
Hide file tree
Showing 35 changed files with 17,987 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions .github/husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

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

npx --no-install lint-staged --config .github/lint-staged.js
6 changes: 6 additions & 0 deletions .github/lint-staged.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const config = {
'*.{ts,tsx,js,jsx}': ['xo --fix', () => 'ava'],
'*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}':
'prettier --write',
};
export default config;
4 changes: 4 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>vidavidorra/.github"]
}
36 changes: 36 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI/CD
on:
push:
branches:
- main
- beta
- renovate/**
pull_request: null
jobs:
lint-commit-messages:
uses: vidavidorra/.github/.github/workflows/lint-commit-messages.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
lint:
uses: vidavidorra/.github/.github/workflows/node-lint.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
build:
uses: vidavidorra/.github/.github/workflows/node-build.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
test:
uses: vidavidorra/.github/.github/workflows/node-test.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
code-coverage:
uses: vidavidorra/.github/.github/workflows/node-test-coverage.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
needs:
- lint
- build
- test
secrets:
codecovToken: ${{ secrets.CODECOV_TOKEN }}
release:
uses: vidavidorra/.github/.github/workflows/release.yml@62580a2290da7a11a4332bbafc49ecb895d6873e # v3.0.0
needs:
- lint-commit-messages
- lint
- build
- test
- code-coverage
secrets:
privateKey: ${{ secrets.RELEASE_PRIVATE_KEY }}
npmToken: ${{ secrets.NPM_PUBLISH_TOKEN }}
Loading

0 comments on commit d77177b

Please sign in to comment.