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

Development #64

Open
wants to merge 38 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f08c780
test: add `test-support` package for testing purposes
adrigzr Mar 15, 2023
8138702
feat(transport-tcp): add `PacketFactory`
adrigzr Mar 15, 2023
7095a5e
feat(transport-tcp): add packet event handler blocks
adrigzr Mar 16, 2023
665add1
feat(adapter-tcp): add event handlers
adrigzr Mar 18, 2023
3a29e37
feat: add domain events
adrigzr Mar 18, 2023
466923c
feat(adapter-tcp): add more packet event handlers
adrigzr Mar 19, 2023
866fa53
feat(adapter-tcp): add commands
adrigzr Mar 19, 2023
c9dc65f
test(adapter-tcp): add integration tests
adrigzr Mar 20, 2023
339541a
feat: add core package
adrigzr Mar 20, 2023
8187518
feat: add task bus for commands and queries
adrigzr Mar 20, 2023
09db582
test: raise coverage
adrigzr Mar 21, 2023
39e10eb
feat: add connection repository
adrigzr Mar 21, 2023
ab8e28f
feat(core): add `host` option to `listen` method
adrigzr Mar 23, 2023
4925e5e
refactor(adapter-tcp): relocate handlers
adrigzr Mar 23, 2023
23ff324
refactor: remove legacy code
adrigzr Mar 23, 2023
49eaaa3
feat: add `FindDeviceQuery`
adrigzr Mar 23, 2023
c3e657e
refactor(transport-tcp): rename `object` to `data` in `Payload`
adrigzr Mar 23, 2023
ae0811c
test: raise coverage
adrigzr Mar 23, 2023
a9cb5ea
feat: add device battery changed domain event
adrigzr Mar 24, 2023
858b6f3
feat: add more domain events
adrigzr Mar 24, 2023
7ae8f49
refactor(domain): rename `DeviceWlan` to `DeviceNetwork`
adrigzr Mar 25, 2023
e9617b3
feat(domain): add `DeviceVersionChangedDomainEvent`
adrigzr Mar 26, 2023
d92ee6a
feat(domain): add `DeviceSettingsChangedDomainEvent`
adrigzr Mar 26, 2023
c6b7400
test(adapter-tcp): raise coverage
adrigzr Mar 26, 2023
7d49c08
feat(domain): add `DeviceCleanWorkChangedDomainEvent`
adrigzr Mar 26, 2023
23c6d93
feat(domain): add more domain events
adrigzr Mar 27, 2023
f1c5614
feat(adapter-tcp): raise coverage
adrigzr Mar 28, 2023
656d369
chore(eslint-config): add tsdoc-required plugin
adrigzr Mar 28, 2023
8a2fe07
feat: add basic control commands
adrigzr Mar 29, 2023
8cd28a8
feat: add `SetCarpetModeCommand`
adrigzr Mar 31, 2023
1bea2ac
feat: add consumables commands
adrigzr Apr 1, 2023
c458a2b
feat: add set fan speed command
adrigzr Apr 1, 2023
1dd0159
feat: add more device services
adrigzr Apr 3, 2023
81af21e
feat: add clean spot & zone commands
adrigzr Apr 11, 2023
f183fe9
feat: add set device mode command
adrigzr Apr 11, 2023
14e98a5
docs(toolkit): add type docs
adrigzr Apr 11, 2023
e863e7a
chore(domain): add command, query and domain event dictionaries
adrigzr Apr 11, 2023
968423d
feat(cli): add basic REPL command
adrigzr Apr 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .ncurc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"reject": ["chalk", "execa"]
"reject": ["chalk", "execa", "emittery"]
}
2 changes: 1 addition & 1 deletion nyc.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module.exports = {
all: true,
reporter: ['html', 'lcov', 'json', 'json-summary', 'text-summary'],
'report-dir': 'coverage',
exclude: ['**/*.test.ts', '**/test-support/**/*', '**/test-support.ts', '**/coverage/**', '**/lib/**', '**/types/**'],
exclude: ['**/*.test.ts', '**/coverage/**', '**/lib/**', '**/types/**'],
};
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"clean:packages": "lerna run clean",
"dependency:upgrade": "ncu --upgrade --peer --deep && yarn-deduplicate --strategy fewer && yarn install",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel 'lint:!(fix)'",
"lint:code": "eslint --cache --max-warnings 0 .",
"lint:code": "eslint --cache .",
"lint:code:fix": "eslint --fix .",
"lint:style": "prettier --check .",
"lint:style:fix": "prettier --write .",
Expand All @@ -28,7 +28,7 @@
}
},
"devDependencies": {
"@commitlint/cli": "^17.4.4",
"@commitlint/cli": "^17.5.0",
"@commitlint/config-conventional": "^17.4.4",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@johanblumenberg/ts-mockito": "^1.0.35",
Expand All @@ -38,22 +38,23 @@
"@types/debug": "^4.1.7",
"@types/mocha": "^10.0.1",
"@types/mock-fs": "^4.13.1",
"@types/node": "^18.14.2",
"@types/node": "^18.15.5",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"husky": "^8.0.3",
"json": "^11.0.0",
"lerna": "^6.5.1",
"lint-staged": ">=13.1.2",
"lerna": "^6.6.0",
"lint-staged": ">=13.2.0",
"mocha": "^10.2.0",
"npm-check-updates": "^16.7.9",
"npm-check-updates": "^16.8.0",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "2.8.4",
"prettier": "2.8.6",
"ts-node": "^10.9.1",
"typedoc": "^0.23.25",
"tsconfig-paths": "^4.1.2",
"typedoc": "^0.23.28",
"typedoc-plugin-resolve-crossmodule-references": "^0.3.3",
"typescript": "^4.9.5",
"yarn-deduplicate": "^6.0.1"
Expand Down
14 changes: 9 additions & 5 deletions packages/adapter-tcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"build:lib": "tsc -b tsconfig.build.json",
"clean": "rm -rf .build-cache lib coverage",
"posttest": "test \"$(cat coverage/coverage-summary.json | json total.lines.total)\" -gt 0",
"test": "nyc mocha src"
"test": "nyc mocha src test"
},
"nx": {
"targets": {
Expand All @@ -54,10 +54,14 @@
]
},
"test": {
"dependsOn": [
"build"
],
"inputs": [
"{workspaceRoot}/.mocharc.yml",
"{workspaceRoot}/nyc.config.js",
"{projectRoot}/src/**/*"
"{projectRoot}/src/**/*",
"{projectRoot}/test/**/*"
],
"outputs": [
"{projectRoot}/coverage"
Expand All @@ -68,9 +72,9 @@
"dependencies": {
"@agnoc/domain": "^0.18.0-next.0",
"@agnoc/schemas-tcp": "^0.16.0",
"@agnoc/transport-tcp": "^0.18.0-next.0",
"@agnoc/toolkit": "^0.18.0-next.0",
"debug": "^4.3.4",
"tiny-typed-emitter": "^2.1.0",
"emittery": "^0.13.1",
"tslib": "^2.5.0"
},
"devDependencies": {
Expand All @@ -83,6 +87,6 @@
"typedoc": {
"entryPoint": "./src/index.ts",
"readmeFile": "./README.md",
"displayName": "adapter TCP"
"displayName": "Adapter TCP"
}
}
Loading