Skip to content

refactor: Add TypeScript support #26

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

Open
wants to merge 175 commits into
base: main
Choose a base branch
from

Conversation

fabiovincenzi
Copy link
Collaborator

Overview
This PR introduces TypeScript to git-proxy and refactors relevant code to support it.

Changelog

  • Added TypeScript configuration (tsconfig.json) with essential settings for strict type checking, ES6 compatibility, and JSX support.
  • Added typescript and ts-node to manage TypeScript code compilation and execution.
  • Updated the package.json to include TypeScript dependencies.
  • Converted the main entry file from JavaScript (index.js) to TypeScript (index.ts).
  • Modified the start script to use ts-node for running TypeScript files.

@fabiovincenzi fabiovincenzi self-assigned this Feb 17, 2025
@fabiovincenzi fabiovincenzi linked an issue Feb 17, 2025 that may be closed by this pull request
3 tasks
@06kellyjac
Copy link

Should be fine to adopt this upstream if you're happy to open a PR.
We might want to double check we build out the right files for publishing but otherwise looks good.
A good pre-req for the db refactor & best to bring this in ahead of that :)

@fabiovincenzi
Copy link
Collaborator Author

Should be fine to adopt this upstream if you're happy to open a PR. We might want to double check we build out the right files for publishing but otherwise looks good. A good pre-req for the db refactor & best to bring this in ahead of that :)

Thanks for the review @06kellyjac !
Yes, I'll open a PR on the upstream then we can go ahead with db refactor.

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@fabiovincenzi fabiovincenzi changed the title Add TypeScript support refactor: Add TypeScript support Mar 10, 2025
@fabiovincenzi fabiovincenzi force-pushed the typescript-setup branch 3 times, most recently from e7ec595 to e316a95 Compare March 20, 2025 10:10
renovate bot and others added 30 commits July 1, 2025 15:32
… - experimental/license-inventory/package.json
…ajor-16-npm

chore(deps): update dependency lint-staged to v16 - license-inventory - experimental/license-inventory/package.json
…github-actions

chore(deps): update dependency node to v22 - workflows - .github/workflows/unused-dependencies.yml
chore(deps): update dependency sinon to v20 - - package.json
fix(deps): update dependency eslint to ^9.30.1 - website - website/package.json
fix(deps): update npm - li-cli - experimental/li-cli/package.json
chore(deps): update dependency sinon to v21 - - package.json
…tory - experimental/license-inventory/docker-compose.yaml
…ajor-12-docker-compose

chore(deps): update grafana/grafana docker tag to v12 - license-inventory - experimental/license-inventory/docker-compose.yaml
fix(deps): update dependency body-parser to v2 - - package.json
- allow for the setting of configuration for MongoDB database
  connection string as well as cookie secret via environment
  variables as an alternative to JSON-based configuration

Useful in environments that split config between secrets (ie.
stored in a secret manager) and plain app configurations such
as commitConfig, attestation, etc. that may not be considered
sensitive & wouldn't be appropriate in a secret manager.
fix(proxy): preserve original Git pack POST streams before validation
feat: mongo connection string & cookie secret from env vars
fix(deps): update dependency zod to ^3.25.73 - li-cli - experimental/li-cli/package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Setup] Add TypeScript to the Project
7 participants