Skip to content

Commit

Permalink
Initial files for MakeCode project
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitsuperboy committed Nov 18, 2024
1 parent 6d137b1 commit 1048ab2
Show file tree
Hide file tree
Showing 12 changed files with 116 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["ms-edu.pxt-vscode-web"]
}
29 changes: 29 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"editor.formatOnType": true,
"files.autoSave": "afterDelay",
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/built/**": true,
"**/node_modules/**": true,
"**/yotta_modules/**": true,
"**/yotta_targets": true,
"**/pxt_modules/**": true,
"**/.pxt/**": true
},
"files.associations": {
"*.blocks": "html",
"*.jres": "json"
},
"search.exclude": {
"**/built": true,
"**/node_modules": true,
"**/yotta_modules": true,
"**/yotta_targets": true,
"**/pxt_modules": true,
"**/.pxt": true
},
"files.exclude": {
"**/pxt_modules": true,
"**/.pxt": true
}
}
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
all: deploy

build:
pxt build

deploy:
pxt deploy

test:
pxt test
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

> Open this page at [https://mitsuperboy.github.io/pxt-swge-beacon-droids/](https://mitsuperboy.github.io/pxt-swge-beacon-droids/)
## Use as Extension

This repository can be added as an **extension** in MakeCode.

* open [https://makecode.microbit.org/](https://makecode.microbit.org/)
* click on **New Project**
* click on **Extensions** under the gearwheel menu
* search for **https://github.com/mitsuperboy/pxt-swge-beacon-droids** and import

## Edit this project

To edit this repository in MakeCode.

* open [https://makecode.microbit.org/](https://makecode.microbit.org/)
* click on **Import** then click on **Import URL**
* paste **https://github.com/mitsuperboy/pxt-swge-beacon-droids** and click import

#### Metadata (used for search, rendering)

* for PXT/microbit
<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>
8 changes: 8 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
makecode:
target: microbit
platform: microbit
home_url: https://makecode.microbit.org/
theme: jekyll-theme-slate
include:
- assets
- README.md
1 change: 1 addition & 0 deletions _history
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"entries":[{"timestamp":1731929925210,"editorVersion":"7.0.51","changes":[{"type":"edited","filename":"main.blocks","patch":[{"diffs":[[0,"http"],[-1,"s"],[0,"://"],[-1,"developers.google.com/blockly/xml\"><variables></variables><block type=\"pxt-on-start\" id=\"n%J$6*hTq.Zfwk6hkP]X\" x=\"0\" y=\"0"],[1,"www.w3.org/1999/xhtml\">\n <block type=\"pxt-on-start"],[0,"\"></"]],"start1":12,"start2":12,"length1":133,"length2":62},{"diffs":[[0,"</block>"],[1,"\n "],[0,"<block t"]],"start1":72,"start2":72,"length1":16,"length2":19},{"diffs":[[0,"ver\""],[-1," id=\"kx#CIWjdayfpa:{,ddQ;\" x=\"205\" y=\"0\""],[0,"></b"]],"start1":107,"start2":107,"length1":48,"length2":8},{"diffs":[[0,"</block>"],[1,"\n"],[0,"</xml>"]],"start1":112,"start2":112,"length1":14,"length2":15}]},{"type":"edited","filename":"main.ts","patch":[{"diffs":[[-1,"basic.forever(function () {\n\t\n})"],[0,"\n"]],"start1":0,"start2":0,"length1":33,"length2":1}]},{"type":"edited","filename":"pxt.json","patch":[{"diffs":[[0," \""],[-1,"microphone"],[1,"radio"],[0,"\": \""]],"start1":94,"start2":94,"length1":18,"length2":13},{"diffs":[[0," \""],[-1,"pxt-swge-beac"],[1,"microph"],[0,"on"],[1,"e"],[0,"\": \""],[-1,"github:ruthsarian/pxt-swge-beacon#ef3e04a45a74ee50547b30d6e9c7e2db5c1609c0"],[1,"*"],[0,"\"\n "]],"start1":116,"start2":116,"length1":101,"length2":23},{"diffs":[[0," \""],[-1,"testFiles\": [\n \"test.ts\"\n ],\n \"preferredEditor\": \"blocksprj\""],[1,"additionalFilePaths\": []"],[0,"\n}\n"]],"start1":229,"start2":229,"length1":80,"length2":31}]},{"type":"added","filename":"test.ts","value":"// tests go here; this will not be compiled when this package is used as an extension.\n"}]}],"snapshots":[{"timestamp":1731929925209,"editorVersion":"7.0.51","text":{"main.blocks":"<xml xmlns=\"http://www.w3.org/1999/xhtml\">\n <block type=\"pxt-on-start\"></block>\n <block type=\"device_forever\"></block>\n</xml>","main.ts":"\n","README.md":"","pxt.json":"{\n \"name\": \"swgeb\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\"\n ],\n \"additionalFilePaths\": []\n}\n"}}],"shares":[],"lastSaveTime":1731930138555}
1 change: 1 addition & 0 deletions main.blocks
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<xml xmlns="https://developers.google.com/blockly/xml"><variables></variables><block type="pxt-on-start" id="n%J$6*hTq.Zfwk6hkP]X" x="0" y="0"></block><block type="device_forever" id="kx#CIWjdayfpa:{,ddQ;" x="205" y="0"></block></xml>
3 changes: 3 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
basic.forever(function () {

})
25 changes: 25 additions & 0 deletions pxt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "swgeb",
"description": "",
"dependencies": {
"core": "*",
"microphone": "*",
"pxt-swge-beacon": "github:ruthsarian/pxt-swge-beacon#ef3e04a45a74ee50547b30d6e9c7e2db5c1609c0"
},
"files": [
"main.blocks",
"main.ts",
"README.md"
],
"testFiles": [
"test.ts"
],
"targetVersions": {
"target": "7.0.51",
"targetId": "microbit"
},
"supportedTargets": [
"microbit"
],
"preferredEditor": "blocksprj"
}
1 change: 1 addition & 0 deletions test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// tests go here; this will not be compiled when this package is used as an extension.
9 changes: 9 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"target": "ES5",
"noImplicitAny": true,
"outDir": "built",
"rootDir": "."
},
"exclude": ["pxt_modules/**/*test.ts"]
}

0 comments on commit 1048ab2

Please sign in to comment.