Skip to content

Commit

Permalink
feat: upgrade nx and add license to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Tirke committed Dec 28, 2023
1 parent 69a5723 commit 00b0010
Show file tree
Hide file tree
Showing 11 changed files with 3,074 additions and 2,120 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ testem.log
# System Files
.DS_Store
Thumbs.db

.nx/cache
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Add files here to ignore them from prettier formatting
/dist
/coverage

/.nx/cache
78 changes: 69 additions & 9 deletions migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,78 @@
"migrations": [
{
"cli": "nx",
"version": "16.8.0-beta.3",
"description": "Escape $ in env variables",
"implementation": "./src/migrations/update-16-8-0/escape-dollar-sign-env-variables",
"version": "17.0.0-beta.1",
"description": "Updates the default cache directory to .nx/cache",
"implementation": "./src/migrations/update-17-0-0/move-cache-directory",
"package": "nx",
"name": "16.8.0-escape-dollar-sign-env"
"name": "17.0.0-move-cache-directory"
},
{
"version": "16.8.0",
"description": "update-16-8-0-add-ignored-files",
"implementation": "./src/migrations/update-16-8-0-add-ignored-files/update-16-8-0-add-ignored-files",
"package": "@nx/linter",
"name": "update-16-8-0-add-ignored-files"
"cli": "nx",
"version": "17.0.0-beta.3",
"description": "Use minimal config for tasksRunnerOptions",
"implementation": "./src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options",
"package": "nx",
"name": "17.0.0-use-minimal-config-for-tasks-runner-options"
},
{
"version": "17.0.0-rc.1",
"description": "Migration for v17.0.0-rc.1",
"implementation": "./src/migrations/update-17-0-0/rm-default-collection-npm-scope",
"package": "nx",
"name": "rm-default-collection-npm-scope"
},
{
"cli": "nx",
"version": "16.8.2-beta.0",
"description": "Remove invalid options (strict, noInterop) for ES6 type modules.",
"factory": "./src/migrations/update-16-8-2/update-swcrc",
"package": "@nx/js",
"name": "16-8-2-update-swcrc"
},
{
"cli": "nx",
"version": "17.0.2",
"description": "Remove deprecated build options",
"implementation": "./src/migrations/update-17-0-0/remove-deprecated-build-options",
"package": "@nx/js",
"name": "update-17-0-0-remove-deprecated-build-options"
},
{
"version": "17.0.0-beta.7",
"description": "update-17-0-0-rename-to-eslint",
"implementation": "./src/migrations/update-17-0-0-rename-to-eslint/update-17-0-0-rename-to-eslint",
"package": "@nx/eslint",
"name": "update-17-0-0-rename-to-eslint"
},
{
"version": "17.1.0-beta.1",
"description": "Updates for @typescript-utils/utils v6.9.1+",
"implementation": "./src/migrations/update-17-1-0/update-typescript-eslint",
"package": "@nx/eslint",
"name": "update-typescript-eslint"
},
{
"version": "17.2.0-beta.0",
"description": "Simplify eslintFilePatterns",
"implementation": "./src/migrations/update-17-2-0/simplify-eslint-patterns",
"package": "@nx/eslint",
"name": "simplify-eslint-patterns"
},
{
"cli": "nx",
"version": "17-2-6-beta.1",
"description": "Rename workspace rules from @nx/workspace/name to @nx/workspace-name",
"implementation": "./src/migrations/update-17-2-6-rename-workspace-rules/rename-workspace-rules",
"package": "@nx/eslint-plugin",
"name": "update-17-2-6-rename-workspace-rules"
},
{
"version": "17.1.0-beta.2",
"description": "Move jest executor options to nx.json targetDefaults",
"implementation": "./src/migrations/update-17-1-0/move-options-to-target-defaults",
"package": "@nx/jest",
"name": "move-options-to-target-defaults"
}
]
}
59 changes: 21 additions & 38 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,38 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"npmScope": "tirke",
"affected": {
"defaultBase": "main"
},
"tasksRunnerOptions": {
"default": {
"runner": "nx-cloud",
"options": {
"cacheableOperations": [
"build",
"lint",
"test",
"e2e"
],
"accessToken": "ZjVhZDI4NDktYjgwOC00ZjI5LWI3ZmItNDRjY2M5YTlmNWQ3fHJlYWQtd3JpdGU="
}
}
},
"targetDefaults": {
"build": {
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
]
},
"test": {
"inputs": [
"default",
"^production",
"{workspaceRoot}/jest.preset.js"
]
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"cache": true
},
"lint": {
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json"
]
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true
},
"@nx/jest:jest": {
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"cache": true,
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
},
"workspaceLayout": {
"appsDir": "packages",
"libsDir": "packages"
},
"namedInputs": {
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [],
"production": [
"default",
Expand All @@ -60,5 +42,6 @@
"!{projectRoot}/.eslintrc.json",
"!{projectRoot}/src/test-setup.[jt]s"
]
}
},
"nxCloudAccessToken": "ZjVhZDI4NDktYjgwOC00ZjI5LWI3ZmItNDRjY2M5YTlmNWQ3fHJlYWQtd3JpdGU="
}
25 changes: 12 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,33 @@
},
"dependencies": {
"ioredis": "^5.3.2",
"mongodb": "^6.1.0"
"mongodb": "^6.3.0"
},
"devDependencies": {
"@changesets/cli": "2.27.1",
"@nx/eslint-plugin": "16.8.1",
"@nx/jest": "16.8.1",
"@nx/js": "16.8.1",
"@nx/linter": "16.8.1",
"@nx/workspace": "16.8.1",
"@nx/eslint-plugin": "17.2.8",
"@nx/jest": "17.2.8",
"@nx/js": "17.2.8",
"@nx/workspace": "17.2.8",
"@svitejs/changesets-changelog-github-compact": "1.1.0",
"@swc/cli": "0.1.63",
"@swc/core": "1.3.101",
"@swc/jest": "0.2.29",
"@types/jest": "29.5.11",
"@types/node": "20.10.5",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "5.62.0",
"@types/node": "18.16.9",
"@typescript-eslint/eslint-plugin": "6.16.0",
"@typescript-eslint/parser": "6.16.0",
"cache-manager": "5.3.2",
"eslint": "8.56.0",
"eslint": "8.48.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"jest": "29.7.0",
"nx": "16.8.1",
"nx-cloud": "16.5.2",
"nx": "17.2.8",
"prettier": "3.1.1",
"ts-node": "10.9.2",
"tsup": "8.0.1",
"typescript": "5.3.3",
"zx": "7.2.3"
"zx": "7.2.3",
"@nx/eslint": "17.2.8"
}
}
1 change: 1 addition & 0 deletions packages/node-cache-manager-ioredis/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@tirke/node-cache-manager-ioredis",
"license": "MIT",
"version": "3.4.0",
"type": "commonjs",
"repository": "https://github.com/Tirke/node-cache-manager-stores",
Expand Down
22 changes: 5 additions & 17 deletions packages/node-cache-manager-ioredis/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"targets": {
"build": {
"executor": "nx:run-commands",
"outputs": [
"{workspaceRoot}/dist/packages/node-cache-manager-ioredis"
],
"outputs": ["{workspaceRoot}/dist/packages/node-cache-manager-ioredis"],
"options": {
"parallel": false,
"commands": [
Expand All @@ -25,24 +23,14 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"options": {
"lintFilePatterns": [
"packages/node-cache-manager-ioredis/**/*.ts"
]
}
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
"outputs": [
"{workspaceRoot}/coverage/packages/node-cache-manager-ioredis"
],
"outputs": ["{workspaceRoot}/coverage/packages/node-cache-manager-ioredis"],
"options": {
"jestConfig": "packages/node-cache-manager-ioredis/jest.config.ts",
"passWithNoTests": true
"jestConfig": "packages/node-cache-manager-ioredis/jest.config.ts"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions packages/node-cache-manager-mongodb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@tirke/node-cache-manager-mongodb",
"version": "1.3.0",
"license": "MIT",
"type": "commonjs",
"repository": "https://github.com/Tirke/node-cache-manager-stores",
"funding": "https://github.com/sponsors/tirke",
Expand Down
22 changes: 5 additions & 17 deletions packages/node-cache-manager-mongodb/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"targets": {
"build": {
"executor": "nx:run-commands",
"outputs": [
"{workspaceRoot}/dist/packages/node-cache-manager-ioredis"
],
"outputs": ["{workspaceRoot}/dist/packages/node-cache-manager-ioredis"],
"options": {
"parallel": false,
"commands": [
Expand All @@ -25,24 +23,14 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": [
"{options.outputFile}"
],
"options": {
"lintFilePatterns": [
"packages/node-cache-manager-mongodb/**/*.ts"
]
}
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"test": {
"executor": "@nx/jest:jest",
"outputs": [
"{workspaceRoot}/coverage/packages/node-cache-manager-mongodb"
],
"outputs": ["{workspaceRoot}/coverage/packages/node-cache-manager-mongodb"],
"options": {
"jestConfig": "packages/node-cache-manager-mongodb/jest.config.ts",
"passWithNoTests": true
"jestConfig": "packages/node-cache-manager-mongodb/jest.config.ts"
}
}
},
Expand Down
Loading

0 comments on commit 00b0010

Please sign in to comment.