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

feat: base pkg structure #8

Closed
wants to merge 23 commits into from
Closed

feat: base pkg structure #8

wants to merge 23 commits into from

Conversation

0xjjojo
Copy link
Contributor

@0xjjojo 0xjjojo commented May 23, 2024

🤖 Linear

Closes ZKS-15

Description

.env.example Outdated
@@ -0,0 +1,2 @@
COINGECKO_API_URL=""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this could be done at package level ?? I think 🤔 cc @0xkenj1

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep, each of the packages that has runtime should have its own env vars

Copy link

linear bot commented May 24, 2024

ZKS-15 Implement base packages

  • define base lib structure
  • define base service/lambda handler structure
  • reuse tsconfig.json
  • ensure that yarn workspaces work and you link packages
  • add base unit tests for both

we will use this packages as reference starting point.

…ecated files and js outputs, refactor cg constructor
"devDependencies": {
"@hyperhub/test-config": "workspace:*",
"@hyperhub/typescript-config": "workspace:*",
"typescript": "5.4.5",
Copy link
Collaborator

Choose a reason for hiding this comment

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

this shoould be a global dependency of the monorepo

"@hyperhub/test-config": "workspace:*",
"@hyperhub/typescript-config": "workspace:*",
"typescript": "5.4.5",
"vitest": "1.6.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should only be a dep from test-config or iam wrong ?

Comment on lines 16 to 17
"typescript": "4.9.4",
"vitest": "1.6.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto

Comment on lines 10 to 23
const baseURL = process.env.COINGECKO_API_URL;
const apiKey = process.env.COINGECKO_API_KEY;

if (!baseURL) {
throw new Error("Missing Coingecko baseUrl");
}

if (!apiKey) {
throw new Error("Missing coingecko api key");
}

this.apiKey = apiKey;
this.baseURL = baseURL;

Copy link
Collaborator

Choose a reason for hiding this comment

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

lets use the approach we have talked offline

@@ -3,7 +3,7 @@
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"build": {
"dependsOn": ["^build"],
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should stay

@0xjjojo 0xjjojo requested a review from 0xkenj1 May 27, 2024 12:17
@0xjjojo 0xjjojo marked this pull request as ready for review May 27, 2024 12:17
@0xjjojo 0xjjojo closed this May 27, 2024
@0xjjojo 0xjjojo mentioned this pull request May 27, 2024
0xjjojo added a commit that referenced this pull request May 27, 2024
# 🤖 Linear

Re implements #8
without commit issues

## Description
@0xjjojo 0xjjojo deleted the feat/base-pkg branch May 28, 2024 14:00
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