Commit Graph

8 Commits

Author SHA1 Message Date
Wyatt Hepler
0a2c6ba660 pw_status: Consolidate Status docs
- Move the status description from C++ to the docs so there is a single
  description of the status codes that applies to all languages. This
  also allows anywhere in the docs / Doxygen comments to link to the
  status codes.
- Document using status codes in all supported languages.
- Link to the status descriptions in Pigweed's docs from C++, Python,
  and TypeScript.
- Introduce Doxygen alias so status codes can be referenced with
  @pw_status{CODE} in Doxygen comments.

Change-Id: I7a59bc90da9cec09a08376952cf8472e02c67f03
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/136732
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Kayce Basques <kayce@google.com>
2023-04-08 01:08:58 +00:00
Asad Memon
1748cd0a45 pw_web: Cleanup old yarn.lock and package.json files
Bug: b/258264879
Change-Id: Icfe8c9dd31c1fa2a9c293b7d0a7fb3dfa49b33e3
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/118198
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Commit-Queue: Asad Memon <asadmemon@google.com>
Reviewed-by: Rob Mohr <mohrr@google.com>
2022-11-10 18:17:50 +00:00
Asad Memon
0b4b2141a2 pw_web_ui: Migrate all .ts tests to Jest and run using npm command
Removes all the Bazel files that build TypeScript modules.
In a follow-up, modules will be bundled and exposed as an NPM package.

Docs to be updated in a follow-up CL.

Change-Id: Iedf042237e78b41d108503cbd33bbd7598e9ab67
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/101167
Commit-Queue: Asad Memon <asadmemon@google.com>
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
2022-07-19 21:45:13 +00:00
Jared Weinstein
014258ba61 pw_web_ui: Lint typescript files
The result of running `yarn run gts fix`

No-Docs-Update-Reason: Linting
Change-Id: If8776027c461c128918677cbda0b8f003b9c1e76
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/66569
Reviewed-by: Paul Mathieu <paulmathieu@google.com>
Commit-Queue: Jared Weinstein <jaredweinstein@google.com>
Pigweed-Auto-Submit: Jared Weinstein <jaredweinstein@google.com>
2021-10-27 19:09:59 +00:00
Paul Mathieu
bf9e3be8e9 pw_status: Refactor TS build to use ts_project
Testing done:
- bazel build //pw_status/ts:pw_status

No-Docs-Update-Reason: build system refactor
Change-Id: I8b228773f0872c7c75af5eda2bff01e064d5dc60
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/62980
Reviewed-by: Jared Weinstein <jaredweinstein@google.com>
Commit-Queue: Paul Mathieu <paulmathieu@google.com>
2021-10-07 21:53:55 +00:00
Paul Mathieu
6ce48026b7 Update nodejs bazel rules to 4.1.0
This is needed to help converting TS packages to using ts_project
instead of ts_library.

No-Docs-Update-Reason: infra change with no downstream impact
Change-Id: Ida86887d6ba5bda4e877ed418f178a288097b634
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/60940
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Jared Weinstein <jaredweinstein@google.com>
Reviewed-by: Paul Mathieu <paulmathieu@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Pigweed-Auto-Submit: Paul Mathieu <paulmathieu@google.com>
2021-09-30 22:48:42 +00:00
Jared Weinstein
d464911581 pw_rpc: packets.ts
Add helper functions for encoding/decoding pw_rpc packets in typescript.

Change-Id: I0e1d4bc7022cc3d961b22e2d4d460488f1d352fa
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/57845
Pigweed-Auto-Submit: Jared Weinstein <jaredweinstein@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
2021-08-30 20:21:22 +00:00
Jared Weinstein
ef588a3530 pw_status: add typescript enumeration
Change-Id: Ie1eadb087bcfef6b2e44c63d9f274d071f237bdd
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/57325
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Jared Weinstein <jaredweinstein@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
2021-08-19 00:52:25 +00:00