Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
7 changes: 7 additions & 0 deletions .cursor/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"mcpServers": {
"nx-mcp": {
"url": "http://localhost:9602/sse"
}
}
}
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

44 changes: 0 additions & 44 deletions .eslintrc.json

This file was deleted.

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ Thumbs.db
lerna-debug.log

.nx

vite.config.*.timestamp*
vitest.config.*.timestamp*
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit $1
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
37 changes: 9 additions & 28 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"files.exclude": {
"**/node_modules": true,
"**/obj": true
"**/obj": true,
"**/dist": true
},

"typescript.preferences.importModuleSpecifier": "project-relative",
Expand All @@ -10,47 +11,27 @@

"typescript.inlayHints.parameterNames.enabled": "all",

"workbench.colorCustomizations": {
"editorInlayHint.background": "#00000000",
"editorInlayHint.foreground": "#666"
},

"eslint.format.enable": true,
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
"eslint.workingDirectories": [
{
"mode": "auto"
}
],
"eslint.workingDirectories": [{ "mode": "auto" }],

"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit"
}
"editor.codeActionsOnSave": { "source.fixAll": "explicit", "source.fixAll.eslint": "explicit" }
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit"
}
"editor.codeActionsOnSave": { "source.fixAll": "explicit", "source.fixAll.eslint": "explicit" }
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit"
}
"editor.codeActionsOnSave": { "source.fixAll": "explicit", "source.fixAll.eslint": "explicit" }
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit"
}
"editor.codeActionsOnSave": { "source.fixAll": "explicit", "source.fixAll.eslint": "explicit" }
},

