File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v3
14+ - uses : actions/setup-node@v3
15+ with :
16+ node-version : 18
17+ - run : npm ci
18+ - run : npm test
Original file line number Diff line number Diff line change 1+ # Contributing
2+
3+ Contributions are welcome.
4+
5+ ## Project structures
6+
7+ ```
8+ .devicescript reserved folder for devicescript generated files
9+ src/main.ts default DeviceScript entry point
10+ ...
11+ ```
12+
13+ ## Local/container development
14+
15+ - install [ Node.js LTS 18+] ( https://nodejs.org/en/download )
16+
17+ ``` bash
18+ nvm install 18
19+ nvm use 18
20+ ```
21+
22+ - install DeviceScript compiler and tools
23+
24+ ``` bash
25+ npm install
26+ ```
27+
28+ ### Using Visual Studio Code
29+
30+ - open the project folder in code
31+
32+ ``` bash
33+ code .
34+ ```
35+
36+ - install the [ DeviceScript extension] ( https://microsoft.github.io/devicescript/getting-started/vscode )
37+
38+ - start debugging!
39+
40+ ### Using the command line
41+
42+ - start the watch build and developer tools server
43+
44+ ``` bash
45+ npm run watch
46+ ```
47+
48+ - navigate to devtools page (see terminal output)
49+ to use the simulators or deploy to hardware.
50+
51+ - open ` src/main.ts ` in your favorite TypeScript IDE and start editing.
Original file line number Diff line number Diff line change 1- # - project name -
1+ # Note client for DeviceScript
22
3- This project uses [ DeviceScript] ( https://microsoft.github.io/devicescript/ ) .
3+ This project uses [ DeviceScript] ( https://microsoft.github.io/devicescript/ )
4+ to interact with a [ blues.io Notecard] ( https://blues.io/products/notecard/ ) .
45
5- ## Project structures
6-
7- ```
8- .devicescript reserved folder for devicescript generated files
9- src/main.ts default DeviceScript entry point
10- ...
11- ```
6+ This library uses the [ serial-to-i2c bridge] (// https://dev.blues.io/guides-and-tutorials/notecard-guides/serial-over-i2c-protocol/ ).
127
8+ ** This library has a minimal surface and most messages have not been mapped to types. See [ Notecard API] ( https://dev.blues.io/api-reference/notecard-api/introduction/ ) for a full list. **
139
14- ## Local/container development
10+ ## Usage
1511
16- - install [ Node.js LTS 18+ ] ( https://nodejs.org/en/download )
12+ Add the library to your project:
1713
1814``` bash
19- nvm install 18
20- nvm use 18
15+ npm install --save pelikhan/devicescript-note
2116```
2217
23- - install DeviceScript compiler and tools
24-
25- ``` bash
26- npm install
27- ```
28-
29- ### Using Visual Studio Code
30-
31- - open the project folder in code
32-
33- ``` bash
34- code .
35- ```
36-
37- - install the [ DeviceScript extension] ( https://microsoft.github.io/devicescript/getting-started/vscode )
38-
39- - start debugging!
40-
41- ### Using the command line
42-
43- - start the watch build and developer tools server
44-
45- ``` bash
46- npm run watch
47- ```
48-
49- - navigate to devtools page (see terminal output)
50- to use the simulators or deploy to hardware.
51-
52- - open ` src/main.ts ` in your favorite TypeScript IDE and start editing.
53-
18+ ## [ Contributing] ( ./CONTRIBUTING.md )
Original file line number Diff line number Diff line change 11{
2+ "name" : " devicescript-note" ,
23 "version" : " 0.0.0" ,
3- "private" : " Please use 'yarn devs add npm' to make this a publishable package" ,
44 "dependencies" : {},
55 "devDependencies" : {
66 "@devicescript/cli" : " latest"
1515 "test:devicescript" : " devicescript run src/main.ts --test --test-self-exit" ,
1616 "test" : " npm run test:devicescript" ,
1717 "start" : " npm run watch"
18+ },
19+ "main" : " ./src/index.ts" ,
20+ "license" : " MIT" ,
21+ "devicescript" : {
22+ "library" : true
23+ },
24+ "files" : [
25+ " src/*.ts" ,
26+ " devsconfig.json"
27+ ],
28+ "keywords" : [
29+ " devicescript"
30+ ],
31+ "author" : " pelikhan <jhalleux@microsoft.com>" ,
32+ "repository" : {
33+ "type" : " git" ,
34+ "url" : " https://github.com/pelikhan/devicescript-note.git"
1835 }
1936}
You can’t perform that action at this time.
0 commit comments