Skip to content

Commit

Permalink
feat: update ts codegen
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Aug 12, 2024
1 parent f9f2644 commit c25abe6
Show file tree
Hide file tree
Showing 293 changed files with 102,611 additions and 86,807 deletions.
6 changes: 5 additions & 1 deletion make/codegen.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ proto-gen: $(patsubst %, proto-gen-%,$(PROTO_GEN_MODS))
proto-gen-go: $(BUF) $(GOGOPROTO) $(PROTOC_GEN_GOCOSMOS) $(PROTOC_GEN_GRPC_GATEWAY) $(PROTOC_GEN_GO)
./script/protocgen.sh go $(GO_MOD_NAME) $(GO_ROOT)

.PHONY: proto-gen-pulsar
proto-gen-pulsar: $(BUF) $(PROTOC_GEN_GO) $(PROTOC_GEN_PULSAR)
./script/protocgen.sh pulsar $(GO_MOD_NAME)

.PHONY: proto-gen-ts
proto-gen-ts: $(BUF) $(AKASH_TS_NODE_MODULES)
./script/protocgen.sh ts $(GO_MOD_NAME)
./script/protocgen.sh ts

.PHONY: proto-gen-doc
proto-gen-doc: $(BUF) $(SWAGGER_COMBINE) $(PROTOC_GEN_DOC) $(PROTOC_GEN_SWAGGER)
Expand Down
64 changes: 32 additions & 32 deletions ts/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{
"ignorePatterns": ["node_modules/", "build/", "umd/"],
"env": {
"node": true,
"es2021": true,
"jest": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "simple-import-sort"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
"ignorePatterns": ["node_modules/", "build/", "umd/"],
"env": {
"node": true,
"es2021": true,
"jest": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"simple-import-sort/imports": "error"
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "simple-import-sort"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
],
"simple-import-sort/imports": "error"
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}
52 changes: 26 additions & 26 deletions ts/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
const common = {
transform: {
"^.+\\.(t|j)s$": ["ts-jest", { tsconfig: "./tsconfig.json" }],
},
rootDir: ".",
setupFiles: ["./test/setup.ts"],
transform: {
"^.+\\.(t|j)s$": ["ts-jest", { tsconfig: "./tsconfig.json" }],
},
rootDir: ".",
setupFiles: ["./test/setup.ts"],
};

module.exports = {
collectCoverageFrom: [
"<rootDir>/src/**/*.{js,ts}",
"!<rootDir>/src/generated/**/*",
"!<rootDir>/src/deprecated/**/*",
"!<rootDir>/src/patch/index.*",
"!<rootDir>/src/index.*",
],
projects: [
{
displayName: "unit",
...common,
testMatch: ["<rootDir>/src/**/*.spec.ts"],
setupFilesAfterEnv: ["./test/setup-unit-tests.ts"],
},
{
displayName: "functional",
...common,
testMatch: ["<rootDir>/test/functional/**/*.spec.ts"],
setupFilesAfterEnv: ["./test/setup-functional-tests.ts"],
},
],
collectCoverageFrom: [
"<rootDir>/src/**/*.{js,ts}",
"!<rootDir>/src/generated/**/*",
"!<rootDir>/src/deprecated/**/*",
"!<rootDir>/src/patch/index.*",
"!<rootDir>/src/index.*",
],
projects: [
{
displayName: "unit",
...common,
testMatch: ["<rootDir>/src/**/*.spec.ts"],
setupFilesAfterEnv: ["./test/setup-unit-tests.ts"],
},
{
displayName: "functional",
...common,
testMatch: ["<rootDir>/test/functional/**/*.spec.ts"],
setupFilesAfterEnv: ["./test/setup-functional-tests.ts"],
},
],
};
Loading

0 comments on commit c25abe6

Please sign in to comment.