Skip to content

Commit e5cfe29

Browse files
Initial files for MakeCode project
1 parent 8f40e8d commit e5cfe29

21 files changed

+42970
-0
lines changed

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
index.html linguist-generated=true
2+
assets/index.html linguist-generated=true
3+
assets/js/loader.js linguist-generated=true
4+
assets/js/binary.js linguist-generated=true
5+
assets/version.txt linguist-generated=true
+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: MakeCode Arcade Release
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [8.x]
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: install node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: install makecode
23+
run: |
24+
npm install -g pxt
25+
pxt target arcade
26+
- name: build js
27+
run: |
28+
pxt clean
29+
pxt install
30+
pxt build --cloud
31+
- name: build D51
32+
continue-on-error: true
33+
run: |
34+
pxt clean
35+
pxt install --hw samd51
36+
pxt build --hw samd51 --cloud
37+
cp ./built/binary.uf2 binary-d51.uf2
38+
- name: build F4
39+
continue-on-error: true
40+
run: |
41+
pxt clean
42+
pxt install --hw stm32f401
43+
pxt build --hw stm32f401 --cloud
44+
cp ./built/binary.uf2 binary-f4.uf2
45+
- name: build P0
46+
continue-on-error: true
47+
run: |
48+
pxt clean
49+
pxt install --hw rpi
50+
pxt build --hw rpi --cloud
51+
cp ./built/binary.uf2 binary-p0.uf2
52+
- name: bundle all
53+
run: |
54+
cat binary-*.uf2 > built/arcade.uf2
55+
- name: upload bundled
56+
uses: actions/upload-release-asset@v1.0.1
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
with:
60+
upload_url: ${{ github.event.release.upload_url }}
61+
asset_path: ./built/arcade.uf2
62+
asset_name: arcade.uf2
63+
asset_content_type: application/octet-stream

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["ms-edu.pxt-vscode-web"]
3+
}

.vscode/settings.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"editor.formatOnType": true,
3+
"files.autoSave": "afterDelay",
4+
"files.watcherExclude": {
5+
"**/.git/objects/**": true,
6+
"**/built/**": true,
7+
"**/node_modules/**": true,
8+
"**/yotta_modules/**": true,
9+
"**/yotta_targets": true,
10+
"**/pxt_modules/**": true,
11+
"**/.pxt/**": true
12+
},
13+
"files.associations": {
14+
"*.blocks": "html",
15+
"*.jres": "json"
16+
},
17+
"search.exclude": {
18+
"**/built": true,
19+
"**/node_modules": true,
20+
"**/yotta_modules": true,
21+
"**/yotta_targets": true,
22+
"**/pxt_modules": true,
23+
"**/.pxt": true
24+
},
25+
"files.exclude": {
26+
"**/pxt_modules": true,
27+
"**/.pxt": true
28+
}
29+
}

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source 'https://rubygems.org'
2+
gem 'github-pages', group: :jekyll_plugins

Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all: deploy
2+
3+
build:
4+
pxt build
5+
6+
deploy:
7+
pxt deploy
8+
9+
test:
10+
pxt test

README.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
3+
4+
> Open this page at [https://unsignedarduino.github.io/logblock/](https://unsignedarduino.github.io/logblock/)
5+
6+
## Use as Extension
7+
8+
This repository can be added as an **extension** in MakeCode.
9+
10+
* open [https://arcade.makecode.com/](https://arcade.makecode.com/)
11+
* click on **New Project**
12+
* click on **Extensions** under the gearwheel menu
13+
* search for **https://github.com/unsignedarduino/logblock** and import
14+
15+
## Edit this project ![Build status badge](https://github.com/unsignedarduino/logblock/workflows/MakeCode/badge.svg)
16+
17+
To edit this repository in MakeCode.
18+
19+
* open [https://arcade.makecode.com/](https://arcade.makecode.com/)
20+
* click on **Import** then click on **Import URL**
21+
* paste **https://github.com/unsignedarduino/logblock** and click import
22+
23+
## Blocks preview
24+
25+
This image shows the blocks code from the last commit in master.
26+
This image may take a few minutes to refresh.
27+
28+
![A rendered view of the blocks](https://github.com/unsignedarduino/logblock/raw/master/.github/makecode/blocks.png)
29+
30+
#### Metadata (used for search, rendering)
31+
32+
* for PXT/arcade
33+
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>

_config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
makecode:
2+
target: arcade
3+
platform: arcade
4+
home_url: https://arcade.makecode.com/
5+
theme: jekyll-theme-slate
6+
include:
7+
- assets
8+
- README.md

assets.json

Whitespace-only changes.

assets/index.html

+106
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)