Jacdac TypeScript library
Перейти к файлу
semantic-release-bot 0b45b6cffe chore(release): 1.31.0 [skip ci]
# [1.31.0](https://github.com/microsoft/jacdac-ts/compare/v1.30.10...v1.31.0) (2023-02-13)

### Features

* Await once ([#298](https://github.com/microsoft/jacdac-ts/issues/298)) ([d200cb7](d200cb7588))
2023-02-13 18:48:39 +00:00
.devcontainer bump node version 2023-01-06 23:03:23 +00:00
.github/workflows attempt to support node18 2023-01-06 23:38:15 +00:00
.vscode fix: log register not implemented in describe 2022-03-23 21:00:44 +00:00
assets/icons patch: rotated logo 2021-09-10 10:30:18 -07:00
jacdac-spec@c30ae58fda fix: update default streaming interval on wifi.rssi 2023-02-12 00:00:25 -08:00
src feat: Await once (#298) 2023-02-13 10:47:28 -08:00
tests cleaning out vmtests (#287) 2022-08-10 08:37:39 -07:00
tools removing peer.js 2022-08-16 12:15:17 -07:00
.gitattributes fixing line endings 2020-09-29 15:49:00 +02:00
.gitignore added p5 tests 2021-09-13 20:54:22 -07:00
.gitmodules removed pxt-jacdac submodule (#266) 2021-11-30 09:32:53 -08:00
.nojekyll disable jekyll 2021-07-29 08:41:17 -07:00
.npm-ignore removing typedoc 2020-06-22 20:25:16 -07:00
.prettierrc Eslint (#164) 2021-02-26 03:26:22 -08:00
.releaserc.json patch: updated asserts syntax 2021-06-29 02:49:49 -07:00
CODE_OF_CONDUCT.md Initial CODE_OF_CONDUCT.md commit 2020-06-22 06:24:26 -07:00
CONTRIBUTING.md added contributing 2021-02-28 21:59:39 +01:00
DOCS.md patch: updated docs 2021-10-27 15:55:41 -07:00
LICENSE Initial LICENSE commit 2020-06-22 06:24:27 -07:00
README.md removing peer.js 2022-08-16 12:15:17 -07:00
SECURITY.md Initial SECURITY.md commit 2020-06-22 06:24:29 -07:00
build.js add ./build.js --fast option 2023-01-26 08:56:37 -08:00
package.json chore(release): 1.31.0 [skip ci] 2023-02-13 18:48:39 +00:00
tsconfig.json fix: build for es2020 2023-01-03 11:40:31 -08:00
tslint.json better rendering of pip packets 2020-12-29 08:10:09 +01:00
typedoc.json more docs 2021-08-29 07:18:03 -07:00
yarn.lock attempt to support node18 2023-01-06 23:38:15 +00:00

README.md

Jacdac for JavaScript/TypeScript

Jacdac is a plug-and-play hardware/software stack for microcontrollers and their peripherals (sensors/actuators), with applications to rapid prototyping, making, and physical computing.

This repository contains a TypeScript/JavaScript client library for the Jacdac protocol.

The rest of this page is for developers of the jacdac-ts library.

Developer setup

  • clone this repository and pull all submodules
git clone https://github.com/microsoft/jacdac-ts
git submodule update --init --recursive
git pull
  • install node.js
  • install yarn
[sudo] npm install -g yarn
  • install dependencies
yarn install --frozen-lockfile

Visual Studio Code

You are welcome to use any editor you want! Visual Studio Code provides seamless support for git sub-modules and is our preferred editor.

code .
  • install the recommended extensions (MDX, ESLint and Prettier extensions)
  • in the Git view, click on the jacdac branch and select main so that changes are automatically synched

Build

To have a watch developement,

yarn watch

otherwise to build all libraries

yarn dist

Specs build

To regenerate the service definition JSON files from the .md files in jacdac-spec, run

yarn buildspecs

Unit tests

We use Mocha to run the unit test suite from /tests. To execute the tests,

yarn test

Linting

Run the following command to detect linting issues

yarn lint

Jacdac + MakeCode

Local build

Run this command to rebuild the makecode packages

yarn buildpxt

HTML Tools

Launch a small web server and try all the tools under /tools/* at http://localhost:8080/tools . These tools load the files under dist so you'll want to also run yarn watch on the side.

yarn tools

These tools are also available on the GitHub pages of this repository:

Experimental...

Commits create releases

The releases are automatically created by the build system based on the title of the commit:

  • patch:... or fix:... patch
  • minor:... or feature:... minor

Microsoft Open Source Code of Conduct

This project is hosted at https://github.com/microsoft/jacdac-ts. This project has adopted the Microsoft Open Source Code of Conduct.

Resources: