Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create documentation website #356

Merged
merged 36 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5248b6d
Bump @babel/traverse from 7.18.5 to 7.23.2
dependabot[bot] Oct 17, 2023
07d7087
Yarn deduplicate
benjie Oct 17, 2023
ef16b12
Update deps
benjie Oct 17, 2023
4b00c49
Refresh yarn.lock
benjie Oct 17, 2023
a6ce74b
Tweaks for TypeScript
benjie Oct 17, 2023
b14b2c4
Lint fixes
benjie Oct 17, 2023
002a619
Downgrade jest due to pg connection hang, and prettier due to jest
benjie Oct 17, 2023
b7c1240
Couple minor tweaks
benjie Oct 17, 2023
67dcd56
TS Node16
benjie Oct 17, 2023
4dc4c74
Import configuration from graphile.config.ts or similar file
benjie Oct 17, 2023
950cbd4
Lint fixes
benjie Oct 18, 2023
a5e69b0
Cache prettier
benjie Oct 18, 2023
7b66b86
Stricter ESLint
benjie Oct 18, 2023
c216dc7
Lint fixes
benjie Oct 18, 2023
b94f9b1
Bump CI node versions
benjie Oct 18, 2023
a32d5f5
CI fixes for Node 18
benjie Oct 18, 2023
1056a32
There's no place like 127.0.0.1
benjie Oct 18, 2023
640e116
Expose function to turn preset into runnerOptions/etc
benjie Oct 18, 2023
c1253ee
Add to release notes
benjie Oct 18, 2023
db10d43
Lint
benjie Oct 18, 2023
6e25b51
Move validation
benjie Oct 18, 2023
096c14b
Clearer configuration
benjie Oct 18, 2023
22d2ae1
unknown preferred over any
benjie Oct 18, 2023
023dd31
Note the change from 'any' to 'unknown'
benjie Oct 18, 2023
3dbf292
Add a basic config
benjie Oct 18, 2023
920e72f
Couple handy utility tasks
benjie Oct 18, 2023
7f8ecc0
Ignore _LOCAL folder
benjie Oct 18, 2023
1711690
Initial Docusaurus website
benjie Oct 18, 2023
637bb2f
Add documentation to website
benjie Oct 18, 2023
7f56483
Add CNAME file
benjie Oct 18, 2023
c3b2b1a
Prepare for deployment
benjie Oct 18, 2023
4f5a3b5
Fix broken links
benjie Oct 18, 2023
a583a02
Lint fixes
benjie Oct 18, 2023
4ea1f39
Update .eslintignore
benjie Oct 18, 2023
bb185c2
Disable a lint rule in Docusaurus
benjie Oct 18, 2023
6d30420
No nonbreaking spaces
benjie Oct 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
dist
src/generated
/node_modules
/dist
/src/generated
/rewired
/website/build
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/typescript",
"prettier",
Expand All @@ -20,6 +22,7 @@ module.exports = {
NodeJS: false, // For TypeScript
},
rules: {
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand Down Expand Up @@ -65,5 +68,26 @@ module.exports = {

"import/no-deprecated": "warn",
"import/no-duplicates": "error",
// Doesn't support 'exports'?
"import/no-unresolved": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-namespace": "off",
},
overrides: [
{
files: ["__tests__/**/*", "test.js"],
rules: {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/ban-ts-comment": 0,
},
},
{
files: ["perfTest/**/*", "examples/**/*"],
rules: {
"@typescript-eslint/no-var-requires": 0,
},
},
],
};
42 changes: 28 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
postgres-version: [12, 13, 14]
node-version: [18.x, 20.x]
postgres-version: [12, 13, 14, 15]

services:
postgres:
Expand Down Expand Up @@ -44,12 +44,16 @@ jobs:
lint:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js 14.x
uses: actions/setup-node@v1
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- run: yarn lint

Expand All @@ -58,9 +62,14 @@ jobs:
env:
GRAPHILE_WORKER_SCHEMA: custom_schema

strategy:
matrix:
node-version: [18.x]
postgres-version: [12]

services:
postgres:
image: postgres:12
image: postgres:${{ matrix.postgres-version }}
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand All @@ -73,21 +82,26 @@ jobs:
--health-retries 5

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
# - run: yarn lint # No need to lint altschema
- run: yarn jest -i --ci

database_updated:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
postgres-version: [12]

services:
postgres:
image: postgres:12
image: postgres:${{ matrix.postgres-version }}
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand All @@ -100,11 +114,11 @@ jobs:
--health-retries 5

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: ${{ matrix.node-version }}
- run: yarn --frozen-lockfile
- name: Install pg_dump
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ yarn-error.log*
.vscode
node_modules/
/tasks/
/rewired/
_LOCAL/
Loading