Skip to content

Commit

Permalink
feat!: update to gqlp v7
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Sep 25, 2022
1 parent acb7f27 commit 81ebb56
Show file tree
Hide file tree
Showing 33 changed files with 1,062 additions and 2,792 deletions.
37 changes: 0 additions & 37 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,65 @@
name: Bug Report
description: File a bug report here
title: 'bug: '
labels: ['Bug: Unverified']
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: checkboxes
id: new-bug
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
required: true
- type: checkboxes
id: native-english
attributes:
label: Are you a (near)-native English speaker?
description: Because Alexa skills are inherently sensitive to clear pronunciation it is relevant to know whether you are a (near)-native English speaker or not.
options:
- label: Yes
required: true
- label: No
required: true
- type: textarea
id: bug-description
attributes:
label: Description of the bug
description: Tell us what bug you encountered and what should have happened
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
Please tell us how to reproduce this bug, for example:
1. Say '...'
2. Alexa responds '...'
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: What should be the expected behavior.
placeholder: A clear and concise description of what you expected to happen.
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain your problem.
placeholder: Paste your screenshots here.
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Do you want to share any additional context about this bug?
placeholder: Add any other context about the problem here.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Discord server
url: https://join.favware.tech
about: Please visit our Discord server for questions and support requests.
24 changes: 0 additions & 24 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,46 @@
name: Feature request
description: Suggest an idea for this project
title: 'request: '
labels: ['Meta: Feature']
body:
- type: markdown
attributes:
value: Thank you for suggesting this feature! The more information you provide, the more likely it is that it will be picked up.
- type: checkboxes
id: new-bug
attributes:
label: Is there an existing issue or pull request for this?
description: Please search to see if an issue or pull request already exists for the feature you desire.
options:
- label: I have searched the existing issues and pull requests
required: true
- type: textarea
id: feature-description
attributes:
label: Feature description
description: Is your feature request related to a problem? Please describe.
placeholder: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Desired solution
description: Describe the solution you'd like
placeholder: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Alternatives considered
description: Describe alternatives you've considered
placeholder: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Do you want to share any additional context about this bug?
placeholder: Add any other context about the problem here.
14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE/question---general-support-request.md

This file was deleted.

20 changes: 10 additions & 10 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -15,12 +15,12 @@ jobs:
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Add problem matcher
run: echo "::add-matcher::.github/problemMatchers/eslint.json"
- name: Use Node.js v16
- name: Use Node.js v18
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 16
node-version: 18
cache: yarn
registry-url: https://registry.npmjs.org/
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Run ESLint
Expand All @@ -43,15 +43,15 @@ jobs:
steps:
- name: Checkout Project
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Use Node.js v16
- name: Use Node.js v18
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 16
node-version: 18
cache: yarn
registry-url: https://registry.npmjs.org/
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Run graphql-pokemon and tests
- name: Run tests
run: yarn test

Building:
Expand All @@ -62,12 +62,12 @@ jobs:
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Add problem matcher
run: echo "::add-matcher::.github/problemMatchers/tsc.json"
- name: Use Node.js v16
- name: Use Node.js v18
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
with:
node-version: 16
node-version: 18
cache: yarn
registry-url: https://registry.npmjs.org/
registry-url: https://registry.yarnpkg.org/
- name: Install Dependencies
run: yarn --immutable
- name: Build Code
Expand Down
6 changes: 4 additions & 2 deletions .graphqlrc.yml
@@ -1,2 +1,4 @@
schema: 'node_modules/@favware/graphql-pokemon/generated/ts/graphql-pokemon.graphql'
documents: 'src/*.ts'
schema: 'https://graphqlpokemon.favware.tech/v7'
documents:
- ./src/lib/gql/queries.ts
- ./src/lib/gql/fuzzyQueries.ts
5 changes: 5 additions & 0 deletions .prettierignore
@@ -0,0 +1,5 @@
.yarn/
.github/husky/
node_modules/
bundle/
dist/
11 changes: 0 additions & 11 deletions __tests__/jest.setup.ts

This file was deleted.

13 changes: 0 additions & 13 deletions __tests__/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose.yml
@@ -1,4 +1,4 @@
version: '2.4'
version: '3.9'
services:
pokedex:
container_name: pokedex
Expand Down
17 changes: 0 additions & 17 deletions jest.config.mjs

This file was deleted.

20 changes: 9 additions & 11 deletions package.json
Expand Up @@ -6,13 +6,12 @@
"license": "MIT",
"private": true,
"scripts": {
"lint": "eslint src scripts __tests__ --ext mjs,ts --fix",
"style": "yarn pretty-quick",
"test": "jest",
"lint": "eslint src scripts tests --ext mjs,ts --fix",
"test": "vitest run",
"build": "tsc -b src",
"watch": "tsc -b src -w",
"update": "yarn upgrade-interactive --latest",
"deploy": "node scripts/clean.mjs && node scripts/bundle.mjs && cd bundle && zip -rq function.zip . && aws lambda update-function-code --function-name alexa_dexa --zip-file fileb://function.zip",
"deploy": "tsup && cd bundle && zip -rq function.zip . && aws lambda update-function-code --function-name alexa_dexa --zip-file fileb://function.zip",
"sversion": "standard-version",
"scripts:skilldatagenerator": "yarn build && node scripts/skillDataGenerator.mjs",
"postinstall": "husky install .github/husky"
Expand All @@ -23,7 +22,7 @@
"apollo-boost": "^0.4.9",
"confusables": "^1.1.1",
"cross-fetch": "^3.1.5",
"graphql": "^15.8.0",
"graphql": "^16.6.0",
"graphql-tag": "^2.12.6"
},
"devDependencies": {
Expand All @@ -32,26 +31,25 @@
"@sapphire/prettier-config": "^1.4.4",
"@sapphire/ts-config": "^3.3.4",
"@types/express": "^4.17.14",
"@types/jest": "^29.0.3",
"@types/node": "^17.0.31",
"@types/node": "^18.7.21",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.38.0",
"@typescript-eslint/parser": "^5.38.0",
"esbuild": "^0.15.9",
"@vitest/coverage-c8": "^0.23.4",
"eslint": "^8.24.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"express": "^4.18.1",
"husky": "^8.0.1",
"jest": "^29.0.3",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"rimraf": "^3.0.2",
"supertest": "^6.2.4",
"ts-jest": "^29.0.2",
"typescript": "^4.8.3"
"tsup": "^6.2.3",
"typescript": "^4.8.3",
"vitest": "^0.23.4"
},
"resolutions": {
"ansi-regex": "^5.0.1",
Expand Down

0 comments on commit 81ebb56

Please sign in to comment.