Commit Graph

3 Commits

Author SHA1 Message Date
Matthew Soulanille
16bde6b17e pw_web_ui: Add linting with eslint and prettier
Uses gts to run eslint and prettier.gts is Google's TypeScript
formatter (https://github.com/google/gts).

Run `yarn run check` or `yarn run fix` to lint or format the code.
A future CL will add running this linter as a presubmit step.

This CL also formats several project files that weren't linted.

Change-Id: Ibfee61efb0d1f18cbd9aae5e6cb32687e8dce8ac
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/12120
Commit-Queue: Matthew Soulanille <msoulanille@google.com>
Reviewed-by: Matthew Soulanille <msoulanille@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
Reviewed-by: Max Koopman <koopman@google.com>
2020-06-25 20:51:30 +00:00
Matthew Soulanille
5e78acfd49 pw_web_ui: Write WebSerialTransport, which talks to the device.
WebSerialTransport connects to devices over WebSerial and implements the
DeviceTransport interface. DeviceTransport defines how raw bytes are
sent to and from connected devices.

Change-Id: Ic6c402036f9d2aaea61e05b1f4c42ccc58349b3d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/11725
Commit-Queue: Matthew Soulanille <msoulanille@google.com>
Reviewed-by: Max Koopman <koopman@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
2020-06-22 21:27:34 +00:00
Matthew Soulanille
376d797a03 Setup pw_web_ui with Bazel and Jasmine
Initialize the pw_web_ui package and add Bazel as a build system. Add a single example test in `src/transport/web_serial_transport_test.ts` to verify Bazel can build and run Jasmine tests.

HAS_TO_BE_LARGE=Initializing a new package. Most of this is due to yarn.lock.

Change-Id: Ie3adbdba5a91de9a5f16205be8077bafb3a1fee3
2020-06-05 16:13:19 +00:00