From 005d120e9139d1b97308480685a75f658436ca9f Mon Sep 17 00:00:00 2001 From: neonerz Date: Fri, 23 Aug 2024 19:49:13 -0400 Subject: [PATCH] Initial files for MakeCode project --- musica/.gitignore | 12 ++++++++++++ musica/.vscode/extensions.json | 3 +++ musica/.vscode/settings.json | 29 +++++++++++++++++++++++++++++ musica/Gemfile | 2 ++ musica/Makefile | 10 ++++++++++ musica/README.md | 24 ++++++++++++++++++++++++ musica/_config.yml | 8 ++++++++ musica/_history | 1 + musica/main.blocks | 0 musica/main.ts | 0 musica/pxt.json | 24 ++++++++++++++++++++++++ musica/test.ts | 1 + musica/tsconfig.json | 9 +++++++++ 13 files changed, 123 insertions(+) create mode 100644 musica/.gitignore create mode 100644 musica/.vscode/extensions.json create mode 100644 musica/.vscode/settings.json create mode 100644 musica/Gemfile create mode 100644 musica/Makefile create mode 100644 musica/README.md create mode 100644 musica/_config.yml create mode 100644 musica/_history create mode 100644 musica/main.blocks create mode 100644 musica/main.ts create mode 100644 musica/pxt.json create mode 100644 musica/test.ts create mode 100644 musica/tsconfig.json diff --git a/musica/.gitignore b/musica/.gitignore new file mode 100644 index 0000000..e428255 --- /dev/null +++ b/musica/.gitignore @@ -0,0 +1,12 @@ +# MakeCode +built +node_modules +yotta_modules +yotta_targets +pxt_modules +.pxt +_site +*.db +*.tgz +.header.json +.simstate.json diff --git a/musica/.vscode/extensions.json b/musica/.vscode/extensions.json new file mode 100644 index 0000000..65a6eec --- /dev/null +++ b/musica/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["ms-edu.pxt-vscode-web"] +} \ No newline at end of file diff --git a/musica/.vscode/settings.json b/musica/.vscode/settings.json new file mode 100644 index 0000000..d865f58 --- /dev/null +++ b/musica/.vscode/settings.json @@ -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 + } +} \ No newline at end of file diff --git a/musica/Gemfile b/musica/Gemfile new file mode 100644 index 0000000..91ceacd --- /dev/null +++ b/musica/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'github-pages', group: :jekyll_plugins \ No newline at end of file diff --git a/musica/Makefile b/musica/Makefile new file mode 100644 index 0000000..9068464 --- /dev/null +++ b/musica/Makefile @@ -0,0 +1,10 @@ +all: deploy + +build: + pxt build + +deploy: + pxt deploy + +test: + pxt test diff --git a/musica/README.md b/musica/README.md new file mode 100644 index 0000000..becb855 --- /dev/null +++ b/musica/README.md @@ -0,0 +1,24 @@ + +> Open this page at [https://rewrite-media.github.io/hoc2024-ts/](https://rewrite-media.github.io/hoc2024-ts/) + +## Use as Extension + +This repository can be added as an **extension** in MakeCode. + +* open [https://minecraft.makecode.com/](https://minecraft.makecode.com/) +* click on **New Project** +* click on **Extensions** under the gearwheel menu +* search for **https://github.com/rewrite-media/hoc2024-ts/musica** and import + +## Edit this project + +To edit this repository in MakeCode. + +* open [https://minecraft.makecode.com/](https://minecraft.makecode.com/) +* click on **Import** then click on **Import URL** +* paste **https://github.com/rewrite-media/hoc2024-ts/musica** and click import + +#### Metadata (used for search, rendering) + +* for PXT/minecraft + diff --git a/musica/_config.yml b/musica/_config.yml new file mode 100644 index 0000000..9760d87 --- /dev/null +++ b/musica/_config.yml @@ -0,0 +1,8 @@ +makecode: + target: minecraft + platform: minecraft + home_url: https://minecraft.makecode.com/ +theme: jekyll-theme-slate +include: + - assets + - README.md diff --git a/musica/_history b/musica/_history new file mode 100644 index 0000000..cac7fd6 --- /dev/null +++ b/musica/_history @@ -0,0 +1 @@ +{"entries":[{"timestamp":1724456949611,"editorVersion":"1.8.5","changes":[{"type":"edited","filename":"pxt.json","patch":[{"diffs":[[0," ],\n"],[-1," \"testFiles\": [\n \"test.ts\"\n ],\n"],[0," "]],"start1":245,"start2":245,"length1":52,"length2":8}]},{"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":1724456949610,"editorVersion":"1.8.5","text":{"main.blocks":"","main.ts":"","README.md":"","pxt.json":"{\n \"name\": \"hoc2024-ts-musica\",\n \"dependencies\": {\n \"core\": \"*\",\n \"builder\": \"*\",\n \"hoc2024-ts\": \"github:rewrite-media/hoc2024-ts\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\"\n ],\n \"preferredEditor\": \"blocksprj\"\n}\n"}}],"shares":[]} \ No newline at end of file diff --git a/musica/main.blocks b/musica/main.blocks new file mode 100644 index 0000000..e69de29 diff --git a/musica/main.ts b/musica/main.ts new file mode 100644 index 0000000..e69de29 diff --git a/musica/pxt.json b/musica/pxt.json new file mode 100644 index 0000000..e060dd5 --- /dev/null +++ b/musica/pxt.json @@ -0,0 +1,24 @@ +{ + "name": "hoc2024-ts-musica", + "dependencies": { + "core": "*", + "builder": "*", + "hoc2024-ts": "github:rewrite-media/hoc2024-ts" + }, + "files": [ + "main.blocks", + "main.ts", + "README.md" + ], + "testFiles": [ + "test.ts" + ], + "targetVersions": { + "target": "1.8.5", + "targetId": "minecraft" + }, + "supportedTargets": [ + "minecraft" + ], + "preferredEditor": "blocksprj" +} diff --git a/musica/test.ts b/musica/test.ts new file mode 100644 index 0000000..7bf240c --- /dev/null +++ b/musica/test.ts @@ -0,0 +1 @@ +// tests go here; this will not be compiled when this package is used as an extension. diff --git a/musica/tsconfig.json b/musica/tsconfig.json new file mode 100644 index 0000000..46f831b --- /dev/null +++ b/musica/tsconfig.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "target": "ES5", + "noImplicitAny": true, + "outDir": "built", + "rootDir": "." + }, + "exclude": ["pxt_modules/**/*test.ts"] +}