Skip to content

Commit d572f6f

Browse files
Add basic MakeCode project as baseline for extension.
0 parents  commit d572f6f

File tree

12 files changed

+124
-0
lines changed

12 files changed

+124
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# MakeCode
2+
built
3+
node_modules
4+
yotta_modules
5+
yotta_targets
6+
pxt_modules
7+
.pxt
8+
_site
9+
*.db
10+
*.tgz
11+
.header.json
12+
.simstate.json

.vscode/extensions.json

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

.vscode/settings.json

Lines changed: 29 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 10 additions & 0 deletions
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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
> Open this page at [https://.github.io//](https://.github.io//)
3+
4+
## Use as Extension
5+
6+
This repository can be added as an **extension** in MakeCode.
7+
8+
* open []()
9+
* click on **New Project**
10+
* click on **Extensions** under the gearwheel menu
11+
* search for **https://github.com/** and import
12+
13+
## Edit this project
14+
15+
To edit this repository in MakeCode.
16+
17+
* open []()
18+
* click on **Import** then click on **Import URL**
19+
* paste **https://github.com/** and click import
20+
21+
#### Metadata (used for search, rendering)
22+
23+
* for PXT/
24+
<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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
makecode:
2+
target:
3+
platform:
4+
home_url:
5+
theme: jekyll-theme-slate
6+
include:
7+
- assets
8+
- README.md

main.blocks

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<xml xmlns="https://developers.google.com/blockly/xml"><variables></variables><block type="pxt-on-start" x="20" y="20"></block><block type="device_forever" x="225" y="20"></block></xml>

main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
basic.forever(function () {
2+
3+
})

pxt.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "blank",
3+
"description": "",
4+
"dependencies": {
5+
"core": "*",
6+
"radio": "*",
7+
"microphone": "*"
8+
},
9+
"files": [
10+
"main.blocks",
11+
"main.ts",
12+
"README.md"
13+
],
14+
"targetVersions": {
15+
"branch": "v7.0.51",
16+
"tag": "v7.0.51",
17+
"commits": "https://github.com/microsoft/pxt-microbit/commits/c3819f016bd720d0eb86efea9a84dcd4fc7b2e1f",
18+
"target": "7.0.51",
19+
"pxt": "11.1.5"
20+
},
21+
"preferredEditor": "blocksprj"
22+
}

0 commit comments

Comments
 (0)