Microsoft MakeCode editor for Adafruit Circuit Playground Express
Перейти к файлу
Galen Nickel f045710530
Publish CPX Datacenter Lessons (#1216)
* import datacenter lesson 1 text and images

* rearrange paths

* resize images to match width spec

* do some formatting

* add the cpx-redundancy lesson

* create a 'main' page

* set the help mail address

* some spurios edits

* some fluff for the main page

* do cards on main page
2022-10-18 14:33:56 -07:00
.github Add create tag event (#1195) 2021-01-27 11:49:36 -08:00
.vscode
docfiles
docs Publish CPX Datacenter Lessons (#1216) 2022-10-18 14:33:56 -07:00
editor Removing left over $s from template strings (#996) 2019-04-17 11:28:59 -07:00
fieldeditors Remove calls to getText from field editors (#1159) 2020-03-19 22:27:40 -07:00
libs updated build (#1181) 2020-08-03 05:16:59 -07:00
pxtwapp add compress image on pr (#1144) 2019-11-21 11:08:10 +01:00
resources add compress image on pr (#1144) 2019-11-21 11:08:10 +01:00
schematics
sim include dal file (#1171) 2020-06-09 13:54:05 -07:00
theme make @lightTextColor a light gray (#1107) 2019-08-27 16:37:54 -07:00
.clang-format
.gitattributes
.gitignore remove package lock 2019-04-26 16:50:48 -07:00
CONTRIBUTING.md
LICENSE
README.md Trademarks 2019-05-02 10:25:25 -07:00
SECURITY.md Microsoft mandatory file (#1214) 2022-08-30 10:34:49 -07:00
THIRD-PARTY-NOTICES.txt
adafruit.code-workspace updated pxt (#968) 2019-03-19 08:13:43 -07:00
faviconData.json
faviconDescription.json
package.json 1.6.8 2021-01-27 11:49:54 -08:00
playlists.json added playlists to home screen 2020-08-03 05:30:52 -07:00
pxtarget.json updated build (#1181) 2020-08-03 05:16:59 -07:00
targetconfig.json added playlists to home screen 2020-08-03 05:30:52 -07:00
tslint.json

README.md

MakeCode for Adafruit Circuit Playground Express Build Status

This repo contains the editor hosted at https://makecode.adafruit.com .

Local server setup

This setup gives you a local version of the editor and the ability to load packages from your machine. This is the setup to develop new packages.

Setup

npm install

Don't forget to periodically git pull and npm install to get the latest changes.

Launching the server

This command launches a local web server. Note that this web server is meant for development purposes only. It was not designed or secured to be run on a web server.

npm run serve

Creating and editing a package

  • go to /projects under the pxt-adafruit folder
  • clone your package repo, say pxt-helloworld
  • launch the server with npm run serve from the pxt-adafruit folder using npm serve
  • create a new project
  • go to project settings and click on Edit settings as text
  • add an entry in the dependency section that points to your project
    "dependencies": {
        "circuit-playground": "*",
        "helloworld": "file:../pxt-helloworld"
    },
  • click on the Blocks icon to reload the blocks.

Once this project is setup, simply reload the editor after making changes on disk.

Local Dev setup

This setup is needed if you plan to make changes in PXT itself. In most cases, it's a bit of an overkill if you are building a package for the Adafruit editor.

npm install -g pxt

In a common folder,

npm install
npm run build
  • go to pxt-common-packages and run
npm install
npm link ../pxt
  • go to pxt-adafruit and run
npm install
npm link ../pxt
npm link ../pxt-common-packages

to run the local server

From root github folder,

cd pxt-adafruit
pxt serve

to build and deploy a single package via command line

cd libs/core
pxt deploy

License

MIT

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

MICROSOFT, the Microsoft Logo, and MAKECODE are registered trademarks of Microsoft Corporation. They can only be used for the purposes described in and in accordance with Microsofts Trademark and Brand guidelines published at https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general.aspx. If the use is not covered in Microsofts published guidelines or you are not sure, please consult your legal counsel or MakeCode team (makecode@microsoft.com).