Skip to content

Commit

Permalink
ci(ci): 👷 add code owners and ci scripts with kodiak support
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Jul 14, 2022
1 parent 2a04c21 commit 60c9efa
Show file tree
Hide file tree
Showing 10 changed files with 131 additions and 24 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ yarn.lock
## library folder
dist
CHANGELOG.md
.yalc/
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
// https://github.com/lydell/eslint-plugin-simple-import-sort#custom-grouping
"groups": [
// Packages. `react` related packages come first.
["^react", "^ariakit", "^@adaptui/react", "^@?\\w"],
[
"^react",
"^ariakit",
"^ariakit-utils",
"^@adaptui/react",
"^@adaptui/react-tailwind",
"^@?\\w"
],
// Parent imports. Put `..` last.
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
// Other relative imports. Put same-folder imports and `.` last.
Expand Down
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Learn how to add code owners here:
# https://help.github.com/en/articles/about-code-owners

* @navin-moorthy
17 changes: 17 additions & 0 deletions .kodiak.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# .kodiak.toml
version = 1

[merge]
automerge_label = "ready 🎉"
require_automerge_label = false
delete_branch_on_merge = true
optimistic_updates = true
prioritize_ready_to_merge = true
notify_on_conflict = false

[merge.message]
title = "pull_request_title"
body = "github_default"
include_pr_number = true
body_type = "markdown"
strip_html_comments = true
4 changes: 0 additions & 4 deletions .lintstagedrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@ yarn.lock
# Library files
dist
CHANGELOG.md
.yalc/
public
33 changes: 32 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
{
"css.validate": false
"typescript.tsdk": "node_modules/typescript/lib",
"git.branchProtection": ["main"],
"editor.tabSize": 2,
"editor.guides.bracketPairs": true,
"editor.rulers": [80, 100, 120],
"editor.wordWrap": "bounded",
"editor.wordWrapColumn": 120,
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"files.eol": "\n",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.enable": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.addMissingImports": true,
// "source.organizeImports": true,
// "source.sortImports": true,
// "source.fixAll": true
"source.fixAll.eslint": true
// "source.fixAll.stylelint": true
},
"eslint.enable": true,
"eslint.useESLintClass": true,
"css.validate": false,
"eslint.validate": [
"javascript",
"javascriptreact",
"vue",
"typescript",
"typescriptreact",
"html"
]
}
41 changes: 26 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,57 @@
{
"name": "renderlesskit-tailwind-docs",
"name": "@adaptui/react-tailwind-docs",
"version": "1.0.0",
"private": true,
"description": "Personal Next React App",
"description": "AdaptUI React Tailwind Docs",
"keywords": [
"react",
"template",
"next-react-app",
"typescript",
"new-project",
"new-repo"
"adaptui",
"tailwind",
"docs"
],
"bugs": {
"url": "https://github.com/navin-moorthy/next-react-app/issues"
"url": "https://github.com/adaptui/react-tailwind-docs/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/navin-moorthy/next-react-app.git"
"url": "git+https://github.com/adaptui/react-tailwind-docs.git"
},
"license": "MIT",
"author": "Navin Moorthy <[email protected]>",
"author": "Timeless <[email protected]>",
"scripts": {
"postinstall": "husky install && patch-package",
"postinstall": "concurrently \"husky install\" \"patch-package\"",
"dev": "next dev",
"build": "next build",
"start": "next start",
"test": "jest --watch --watchAll=false",
"test:ci": "jest --ci",
"lint": "next lint",
"lint:fix": "eslint --color --ext .js,.jsx,.ts,.tsx . --fix",
"format": "prettier -wl \"./**/*.{html,css,js,jsx,ts,tsx,md,json}\"",
"format": "prettier --check \"./**/*.{html,css,js,jsx,ts,tsx,md,json}\"",
"format:fix": "prettier --write --list-different --cache \"./**/*.{html,css,js,jsx,ts,tsx,md,json}\"",
"format:package": "sort-package-json package.json",
"build": "next build",
"start": "next start",
"release": "release-it",
"postpublish": "pinst --enable",
"size": "yarn build && size-limit",
"commit": "gacp",
"contrib:init": "all-contributors init",
"contrib:add": "all-contributors add",
"contrib:generate": "all-contributors generate"
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"**/*.{js,jsx,tx,tsx}": [
"yarn lint:fix"
],
"**/*.{html,css,js,jsx,ts,tsx,md,json}": [
"yarn format:fix"
]
},
"browserslist": {
"production": [
">0.2%",
Expand Down Expand Up @@ -87,6 +97,7 @@
"all-contributors-cli": "6.20.0",
"autoprefixer": "10.4.7",
"babel-jest": "28.1.3",
"concurrently": "^7.2.2",
"eslint": "8.19.0",
"eslint-config-prettier": "8.5.0",
"eslint-config-react-app": "7.0.1",
Expand Down
44 changes: 43 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4218,6 +4218,21 @@ concat-stream@^2.0.0:
readable-stream "^3.0.2"
typedarray "^0.0.6"

concurrently@^7.2.2:
version "7.2.2"
resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-7.2.2.tgz#4ad4a4dfd3945f668d727379de2a29502e6a531c"
integrity sha512-DcQkI0ruil5BA/g7Xy3EWySGrFJovF5RYAYxwGvv9Jf9q9B1v3jPFP2tl6axExNf1qgF30kjoNYrangZ0ey4Aw==
dependencies:
chalk "^4.1.0"
date-fns "^2.16.1"
lodash "^4.17.21"
rxjs "^7.0.0"
shell-quote "^1.7.3"
spawn-command "^0.0.2-1"
supports-color "^8.1.0"
tree-kill "^1.2.2"
yargs "^17.3.1"

config-chain@^1.1.11:
version "1.1.13"
resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.13.tgz#fad0795aa6a6cdaff9ed1b68e9dff94372c232f4"
Expand Down Expand Up @@ -4600,6 +4615,11 @@ data-urls@^3.0.1:
whatwg-mimetype "^3.0.0"
whatwg-url "^11.0.0"

date-fns@^2.16.1:
version "2.28.0"
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.28.0.tgz#9570d656f5fc13143e50c975a3b6bbeb46cd08b2"
integrity sha512-8d35hViGYx/QH0icHYCeLmsLmMUheMmTyV9Fcm6gvNwdw31yXXH+O85sOBJ+OLnLQMKZowvpKb6FgMIQjcpvQw==

dateformat@^3.0.0:
version "3.0.3"
resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae"
Expand Down Expand Up @@ -9840,6 +9860,13 @@ rxjs@^6.6.0:
dependencies:
tslib "^1.9.0"

rxjs@^7.0.0:
version "7.5.6"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.6.tgz#0446577557862afd6903517ce7cae79ecb9662bc"
integrity sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==
dependencies:
tslib "^2.1.0"

rxjs@^7.5.5:
version "7.5.5"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.5.tgz#2ebad89af0f560f460ad5cc4213219e1f7dd4e9f"
Expand Down Expand Up @@ -9976,6 +10003,11 @@ shebang-regex@^3.0.0:
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==

shell-quote@^1.7.3:
version "1.7.3"
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.3.tgz#aa40edac170445b9a431e17bb62c0b881b9c4123"
integrity sha512-Vpfqwm4EnqGdlsBFNmHhxhElJYrdfcxPThu+ryKS5J8L/fhAwLazFZtq+S+TWZ9ANj2piSQLGj6NQg+lKPmxrw==

[email protected]:
version "0.8.5"
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c"
Expand Down Expand Up @@ -10144,6 +10176,11 @@ space-separated-tokens@^2.0.0:
resolved "https://registry.yarnpkg.com/space-separated-tokens/-/space-separated-tokens-2.0.1.tgz#43193cec4fb858a2ce934b7f98b7f2c18107098b"
integrity sha512-ekwEbFp5aqSPKaqeY1PGrlGQxPNaq+Cnx4+bE2D8sciBQrHpbwoBbawqTN2+6jPs9IdWxxiUcN0K2pkczD3zmw==

spawn-command@^0.0.2-1:
version "0.0.2-1"
resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0"
integrity sha512-n98l9E2RMSJ9ON1AKisHzz7V42VDiBQGY6PB1BwRglz99wpVsSuGzQ+jOi6lFXBGVTCrRpltvjm+/XA+tpeJrg==

spdx-correct@^3.0.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.1.tgz#dece81ac9c1e6713e5f7d1b6f17d468fa53d89a9"
Expand Down Expand Up @@ -10412,7 +10449,7 @@ supports-color@^7.0.0, supports-color@^7.1.0:
dependencies:
has-flag "^4.0.0"

supports-color@^8.0.0:
supports-color@^8.0.0, supports-color@^8.1.0:
version "8.1.1"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c"
integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==
Expand Down Expand Up @@ -10609,6 +10646,11 @@ tr46@~0.0.3:
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=

tree-kill@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc"
integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==

trim-newlines@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144"
Expand Down

0 comments on commit 60c9efa

Please sign in to comment.