-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
GRT-37 Package scaffolding
AC:
|
packages/blocknumber/.gitignore
Outdated
There was a problem hiding this comment.
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
packages/blocknumber/.prettierignore
Outdated
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"exclude": ["**/*.spec.ts"] | |
"exclude": ["node_modules", "build", "tests", "vitest.config.ts"] |
@@ -0,0 +1,8 @@ | |||
{ | |||
"extends": "../../tsconfig.build.json", | |||
"compilerOptions": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"compilerOptions": { | |
"compilerOptions": { | |
"declaration": true, |
@@ -4,11 +4,13 @@ | |||
"description": "", | |||
"main": "index.js", | |||
"scripts": { | |||
"build": "turbo run build", | |||
"test": "turbo run test", |
There was a problem hiding this comment.
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
packages/blocknumber/package.json
Outdated
"lint:fix": "pnpm lint --fix", | ||
"format": "prettier --check .", | ||
"format:fix": "prettier --write .", | ||
"test": "vitest run" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto regarding test coverage
🤖 Linear
Closes GRT-37
Description
Set up
blocknumber
package with scripts, integration with monorepo and testing framework.