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

Modernize #36

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

Modernize #36

wants to merge 4 commits into from

Conversation

Sytten
Copy link
Member

@Sytten Sytten commented Feb 5, 2021

  • Update all dependencies and removed unused ones (let me know if I missed something)
  • Switched tslint back to eslint with proper parser
  • Run latest prettier
  • Remove rollup and bring the tsconfig closer to library standard
  • Add renovate config (will add the bot once merged)
  • Add Github action CI (will add the publish and gh-pages one in a subsequent PR)

Typedoc is still broken and I dont understand why, might be due to TypeStrong/typedoc#1493. Might have to revert to per 0.20.

@Sytten Sytten requested a review from chanind February 5, 2021 02:43
"files": [
"dist"
],
"author": "David Chanin <chanindav@gmail.com>",
"repository": {
"type": "git",
"url": "https://github.com/ef-eng/graphql-query-rewriter"
"url": "https://github.com/ef-en/graphql-query-rewriter"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this URL isn't correct - should be https://github.com/graphql-query-rewriter/core

- run: yarn install
- run: yarn lint
- run: yarn typecheck
- run: yarn test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also need to add yarn report-coverage and set up coveralls for GH actions

},
"scripts": {
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
"prebuild": "rimraf dist",
"build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's probably fine to get rid of rollup, just out of curiosity why remove it? Is it related to updating the node version? This wall all from https://github.com/alexjoverm/typescript-library-starter

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I saw the similarities, I reality I never saw something similar to that setup. If you look around all libs that mainly support node all use similar tsconfig and output commonjs code with types near the js code. So unless we need to do something fancy there is no need at this point to support es5/umd/other types of import.

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.

None yet

2 participants