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

typescript migration #223

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

typescript migration #223

wants to merge 7 commits into from

Conversation

acao
Copy link
Member

@acao acao commented Aug 5, 2023

redo of #191 , with a graphql upgrade as well

  • type: module so that we're using the latest and greatest in module resolution/etc
  • jest -> vitest because jest doesn't support esm well
  • vitest.config.ts contains an alias to use cjs graphql because graphql-relay doesn't publish a module bundle yet (otherwise tests have realm error)
  • tweak tests because of changes in graphql 14 -> 16, and in upstream data source values (text where number strings are expected, etc)
  • dynamic imports seemed to be the best approach for importing data
  • drop babel because it's not needed for a server side application (previously swapi was entirely clientside, so it makes sense it was there before)
  • switch from complex eslint setup to typescript eslint reccomended for simplicty
  • add github action workflow
  • replace dev scripts with netlify dev environment, which mocks the functions interface and models reverse proxy and redirect rules
  • remove everything flow related, replace with typescript
  • cache cache/data.json both in netlify and github actions for faster CI
  • note: most of the net lines of change are reflected in package-lock.json

@acao acao force-pushed the typescript-migration branch from 4659cab to 64e606a Compare August 5, 2023 21:24
@acao acao force-pushed the typescript-migration branch from 63a40e5 to 881f6d3 Compare August 6, 2023 21:01
@acao acao force-pushed the typescript-migration branch from 881f6d3 to 9f912f6 Compare August 6, 2023 21:06
@acao acao force-pushed the typescript-migration branch from c94d7df to 7db5316 Compare August 6, 2023 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants