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

chore: blocknumber setup #9

Merged
merged 9 commits into from
Jul 23, 2024
Merged

chore: blocknumber setup #9

merged 9 commits into from
Jul 23, 2024

Conversation

0xyaco
Copy link
Collaborator

@0xyaco 0xyaco commented Jul 18, 2024

🤖 Linear

Closes GRT-37

Description

Set up blocknumber package with scripts, integration with monorepo and testing framework.

Copy link

linear bot commented Jul 18, 2024

GRT-37 Package scaffolding

AC:

  • name: blocknumber
  • basic scripts: build, test, lint
  • integration with monorepo global commands
  • testing framework base setup

@0xyaco 0xyaco changed the title Chore/blocknumber setup chore: blocknumber setup Jul 18, 2024
@0xyaco 0xyaco requested review from 0xkenj1 and 0xnigir1 July 18, 2024 21:57
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can add this on the root .gitignore with a wildcard to avoid having a gitignore per package

Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto,

pnpm-lock.yaml shouldn't be generated on pnpm install i think

"name": "blocknumber",
"version": "1.0.0",
"description": "",
"main": "index.ts",
Copy link
Collaborator

Choose a reason for hiding this comment

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

lets add "type": "module" to ensure we are using esm

"outDir": "dist"
},
"include": ["src/**/*"],
"exclude": ["**/*.spec.ts"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"exclude": ["**/*.spec.ts"]
"exclude": ["node_modules", "build", "tests", "vitest.config.ts"]

@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.build.json",
"compilerOptions": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"compilerOptions": {
"compilerOptions": {
"declaration": true,

@@ -4,11 +4,13 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "turbo run build",
"test": "turbo run test",
Copy link
Collaborator

Choose a reason for hiding this comment

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

we can add the test coverage script here too

"lint:fix": "pnpm lint --fix",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"test": "vitest run"
Copy link
Collaborator

Choose a reason for hiding this comment

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

ditto regarding test coverage

@0xyaco
Copy link
Collaborator Author

0xyaco commented Jul 19, 2024

@0xkenj1 addressed all comments. 💯

@0xnigir1 everything configured to support coverage now. 🛡️

@0xyaco 0xyaco merged commit 1efd810 into dev Jul 23, 2024
5 checks passed
@0xyaco 0xyaco deleted the chore/blocknumber-setup branch July 23, 2024 17: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.

3 participants