-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new logging utility using the `pino` library. - Added MongoDB and mongo-express services to Docker setup. - Created a new `rusty-motors-logger` package with various scripts and dependencies. - Implemented Git commit message validation hook. - Added a new GitHub Actions workflow for automated builds. - **Bug Fixes** - Updated merge strategies for specific files to prevent invalid merges. - **Documentation** - Added comments to `.npmrc` explaining its usage and security considerations. - Introduced configuration options in `.coderabbit/config.yml` for path filtering. - **Chores** - Removed various configuration files related to the Changesets tool. - Updated `.gitignore` to include new patterns for ignored files. - Updated Node.js version in `.nvmrc`. - Introduced new configuration files for Rush package management. - **Tests** - Added a test suite for the new logger functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Loading branch information
1 parent
7c51d66
commit 06e3ec9
Showing
32 changed files
with
3,472 additions
and
510 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
path_filters: | ||
exclude: | ||
- 'common/config/rush/repo-state.json' | ||
- 'common/scripts/install-run-rushx.js' | ||
- 'common/scripts/install-run-rush.js' | ||
- 'common/scripts/install-run.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Don't allow people to merge changes to these generated files, because the result | ||
# may be invalid. You need to run "rush update" again. | ||
pnpm-lock.yaml merge=text | ||
shrinkwrap.yaml merge=binary | ||
npm-shrinkwrap.json merge=binary | ||
yarn.lock merge=binary | ||
|
||
# Rush's JSON config files use JavaScript-style code comments. The rule below prevents pedantic | ||
# syntax highlighters such as GitHub's from highlighting these comments as errors. Your text editor | ||
# may also require a special configuration to allow comments in JSON. | ||
# | ||
# For more information, see this issue: https://github.com/microsoft/rushstack/issues/1088 | ||
# | ||
*.json linguist-language=JSON-with-Comments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Rush | ||
on: | ||
push: | ||
branches: [ "dev" ] | ||
pull_request: | ||
branches: [ "dev" ] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20, 22] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- name: Git config user | ||
uses: snow-actions/git-config-user@v1.0.0 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Verify Change Logs | ||
run: node common/scripts/install-run-rush.js change --verify | ||
- name: Rush Install | ||
run: node common/scripts/install-run-rush.js install | ||
- name: Rush rebuild | ||
run: node common/scripts/install-run-rush.js rebuild --verbose | ||
- name: Upload test results to Codecov | ||
if: ${{ !cancelled() }} | ||
uses: codecov/test-results-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,99 @@ | ||
*.env | ||
*.tsbuildinfo | ||
logs | ||
coverage | ||
# Logs | ||
*.log | ||
.nyc_output | ||
|
||
test-reports | ||
junit | ||
built | ||
*.sqlite | ||
junit.xml | ||
.dccache | ||
*.db | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.pnpm-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov/ | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage/ | ||
|
||
# nyc test coverage | ||
.nyc_output/ | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt/ | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components/ | ||
|
||
# node-waf configuration | ||
.lock-wscript/ | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release/ | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm/ | ||
|
||
# Optional eslint cache | ||
.eslintcache/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env.local | ||
|
||
|
||
# OS X temporary files | ||
.DS_Store | ||
|
||
dist | ||
# Sentry Auth Token | ||
.sentryclirc | ||
*.map | ||
out/* | ||
mcos.junit.xml | ||
package-lock.json | ||
# Visual Studio Code | ||
.vscode/ | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
|
||
# Rush temporary files | ||
common/deploy/ | ||
common/temp/ | ||
common/autoinstallers/*/.npmrc | ||
**/.rush/temp/ | ||
*.lock | ||
|
||
# Common toolchain intermediate files | ||
temp/ | ||
lib/ | ||
lib-amd/ | ||
lib-es6/ | ||
lib-esnext/ | ||
lib-commonjs/ | ||
lib-shim/ | ||
dist/ | ||
dist-storybook/ | ||
*.tsbuildinfo | ||
|
||
# Heft temporary files | ||
.cache/ | ||
.heft/ | ||
|
||
# Test result files | ||
*.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,28 @@ | ||
# Rush uses this file to configure the NPM package registry during installation. It is applicable | ||
# to PNPM, NPM, and Yarn package managers. It is used by operations such as "rush install", | ||
# "rush update", and the "install-run.js" scripts. | ||
# | ||
# NOTE: The "rush publish" command uses .npmrc-publish instead. | ||
# | ||
# Before invoking the package manager, Rush will generate an .npmrc in the folder where installation | ||
# is performed. This generated file will omit any config lines that reference environment variables | ||
# that are undefined in that session; this avoids problems that would otherwise result due to | ||
# a missing variable being replaced by an empty string. | ||
# | ||
# If "subspacesEnabled" is true in subspaces.json, the generated file will merge settings from | ||
# "common/config/rush/.npmrc" and "common/config/subspaces/<name>/.npmrc", with the latter taking | ||
# precedence. | ||
# | ||
# * * * SECURITY WARNING * * * | ||
# | ||
# It is NOT recommended to store authentication tokens in a text file on a lab machine, because | ||
# other unrelated processes may be able to read that file. Also, the file may persist indefinitely, | ||
# for example if the machine loses power. A safer practice is to pass the token via an | ||
# environment variable, which can be referenced from .npmrc using ${} expansion. For example: | ||
# | ||
# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN} | ||
# | ||
registry=https://registry.npmjs.org/ | ||
always-auth=false | ||
node-options="--openssl-legacy-provider" | ||
link-workspace-packages=true | ||
link-workspace-packages=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v20.17.0 | ||
v22.12.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Rush uses this file to configure the NPM package registry during installation. It is applicable | ||
# to PNPM, NPM, and Yarn package managers. It is used by operations such as "rush install", | ||
# "rush update", and the "install-run.js" scripts. | ||
# | ||
# NOTE: The "rush publish" command uses .npmrc-publish instead. | ||
# | ||
# Before invoking the package manager, Rush will generate an .npmrc in the folder where installation | ||
# is performed. This generated file will omit any config lines that reference environment variables | ||
# that are undefined in that session; this avoids problems that would otherwise result due to | ||
# a missing variable being replaced by an empty string. | ||
# | ||
# If "subspacesEnabled" is true in subspaces.json, the generated file will merge settings from | ||
# "common/config/rush/.npmrc" and "common/config/subspaces/<name>/.npmrc", with the latter taking | ||
# precedence. | ||
# | ||
# * * * SECURITY WARNING * * * | ||
# | ||
# It is NOT recommended to store authentication tokens in a text file on a lab machine, because | ||
# other unrelated processes may be able to read that file. Also, the file may persist indefinitely, | ||
# for example if the machine loses power. A safer practice is to pass the token via an | ||
# environment variable, which can be referenced from .npmrc using ${} expansion. For example: | ||
# | ||
# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN} | ||
# | ||
registry=https://registry.npmjs.org/ | ||
always-auth=false | ||
node-options="--openssl-legacy-provider" | ||
link-workspace-packages=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This config file is very similar to common/config/rush/.npmrc, except that .npmrc-publish | ||
# is used by the "rush publish" command, as publishing often involves different credentials | ||
# and registries than other operations. | ||
# | ||
# Before invoking the package manager, Rush will copy this file to "common/temp/publish-home/.npmrc" | ||
# and then temporarily map that folder as the "home directory" for the current user account. | ||
# This enables the same settings to apply for each project folder that gets published. The copied file | ||
# will omit any config lines that reference environment variables that are undefined in that session; | ||
# this avoids problems that would otherwise result due to a missing variable being replaced by | ||
# an empty string. | ||
# | ||
# * * * SECURITY WARNING * * * | ||
# | ||
# It is NOT recommended to store authentication tokens in a text file on a lab machine, because | ||
# other unrelated processes may be able to read the file. Also, the file may persist indefinitely, | ||
# for example if the machine loses power. A safer practice is to pass the token via an | ||
# environment variable, which can be referenced from .npmrc using ${} expansion. For example: | ||
# | ||
# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN} | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
'use strict'; | ||
|
||
/** | ||
* When using the PNPM package manager, you can use pnpmfile.js to workaround | ||
* dependencies that have mistakes in their package.json file. (This feature is | ||
* functionally similar to Yarn's "resolutions".) | ||
* | ||
* For details, see the PNPM documentation: | ||
* https://pnpm.io/pnpmfile#hooks | ||
* | ||
* IMPORTANT: SINCE THIS FILE CONTAINS EXECUTABLE CODE, MODIFYING IT IS LIKELY TO INVALIDATE | ||
* ANY CACHED DEPENDENCY ANALYSIS. After any modification to pnpmfile.js, it's recommended to run | ||
* "rush update --full" so that PNPM will recalculate all version selections. | ||
*/ | ||
module.exports = { | ||
hooks: { | ||
readPackage | ||
} | ||
}; | ||
|
||
/** | ||
* This hook is invoked during installation before a package's dependencies | ||
* are selected. | ||
* The `packageJson` parameter is the deserialized package.json | ||
* contents for the package that is about to be installed. | ||
* The `context` parameter provides a log() function. | ||
* The return value is the updated object. | ||
*/ | ||
function readPackage(packageJson, context) { | ||
|
||
// // The karma types have a missing dependency on typings from the log4js package. | ||
// if (packageJson.name === '@types/karma') { | ||
// context.log('Fixed up dependencies for @types/karma'); | ||
// packageJson.dependencies['log4js'] = '0.6.38'; | ||
// } | ||
|
||
return packageJson; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/pnpm-config.schema.json", | ||
"useWorkspaces": true, | ||
"globalOverrides": {}, | ||
"globalPeerDependencyRules": {}, | ||
"globalPackageExtensions": {}, | ||
"globalNeverBuiltDependencies": [], | ||
"globalAllowedDeprecatedVersions": {}, | ||
"unsupportedPackageJsonSettings": {} | ||
} |
Oops, something went wrong.