Skip to content

Commit ee392e5

Browse files
Initial files for MakeCode project
1 parent 41f07cb commit ee392e5

23 files changed

+41795
-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

.github/workflows/cfg-check.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Check pxt.json
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
- 'main'
8+
9+
jobs:
10+
check-cfg:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [14.x]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- name: npm install
22+
run: |
23+
npm install -g pxt
24+
pxt target arcade
25+
- name: Checkout current state
26+
run: |
27+
git checkout -- .
28+
git clean -fd
29+
- name: Fix files listed in config if necessary
30+
run: pxt checkpkgcfg
31+
- name: Create Pull Request
32+
uses: peter-evans/create-pull-request@v3
33+
continue-on-error: true
34+
with:
35+
title: 'Removing missing files from pxt.json'
36+
commit-message: 'Removing missing files from pxt.json'
37+
delete-branch: 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/[email protected]
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

.github/workflows/makecode.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: MakeCode
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [14.x]
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: npm install
21+
run: |
22+
npm install -g pxt
23+
pxt target arcade
24+
- name: build
25+
run: |
26+
pxt install
27+
pxt build --cloud
28+
env:
29+
CI: true

.vscode/settings.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
},
12+
"files.associations": {
13+
"*.blocks": "html",
14+
"*.jres": "json"
15+
},
16+
"search.exclude": {
17+
"**/built": true,
18+
"**/node_modules": true,
19+
"**/yotta_modules": true,
20+
"**/yotta_targets": true,
21+
"**/pxt_modules": true
22+
}
23+
}

.vscode/tasks.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
// A task runner that calls the MakeCode (PXT) compiler
3+
{
4+
"version": "2.0.0",
5+
"tasks": [{
6+
"label": "pxt deploy",
7+
"type": "shell",
8+
"command": "pxt deploy --local",
9+
"group": "build",
10+
"problemMatcher": [ "$tsc" ]
11+
}, {
12+
"label": "pxt build",
13+
"type": "shell",
14+
"command": "pxt build --local",
15+
"group": "build",
16+
"problemMatcher": [ "$tsc" ]
17+
}, {
18+
"label": "pxt install",
19+
"type": "shell",
20+
"command": "pxt install",
21+
"group": "build",
22+
"problemMatcher": [ "$tsc" ]
23+
}, {
24+
"label": "pxt clean",
25+
"type": "shell",
26+
"command": "pxt clean",
27+
"group": "test",
28+
"problemMatcher": [ "$tsc" ]
29+
}]
30+
}

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/inhouseloadinganimations/](https://unsignedarduino.github.io/inhouseloadinganimations/)
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/inhouseloadinganimations** and import
14+
15+
## Edit this project ![Build status badge](https://github.com/unsignedarduino/inhouseloadinganimations/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/inhouseloadinganimations** 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/inhouseloadinganimations/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)