68 lines
1.6 KiB
Markdown
68 lines
1.6 KiB
Markdown
|
# LEGO Mindstorms EV3 target for PXT
|
||
|
|
||
|
[![Build Status](https://ci2.dot.net/buildStatus/icon?job=Private/pxt_project_pink/master/pxt-ev3_Push)](https://ci2.dot.net/job/Private/job/pxt_project_pink/job/master/job/pxt-ev3_Push/)
|
||
|
|
||
|
This repo contains the editor target hosted at https://lego.makecode.com
|
||
|
|
||
|
## Local Dev setup
|
||
|
|
||
|
These instructions assume familiarity with dev tools and languages.
|
||
|
|
||
|
* install Node.js 6+
|
||
|
* install [yotta](http://docs.yottabuild.org/#installing)
|
||
|
* (optional) install [Visual Studio Code](https://code.visualstudio.com/)
|
||
|
|
||
|
In a common folder,
|
||
|
|
||
|
* clone https://github.com/Microsoft/pxt to ``pxt`` folder
|
||
|
* clone https://github.com/Microsoft/pxt-common-packages to ``pxt-common-packages`` folder
|
||
|
* clone https://github.com/Microsoft/pxt-ev3 to ``pxt-ev3`` folder
|
||
|
* go to ``pxt`` and run
|
||
|
|
||
|
```
|
||
|
npm install
|
||
|
typings install
|
||
|
```
|
||
|
|
||
|
* go to ``pxt-common-packages`` and run
|
||
|
|
||
|
```
|
||
|
npm install
|
||
|
npm link ../pxt
|
||
|
```
|
||
|
|
||
|
* go to ``pxt-ev3`` and run
|
||
|
|
||
|
```
|
||
|
npm install
|
||
|
npm link ../pxt
|
||
|
npm link ../pxt-common-packages
|
||
|
```
|
||
|
|
||
|
## to run the local server
|
||
|
|
||
|
From root github folder,
|
||
|
|
||
|
```
|
||
|
cd pxt-ev3
|
||
|
pxt serve --cloud
|
||
|
```
|
||
|
|
||
|
## to build and deploy a single package via command line
|
||
|
|
||
|
```
|
||
|
cd libs/core
|
||
|
pxt deploy
|
||
|
```
|
||
|
|
||
|
## Jenkins build
|
||
|
|
||
|
https://ci2.dot.net/job/Private/job/pxt_project_pink/job/master/
|
||
|
|
||
|
## License
|
||
|
MIT
|
||
|
|
||
|
## Code of Conduct
|
||
|
|
||
|
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
|