Skip to content

Commit

Permalink
feat(web-shell): Major changes for GraphQL implementation
Browse files Browse the repository at this point in the history
Major changes for GraphQL implementation

Added Relay to client side
  • Loading branch information
sullivanpj committed Apr 24, 2023
1 parent c57741a commit 834802e
Show file tree
Hide file tree
Showing 122 changed files with 67,326 additions and 54,035 deletions.
8 changes: 7 additions & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
"commands": [
"avrogen"
]
},
"versionize": {
"version": "1.18.0",
"commands": [
"versionize"
]
}
}
}
}
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CI=false
TYPESENSE_API_KEY=xyz
#NODE_OPTIONS=--openssl-legacy-provider
DEFAULT_LOCALE=en_US
ROOT_HOST=192.168.1.18
AKKA_STREAMS_KAFKA_TEST_FILE_LOGGING=true
RUST_BACKTRACE=1
#PUPPETEER_SKIP_DOWNLOAD=true
53 changes: 52 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,58 @@
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
},
{
"files": ["*.graphql"],
"parser": "@graphql-eslint/eslint-plugin",
"plugins": ["@graphql-eslint"],
"rules": {
"@graphql-eslint/executable-definitions": "error",
"@graphql-eslint/fields-on-correct-type": "error",
"@graphql-eslint/fragments-on-composite-type": "error",
"@graphql-eslint/known-argument-names": "error",
"@graphql-eslint/known-directives": "error",
"@graphql-eslint/known-fragment-names": "error",
"@graphql-eslint/known-type-names": "error",
"@graphql-eslint/lone-anonymous-operation": "error",
"@graphql-eslint/naming-convention": [
"error",
{
"VariableDefinition": "camelCase",
"OperationDefinition": {
"style": "PascalCase",
"forbiddenPrefixes": ["Query", "Mutation", "Subscription", "Get"],
"forbiddenSuffixes": ["Query", "Mutation", "Subscription"]
},
"FragmentDefinition": {
"style": "PascalCase",
"forbiddenPrefixes": ["Fragment"],
"forbiddenSuffixes": ["Fragment"]
}
}
],
"@graphql-eslint/no-anonymous-operations": "error",
"@graphql-eslint/no-deprecated": "error",
"@graphql-eslint/no-duplicate-fields": "error",
"@graphql-eslint/no-fragment-cycles": "error",
"@graphql-eslint/no-undefined-variables": "error",
"@graphql-eslint/no-unused-fragments": "error",
"@graphql-eslint/no-unused-variables": "error",
"@graphql-eslint/one-field-subscriptions": "error",
"@graphql-eslint/overlapping-fields-can-be-merged": "error",
"@graphql-eslint/possible-fragment-spread": "error",
"@graphql-eslint/provided-required-arguments": "error",
"@graphql-eslint/require-id-when-available": "error",
"@graphql-eslint/scalar-leafs": "error",
"@graphql-eslint/selection-set-depth": ["error", { "maxDepth": 7 }],
"@graphql-eslint/unique-argument-names": "error",
"@graphql-eslint/unique-directive-names-per-location": "error",
"@graphql-eslint/unique-input-field-names": "error",
"@graphql-eslint/unique-variable-names": "error",
"@graphql-eslint/value-literals-of-correct-type": "error",
"@graphql-eslint/variables-are-input-types": "error",
"@graphql-eslint/variables-in-allowed-position": "error"
}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
"env": {
Expand All @@ -40,4 +92,3 @@
}
]
}

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -408,3 +408,6 @@ MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/

# Local Environment Variables
**/.env.local
8 changes: 5 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# .husky/commit-msg (v8)
# ...

npx --no-install commitlint --edit $1
[ -n "$CI" ] && exit 0

npx --no-install commitlint --edit $1
18 changes: 16 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# .husky/pre-commit
# ...
[ -n "$CI" ] && exit 0

FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
[ -z "$FILES" ] && exit 0

# Prettify all selected files
echo "$FILES" | xargs ./node_modules/.bin/prettier --ignore-unknown --write

# Add back the modified/prettified files to staging
echo "$FILES" | xargs git add

exit 0

npx pretty-quick --staged

# npm test
8 changes: 8 additions & 0 deletions .kodiak.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ require_automerge_label = false # merge everything
method = "squash"
delete_branch_on_merge = true
block_on_reviews_requested = true

[merge.message]
title = "pull_request_title"
body = "pull_request_body"
include_coauthors= true
include_pr_number = true
body_type = "markdown"
strip_html_comments = true
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.prettierignore
.docusaurus/
dist/**
**/dotnet/**
16 changes: 0 additions & 16 deletions .vs/OpenSystem/project-colors.json

This file was deleted.

Binary file removed .vs/OpenSystem/v17/.futdcache.v1
Binary file not shown.
Binary file removed .vs/OpenSystem/v17/.suo
Binary file not shown.
7 changes: 0 additions & 7 deletions .vs/VSWorkspaceState.json

This file was deleted.

Binary file removed .vs/slnx.sqlite
Binary file not shown.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"editor.formatOnSave": false,
"prettier.eslintIntegration": true,
"relay.autoStartCompiler": true,
"eslint.validate": [
"javascript",
"javascriptreact",
Expand Down

0 comments on commit 834802e

Please sign in to comment.