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

[Github Issue #554] improve dx #555

Merged
merged 9 commits into from
Apr 20, 2023

Conversation

khaliqgant
Copy link
Member

@khaliqgant khaliqgant commented Apr 19, 2023

Resolves #554

  • Adds a .nvmrc file
  • Adds tsc watch commands and allow them to run concurrently
  • Removes the git add -A . husky pre-commit command so a dev can stage only certain files and isn't forced to stage all files every single time
  • Adds a yaml validation check using action-yamllint as the providers.yaml file is very important and that file should be tightly maintained
  • Adds .tsx files to be linted and adds --fix option
  • Remove .env file from source control to avoid accidental commits and use a .env.example instead

@khaliqgant khaliqgant changed the title [Github #554] improve dx [Github Issue #554] improve dx Apr 19, 2023
"install:all": "npm i && cd packages/webapp && npm i && cd ../..",
"ts-build": "./node_modules/typescript/bin/tsc -b --clean packages/server packages/cli && ./node_modules/typescript/bin/tsc -b tsconfig.build.json && ./packages/webapp/node_modules/typescript/bin/tsc -b packages/webapp/tsconfig.json",
"ts-build": "tsc -b --clean packages/server packages/cli && tsc -b tsconfig.build.json && tsc -b packages/webapp/tsconfig.json",
Copy link
Member

Choose a reason for hiding this comment

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

That is going to use a global install of tsc, right? Is it better than using the repo one?

Copy link
Member Author

@khaliqgant khaliqgant Apr 20, 2023

Choose a reason for hiding this comment

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

Within the context of a npm script the executables in the node_modules/.bin directory are added to the PATH for execution so the repo tsc will be used here.

Reference: https://docs.npmjs.com/cli/v7/using-npm/scripts#path

@bastienbeurier bastienbeurier merged commit 146bedb into NangoHQ:master Apr 20, 2023
@khaliqgant khaliqgant deleted the gh-#554-improve-dx branch April 20, 2023 11:55
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.

Tighten up developer experience in working with the app locally
2 participants