Jacdac TypeScript library
Перейти к файлу
semantic-release-bot 7f930f187b chore(release): 1.14.4 [skip ci]
## [1.14.4](https://github.com/microsoft/jacdac-ts/compare/v1.14.3...v1.14.4) (2021-08-21)
2021-08-21 12:21:04 +00:00
.devcontainer updated container settings 2021-08-12 11:04:48 -07:00
.github/workflows disable jekyll 2021-07-29 08:44:08 -07:00
.vscode updated container settings 2021-08-12 11:04:48 -07:00
assets/icons
config
jacdac-spec@794589fb18 patch: dep updates 2021-08-21 05:18:38 -07:00
pxt-jacdac@edbc4e4b06 patch: dep updates 2021-08-21 05:18:38 -07:00
src chore(release): 1.14.4 [skip ci] 2021-08-21 12:21:04 +00:00
tests Centralize FastForwardBus scheduler, add TestDriver.assertWith, refactor VM tests (#240) 2021-08-13 17:39:02 -07:00
tools Physical Device Testing (#232) 2021-07-30 15:29:05 -06:00
.gitattributes
.gitignore Typedoc (#233) 2021-07-29 08:31:17 -07:00
.gitmodules Makecode gen (#158) 2021-02-11 11:34:21 +01:00
.nojekyll disable jekyll 2021-07-29 08:41:17 -07:00
.npm-ignore
.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
CONTRIBUTING.md added contributing 2021-02-28 21:59:39 +01:00
LICENSE
README.md partner preview message 2021-08-06 05:33:55 -07:00
SECURITY.md
package.json chore(release): 1.14.4 [skip ci] 2021-08-21 12:21:04 +00:00
rollup.config.ts Physical Device Testing (#232) 2021-07-30 15:29:05 -06:00
tsconfig.json Typedoc (#233) 2021-07-29 08:31:17 -07:00
tslint.json better rendering of pip packets 2020-12-29 08:10:09 +01:00
typedoc.json patch: a few more docs updates 2021-07-29 12:40:11 -07:00
yarn.lock patch: dep updates 2021-08-21 05:18:38 -07:00

README.md

Jacdac 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.

Partner Preview: Jacdac is currently in preview. If you would like to join as a pre-release test partner, please email jacdac-tap@microsoft.com.

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
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: