-
Notifications
You must be signed in to change notification settings - Fork 17
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
0 parents
commit 3d5862c
Showing
718 changed files
with
59,250 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"exclude": "node_modules/**", | ||
"presets": [ | ||
["@babel/preset-react", { "runtime": "automatic" }], | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"modules": false, | ||
"targets": { | ||
"browsers": ["last 2 versions"] | ||
} | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-object-rest-spread", | ||
"@babel/plugin-syntax-dynamic-import", | ||
"@babel/plugin-transform-runtime", | ||
"@emotion/babel-plugin" | ||
], | ||
"env": { | ||
"test": { | ||
"plugins": ["@babel/plugin-transform-modules-commonjs"] | ||
} | ||
} | ||
} |
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 @@ | ||
>0.2%, | ||
not dead, | ||
not ie <= 11, | ||
not op_mini all |
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,3 @@ | ||
module.exports = { | ||
displayTypes: ['feat', 'fix', 'perf', 'refactor', 'revert'], | ||
}; |
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 @@ | ||
module.exports = { extends: ['gitmoji'] }; |
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,14 @@ | ||
FROM node:latest as builder | ||
|
||
WORKDIR /opt/app | ||
COPY . /opt/app/ | ||
|
||
RUN yarn build-docs | ||
|
||
# Serve | ||
|
||
FROM nginx:1.15-alpine | ||
COPY --from=builder /opt/app/.docz/dist /usr/share/nginx/html | ||
COPY --from=builder /opt/app/.docker/prod/nginx.conf /etc/nginx/conf.d/default.conf | ||
|
||
EXPOSE 80 |
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,11 @@ | ||
server { | ||
listen 80; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html; | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
|
||
include /etc/nginx/extra-conf.d/*.conf; | ||
} |
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 @@ | ||
node_modules/ |
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 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md, *.mdx] | ||
trim_trailing_whitespace = 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,11 @@ | ||
*.json | ||
.docz/ | ||
lib/ | ||
postcss.config.js | ||
scripts/ | ||
src/**/*.test.js | ||
src/styles/ | ||
src/icons/ | ||
webpack.*.js | ||
jest.config.js | ||
jest.config.ci.js |
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,97 @@ | ||
{ | ||
"extends": ["prettier", "prettier/react", "plugin:jsx-a11y/recommended"], | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true, | ||
"jest": true | ||
}, | ||
"plugins": ["react", "prettier", "json", "react-hooks", "jsx-a11y", "import", "jest"], | ||
"rules": { | ||
"arrow-parens": 0, | ||
"camelcase": 0, | ||
"import/first": 0, | ||
"import/newline-after-import": ["error", { "count": 1 }], | ||
"import/no-named-default": 0, | ||
"import/prefer-default-export": 0, | ||
"import/order": [ | ||
"error", | ||
{ | ||
"groups": [["builtin", "external"], "internal", ["parent", "sibling", "index"]] | ||
} | ||
], | ||
"no-console": 2, | ||
"no-param-reassign": [2, { "props": false }], | ||
"no-shadow": 0, | ||
"no-underscore-dangle": ["error", { "allow": ["_id"] }], | ||
"no-unused-expressions": 0, | ||
"react-hooks/rules-of-hooks": 2, | ||
"react-hooks/exhaustive-deps": "warn", | ||
"react/forbid-prop-types": 0, | ||
"react/jsx-curly-brace-presence": 0, | ||
"react/jsx-filename-extension": 0, | ||
"react/jsx-props-no-spreading": 0, | ||
"jsx-a11y/anchor-is-valid": ["error", { "components": ["Link"], "specialLink": ["onClick", "to"] }] | ||
}, | ||
"globals": { | ||
"document": true, | ||
"window": true | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"paths": ["src"], | ||
"extensions": [".js", ".jsx", ".ts", ".tsx"] | ||
} | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.ts", "**/*.tsx"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"project": ["./tsconfig.json"] | ||
}, | ||
"plugins": ["@typescript-eslint", "react", "prettier", "json", "react-hooks", "jsx-a11y"], | ||
"rules": { | ||
"arrow-parens": 0, | ||
"camelcase": 0, | ||
"import/first": 0, | ||
"import/no-named-default": 0, | ||
"import/prefer-default-export": 0, | ||
"import/order": [ | ||
"error", | ||
{ | ||
"groups": [["builtin", "external"], "internal", ["parent", "sibling", "index"]] | ||
} | ||
], | ||
"no-console": 2, | ||
"no-param-reassign": [2, { "props": false }], | ||
"no-shadow": 0, | ||
"no-underscore-dangle": ["error", { "allow": ["_id"] }], | ||
"no-unused-expressions": 0, | ||
"no-void": 0, | ||
"react-hooks/rules-of-hooks": 2, | ||
"react-hooks/exhaustive-deps": "warn", | ||
"react/forbid-prop-types": 0, | ||
"react/jsx-curly-brace-presence": 0, | ||
"react/jsx-filename-extension": 0, | ||
"react/jsx-props-no-spreading": 0, | ||
"jsx-a11y/anchor-is-valid": ["error", { "components": ["Link"], "specialLink": ["onClick", "to"] }] | ||
} | ||
} | ||
] | ||
} |
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,27 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '15' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Build library | ||
run: yarn build-lib | ||
|
||
- name: Run tests | ||
run: yarn test --ci --coverage |
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,33 @@ | ||
name: Docs | ||
|
||
on: | ||
release: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '15' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Build library | ||
run: yarn build-docs | ||
|
||
- uses: burnett01/[email protected] | ||
with: | ||
switches: -avz --delete | ||
path: .docz/dist | ||
remote_path: ./phorkit/ | ||
remote_host: phork.org | ||
remote_user: phorkit | ||
remote_key: ${{ secrets.DEPLOY_KEY }} |
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,49 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '15' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Build library | ||
run: yarn build-lib | ||
|
||
- name: Run tests | ||
run: yarn test --ci --coverage | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
registry-url: 'https://npm.pkg.github.com' | ||
|
||
- name: Publish and tag | ||
run: | | ||
# We need npm 7.7.0 or higher; see https://github.com/npm/cli/issues/2834 | ||
npm install -g npm@latest | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
# Create the changelog, update the version and publish using the config from .releaserc | ||
npx semantic-release | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GIT_AUTHOR_NAME: phorkish | ||
GIT_AUTHOR_EMAIL: [email protected] | ||
GIT_COMMITTER_NAME: phorkish | ||
GIT_COMMITTER_EMAIL: [email protected] |
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,25 @@ | ||
# dependencies | ||
node_modules/ | ||
|
||
# production | ||
/.docz | ||
/lib | ||
|
||
# rollup | ||
.rollup.cache | ||
component-info.json | ||
.size-snapshot.json | ||
|
||
# privacy | ||
.env | ||
.npmrc | ||
|
||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
tsconfig.tsbuildinfo | ||
|
||
# development | ||
.DS_Store | ||
.vscode |
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,14 @@ | ||
*.json | ||
.docz/ | ||
scripts/ | ||
config/ | ||
lib/ | ||
src/icons/ | ||
src/styles/fonts/** | ||
src/components/ErrorBoundary/ErrorBoundary.tsx | ||
src/**/docs/* | ||
src/gatsby-theme-docz/ | ||
*.d.ts | ||
*.mdx | ||
.rollup.cache | ||
`` |
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,17 @@ | ||
{ | ||
"printWidth": 120, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"arrowParens": "avoid", | ||
"importOrder": [ | ||
"^[./]*types(.*)$", | ||
"^[./]*config(.*)$", | ||
"^[./]*context(.*)$", | ||
"^[./]*hooks(.*)$", | ||
"^[./]*utils(.*)$", | ||
"^[./]*icons(.*)$", | ||
"^[./]", | ||
"^[./]*styles(.*)$" | ||
], | ||
"importOrderSeparation": false | ||
} |
Oops, something went wrong.