Matter cleanup (#641)
This commit enables use of binary zap build for the Matter SDK. It bring the Matter JS code into the zap, cleans it up, and adds few new mechanisms to the templates.json files to support the Matter handling of yaml tests and test maintenance. It also adds categorization and aliasing of helpers, so that only a subset can be loaded. Furthermore, the handlebars instance is now no longer global, but it is created per-generation, and populated with the right subset of helpers. Individual commits: * Import: 07/29/2022 * Lint cleanup. * Cleanup and alias few helpers. * Add more directories to import. * Use common aliases. * Cleaning up imports. * Import: add more files. * Further imports cleanup. * .js -> .ts * Add category for Matter helpers. * Comment, so I stop being confused. * Add missing import of dbenum. * Add the unit test for the helper loading via aliases. * Fix the unit test. * Cleanup the helpers api retrieval. * Include a missing js file. * Fix the api loading and testing. * Skip automatic loading of categorized or aliased helpers. * Add mechanism to auto-load helper categories and aliases. * Make category functionality from gen-templates.json work correctly. * Fix the bizarre mechanism of importing simulated clusters. * Shortcut the package loading in case of only one available. * Add more yaml files. * Remove pointless directory read. * Add the copying of the yaml files to copy script. * Skip the meta symbol. * Add the tests. * Import: 8/2/2022 * Fix two small problems that accumulated into major problems. * Fix various Matter issues. * Remove stray require. * Clean up the initialization API. * Clean up the weird initialization of PICS.yaml. * Remove a console.log * Cleanup and alias another helper package. * Add mechanism to share resource paths from gen-templates.json. * Apply externalized resources to be able to remove all the yaml files. * Remove yaml copying. Will not need this again. * Import: 8/4/2022 * Detect open handles. * Remove a useless test. * Temporarily lower the coverage requirements, before we bring in Matter unit tests. * Configure Matter code to stop doing ASI and instead put semicolons in the code. * Move the tests out into JSON files. * Move all the tests into ciTests json, deal with a more complex include+disable case. * Properly read relative path for the tests.json files. * Remove all tests code for matter. * Remove unneeded JSON files that moved to SDK. * Regen api baselines and remove references to test helpers. * Stray rebase problem. * Run cypress only once.
显示
- .github/workflows/cypress.yml 1 个添加, 1 个删除.github/workflows/cypress.yml
- docs/api.md 2255 个添加, 1377 个删除docs/api.md
- jest.config.js 4 个添加, 4 个删除jest.config.js
- package.json 9 个添加, 1 个删除package.json
- src-electron/generator/generation-engine.js 146 个添加, 39 个删除src-electron/generator/generation-engine.js
- src-electron/generator/helper-access.js 0 个添加, 4 个删除src-electron/generator/helper-access.js
- src-electron/generator/helper-zcl.js 3 个添加, 0 个删除src-electron/generator/helper-zcl.js
- src-electron/generator/helper-zigbee-zcl.js 0 个添加, 4 个删除src-electron/generator/helper-zigbee-zcl.js
- src-electron/generator/matter/app/zap-templates/common/ChipTypesHelper.js 58 个添加, 0 个删除...erator/matter/app/zap-templates/common/ChipTypesHelper.js
- src-electron/generator/matter/app/zap-templates/common/ClusterTestGeneration.js 1241 个添加, 0 个删除.../matter/app/zap-templates/common/ClusterTestGeneration.js
- src-electron/generator/matter/app/zap-templates/common/ClustersHelper.js 1058 个添加, 0 个删除...nerator/matter/app/zap-templates/common/ClustersHelper.js
- src-electron/generator/matter/app/zap-templates/common/Deferred.js 34 个添加, 0 个删除...ron/generator/matter/app/zap-templates/common/Deferred.js
- src-electron/generator/matter/app/zap-templates/common/ListHelper.js 33 个添加, 0 个删除...n/generator/matter/app/zap-templates/common/ListHelper.js
- src-electron/generator/matter/app/zap-templates/common/StringHelper.js 56 个添加, 0 个删除...generator/matter/app/zap-templates/common/StringHelper.js
- src-electron/generator/matter/app/zap-templates/common/attributes/Accessors.js 128 个添加, 0 个删除...r/matter/app/zap-templates/common/attributes/Accessors.js
- src-electron/generator/matter/app/zap-templates/common/override.js 88 个添加, 0 个删除...ron/generator/matter/app/zap-templates/common/override.js
- src-electron/generator/matter/app/zap-templates/common/simulated-clusters/SimulatedClusters.js 104 个添加, 0 个删除...-templates/common/simulated-clusters/SimulatedClusters.js
- src-electron/generator/matter/app/zap-templates/common/simulated-clusters/clusters/CommissionerCommands.js 51 个添加, 0 个删除...ommon/simulated-clusters/clusters/CommissionerCommands.js
- src-electron/generator/matter/app/zap-templates/common/simulated-clusters/clusters/DelayCommands.js 68 个添加, 0 个删除...lates/common/simulated-clusters/clusters/DelayCommands.js
- src-electron/generator/matter/app/zap-templates/common/simulated-clusters/clusters/DiscoveryCommands.js 180 个添加, 0 个删除...s/common/simulated-clusters/clusters/DiscoveryCommands.js
加载中
想要评论请 注册 或 登录