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: Dependency health configurations #17

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions .github/dependabot.yml
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I couldn't find an example pnpm Dependabot setup, but this appears to be what we do in this situation, one set for each package. It's annoyingly long and verbose, but whattayagonnado 🤷🏻

Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
version: 2
updates:
# We need to point to each package.json, so this file will be a bit verbose

# Root package.json
- package-ecosystem: 'pnpm'
directory: '/'
schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

# Packages
- package-ecosystem: 'pnpm'
directory: '/packages/geometry'
schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

- package-ecosystem: 'pnpm'
directory: '/packages/scatterbrain'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TODO: Add the new packages!

schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

# Examples
- package-ecosystem: 'pnpm'
directory: '/apps/common'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TODO: Update to the examples directory, we're not doing the rename we had considered earlier.

schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

- package-ecosystem: 'pnpm'
directory: '/apps/layers'
schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

- package-ecosystem: 'pnpm'
directory: '/apps/omezarr-viewer'
schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'

- package-ecosystem: 'pnpm'
directory: '/app/scatterplot'
schedule:
interval: 'monthly'
reviewers:
- 'AllenInstitute/app-dev'
commit-message:
prefix: 'chore(deps):'
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
10 changes: 5 additions & 5 deletions apps/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"dependencies": {
"@alleninstitute/vis-geometry": "workspace:*",
"@alleninstitute/vis-scatterbrain": "workspace:*",
"@types/lodash": "^4.14.202",
"lodash": "^4.17.21",
"regl": "^2.1.0",
"zarr": "^0.6.2"
"@types/lodash": "4.14.202",
"lodash": "4.17.21",
"regl": "2.1.0",
"zarr": "0.6.2"

}
}
}
12 changes: 6 additions & 6 deletions apps/layers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"esbuild": "^0.19.12",
"typescript": "^5.3.3"
"esbuild": "0.19.12",
"typescript": "5.3.3"
},
"dependencies": {
"@alleninstitute/vis-geometry": "workspace:*",
"@alleninstitute/vis-scatterbrain": "workspace:*",
"@types/lodash": "^4.14.202",
"lodash": "^4.17.21",
"regl": "^2.1.0"
"@types/lodash": "4.14.202",
"lodash": "4.17.21",
"regl": "2.1.0"
}
}
}
16 changes: 8 additions & 8 deletions apps/omezarr-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@
"test": "jest --config=jest.config.cjs --watch"
},
"devDependencies": {
"esbuild": "^0.19.12",
"typescript": "^5.3.3"
"esbuild": "0.19.12",
"typescript": "5.3.3"
},
"dependencies": {
"@alleninstitute/vis-geometry": "workspace:*",
"@alleninstitute/vis-scatterbrain": "workspace:*",
"@types/lodash": "^4.14.202",
"@zhobo63/imgui-ts": "^0.1.43",
"lodash": "^4.17.21",
"regl": "^2.1.0",
"zarr": "^0.6.2"
"@types/lodash": "4.14.202",
"@zhobo63/imgui-ts": "0.1.43",
"lodash": "4.17.21",
"regl": "2.1.0",
"zarr": "0.6.2"
}
}
}
14 changes: 7 additions & 7 deletions apps/scatterplot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"esbuild": "^0.19.12",
"typescript": "^5.3.3"
"esbuild": "0.19.12",
"typescript": "5.3.3"
},
"dependencies": {
"@alleninstitute/vis-geometry": "workspace:*",
"@alleninstitute/vis-scatterbrain": "workspace:*",
"@types/lodash": "^4.14.202",
"@zhobo63/imgui-ts": "^0.1.43",
"lodash": "^4.17.21",
"regl": "^2.1.0"
"@types/lodash": "4.14.202",
"@zhobo63/imgui-ts": "0.1.43",
"lodash": "4.17.21",
"regl": "2.1.0"
}
}
}
11 changes: 11 additions & 0 deletions docs/dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Dependencies

## Locked Dependencies
All dependencies in this project are locked to specific versions using the `.npmrc` file at the root of the project.

This is to ensure that the project is built and tested with the same versions of dependencies across different environments, and reduces the threat of security vulnerabilities from a more permissive versioning strategy.

## Dependabot
We run a monthly Dependabot to automatically open PRs to update our dependencies. These are controlled in the `.github/dependabot.yml` file. Because we have multiple packages within this monorepo, that file is somewhat verbose.

When adding a new package or example app, be sure to add a new section to `dependabot.yml`.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"@parcel/packager-ts": "2.12.0",
"@parcel/transformer-typescript-types": "2.12.0",
"parcel": "2.12.0",
"typescript": "^5.3.3"
"typescript": "5.3.3"
}
}
8 changes: 4 additions & 4 deletions packages/geometry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
"registry": "https://npm.pkg.github.com/AllenInstitute"
},
"devDependencies": {
"@parcel/packager-ts": "^2.12.0",
"@parcel/transformer-typescript-types": "^2.12.0",
"vitest": "^1.4.0",
"@parcel/packager-ts": "2.12.0",
"@parcel/transformer-typescript-types": "2.12.0",
"vitest": "1.4.0",
"parcel": "2.12.0",
"typescript": "^5.3.3"
"typescript": "5.3.3"
}
}
13 changes: 6 additions & 7 deletions packages/scatterbrain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@
"registry": "https://npm.pkg.github.com/AllenInstitute"
},
"devDependencies": {
"@parcel/packager-ts": "^2.12.0",
"@parcel/transformer-typescript-types": "^2.12.0",
"@types/lodash": "^4.14.202",
"@parcel/packager-ts": "2.12.0",
"@parcel/transformer-typescript-types": "2.12.0",
"@types/lodash": "4.14.202",
"parcel": "2.12.0",
"typescript": "^5.3.3",
"vitest": "^1.4.0"
"typescript": "5.3.3",
"vitest": "1.4.0"
},
"dependencies": {
"lodash": "^4.17.21"

"lodash": "4.17.21"
}
}
66 changes: 33 additions & 33 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.