"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"nxConsole.generateAiAgentRules": true
}
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.1.0](https://github.com/leancodepl/contractsgenerator-typescript/compare/v1.1.0-alpha.7...v1.1.0) (2025-06-23)


### Bug Fixes

* use zod/v4 everywhere ([140d79a](https://github.com/leancodepl/contractsgenerator-typescript/commit/140d79adbed1e65e0f6cc7cec1db585225756634))


### Features

* add date time handling ([bfc0c39](https://github.com/leancodepl/contractsgenerator-typescript/commit/bfc0c39208a4b7b6dd97bfd58b93ccc7f0ec7b5f))
* allow passing arbitrary options to server generator ([b05b744](https://github.com/leancodepl/contractsgenerator-typescript/commit/b05b7441050010f5802c0da82d0a93f370f061f2))
* invoke server generator via dotnet tool, remove serverVersion config option ([2a06500](https://github.com/leancodepl/contractsgenerator-typescript/commit/2a06500d4e6417e615824074da7b20964fcdd86d))





# [1.1.0-alpha.7](https://github.com/leancodepl/contractsgenerator-typescript/compare/v1.1.0-alpha.6...v1.1.0-alpha.7) (2024-12-19)


Expand Down
32 changes: 32 additions & 0 deletions eslint.base.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const nx = require("@nx/eslint-plugin")
const leancode = require("@leancodepl/eslint-config")

delete leancode.imports[0].rules["react/jsx-uses-react"]
delete leancode.imports[0].rules["react/jsx-uses-vars"]

module.exports = [
...nx.configs["flat/base"],
...nx.configs["flat/typescript"],
...nx.configs["flat/javascript"],
{ ignores: ["**/dist"] },
{
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
rules: {
"@nx/enforce-module-boundaries": [
"error",
{
enforceBuildableLibDependency: true,
allow: ["^.*/eslint(\\.base)?\\.config\\.[cm]?js$"],
depConstraints: [{ sourceTag: "*", onlyDependOnLibsWithTags: ["*"] }],
},
],
},
},
{
files: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"],
// Override or add rules here
rules: {},
},
...leancode.base,
...leancode.imports,
]
3 changes: 3 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const baseConfig = require("./eslint.base.config.cjs")

module.exports = [...baseConfig]
6 changes: 3 additions & 3 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getJestProjects } from "@nx/jest";
import { getJestProjectsAsync } from "@nx/jest"

export default {
projects: getJestProjects(),
};
projects: await getJestProjectsAsync(),
}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "1.1.0-alpha.7",
"version": "1.1.0",
"useNx": true,
"command": {
"version": {
Expand Down
18 changes: 0 additions & 18 deletions libs/plugin/.eslintrc.json

This file was deleted.

17 changes: 17 additions & 0 deletions libs/plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,23 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.1.0](https://github.com/leancodepl/contractsgenerator-typescript/compare/v1.1.0-alpha.7...v1.1.0) (2025-06-23)


### Bug Fixes

* use zod/v4 everywhere ([140d79a](https://github.com/leancodepl/contractsgenerator-typescript/commit/140d79adbed1e65e0f6cc7cec1db585225756634))


### Features

* allow passing arbitrary options to server generator ([b05b744](https://github.com/leancodepl/contractsgenerator-typescript/commit/b05b7441050010f5802c0da82d0a93f370f061f2))
* invoke server generator via dotnet tool, remove serverVersion config option ([2a06500](https://github.com/leancodepl/contractsgenerator-typescript/commit/2a06500d4e6417e615824074da7b20964fcdd86d))





# [1.1.0-alpha.7](https://github.com/leancodepl/contractsgenerator-typescript/compare/v1.1.0-alpha.6...v1.1.0-alpha.7) (2024-12-19)

**Note:** Version bump only for package @leancodepl/contractsgenerator-typescript-plugin
Expand Down
3 changes: 3 additions & 0 deletions libs/plugin/eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const baseConfig = require("../../eslint.base.config.cjs")

module.exports = [...baseConfig]
4 changes: 2 additions & 2 deletions libs/plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@leancodepl/contractsgenerator-typescript-plugin",
"version": "1.1.0-alpha.7",
"version": "1.1.0",
"license": "Apache-2.0",
"dependencies": {
"@leancodepl/contractsgenerator-typescript-schema": "1.1.0-alpha.7",
"@leancodepl/contractsgenerator-typescript-schema": "1.1.0",
"node-cache": "^5.0.0"
}
}
10 changes: 7 additions & 3 deletions libs/plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@
"dependsOn": ["build"]
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "libs/plugin/jest.config.ts"
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"coverage": true
}
}
}
}
Expand Down
1 change: 0 additions & 1 deletion libs/plugin/src/lib/generatorPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import NodeCache from "node-cache"
import { GeneratorSchema } from "@leancodepl/contractsgenerator-typescript-schema"
import { GeneratorPluginInstance } from "./generatorPluginInstance"
Expand Down
18 changes: 0 additions & 18 deletions libs/schema/.eslintrc.json

This file was deleted.

11 changes: 11 additions & 0 deletions libs/schema/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.1.0](https://github.com/leancodepl/contractsgenerator-typescript/compare/v1.1.0-alpha.7...v1.1.0) (2025-06-23)


### Features

* add date time handling ([bfc0c39](https://github.com/leancodepl/contractsgenerator-typescript/commit/bfc0c39208a4b7b6dd97bfd58b93ccc7f0ec7b5f))





# [1.1.0-alpha.7](https://github.com/leancodepl/contractsgenerator-typescript/compare/v1.1.0-alpha.6...v1.1.0-alpha.7) (2024-12-19)

**Note:** Version bump only for package @leancodepl/contractsgenerator-typescript-schema
Expand Down
4 changes: 4 additions & 0 deletions libs/schema/eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const { defineConfig } = require("eslint/config")
const baseConfig = require("../../eslint.base.config.cjs")

module.exports = defineConfig([...baseConfig, { ignores: ["**/protocol/"] }])
4 changes: 2 additions & 2 deletions libs/schema/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@leancodepl/contractsgenerator-typescript-schema",
"version": "1.1.0-alpha.7",
"version": "1.1.0",
"license": "Apache-2.0",
"dependencies": {
"@leancodepl/utils": ">=7.2.3",
"lodash": "^4.0.0",
"long": "5.2.3",
"long": "5.3.2",
"protobufjs": "^7.3.2"
}
}
Loading
Loading