diff --git a/.github/workflows/cfg-check.yml b/.github/workflows/cfg-check.yml
new file mode 100644
index 0000000..ce3c164
--- /dev/null
+++ b/.github/workflows/cfg-check.yml
@@ -0,0 +1,31 @@
+name: Check pxt.json
+
+on:
+ push
+
+jobs:
+ check-cfg:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ node-version: [8.x]
+ steps:
+ - uses: actions/checkout@v2
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: npm install
+ run: npm install -g pxt
+ - name: Checkout current state
+ run: |
+ git checkout -- .
+ git clean -fd
+ - name: Fix files listed in config if necessary
+ run: pxt checkpkgcfg
+ - name: Create Pull Request
+ uses: peter-evans/create-pull-request@v3
+ with:
+ title: 'Removing missing files from pxt.json'
+ commit-message: 'Removing missing files from pxt.json'
+ delete-branch: true
diff --git a/.github/workflows/makecode.yml b/.github/workflows/makecode.yml
new file mode 100644
index 0000000..97deee1
--- /dev/null
+++ b/.github/workflows/makecode.yml
@@ -0,0 +1,29 @@
+name: MakeCode
+
+on: [push]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [8.x]
+
+ steps:
+ - uses: actions/checkout@v1
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: npm install
+ run: |
+ npm install -g pxt
+ pxt target minecraft
+ - name: build
+ run: |
+ pxt install
+ pxt build --cloud
+ env:
+ CI: true
diff --git a/.gitignore b/.gitignore
index 4feabaa..d2196e7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,11 @@
-# Initial
+# MakeCode
+built
+node_modules
+yotta_modules
+yotta_targets
+pxt_modules
+_site
+*.db
+*.tgz
+.header.json
+.simstate.json
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..f8106d4
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,23 @@
+{
+ "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
+ },
+ "files.associations": {
+ "*.blocks": "html",
+ "*.jres": "json"
+ },
+ "search.exclude": {
+ "**/built": true,
+ "**/node_modules": true,
+ "**/yotta_modules": true,
+ "**/yotta_targets": true,
+ "**/pxt_modules": true
+ }
+}
\ No newline at end of file
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..9ee2cf6
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,30 @@
+
+// A task runner that calls the MakeCode (PXT) compiler
+{
+ "version": "2.0.0",
+ "tasks": [{
+ "label": "pxt deploy",
+ "type": "shell",
+ "command": "pxt deploy --local",
+ "group": "build",
+ "problemMatcher": [ "$tsc" ]
+ }, {
+ "label": "pxt build",
+ "type": "shell",
+ "command": "pxt build --local",
+ "group": "build",
+ "problemMatcher": [ "$tsc" ]
+ }, {
+ "label": "pxt install",
+ "type": "shell",
+ "command": "pxt install",
+ "group": "build",
+ "problemMatcher": [ "$tsc" ]
+ }, {
+ "label": "pxt clean",
+ "type": "shell",
+ "command": "pxt clean",
+ "group": "test",
+ "problemMatcher": [ "$tsc" ]
+ }]
+}
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..91ceacd
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,2 @@
+source 'https://rubygems.org'
+gem 'github-pages', group: :jekyll_plugins
\ No newline at end of file
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9068464
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,10 @@
+all: deploy
+
+build:
+ pxt build
+
+deploy:
+ pxt deploy
+
+test:
+ pxt test
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..cc3b8c2
--- /dev/null
+++ b/README.md
@@ -0,0 +1,31 @@
+
+> Open this page at [https://neonerz.github.io/hoc2020-ts/](https://neonerz.github.io/hoc2020-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/neonerz/hoc2020-ts** 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/neonerz/hoc2020-ts** and click import
+
+## Blocks preview
+
+This image shows the blocks code from the last commit in master.
+This image may take a few minutes to refresh.
+
+
+
+#### Metadata (used for search, rendering)
+
+* for PXT/minecraft
+
diff --git a/_config.yml b/_config.yml
new file mode 100644
index 0000000..9760d87
--- /dev/null
+++ b/_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/main.blocks b/main.blocks
new file mode 100644
index 0000000..09d93ed
--- /dev/null
+++ b/main.blocks
@@ -0,0 +1,10 @@
+
+
+
+
+
+ run
+
+
+
+
\ No newline at end of file
diff --git a/main.ts b/main.ts
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/main.ts
@@ -0,0 +1 @@
+
diff --git a/pxt.json b/pxt.json
new file mode 100644
index 0000000..5453af0
--- /dev/null
+++ b/pxt.json
@@ -0,0 +1,26 @@
+{
+ "name": "hoc2020-ts",
+ "version": "0.0.0",
+ "description": "",
+ "dependencies": {
+ "core": "*",
+ "builder": "*"
+ },
+ "files": [
+ "README.md",
+ "main.blocks",
+ "main.ts"
+ ],
+ "testFiles": [
+ "test.ts"
+ ],
+ "public": true,
+ "targetVersions": {
+ "target": "1.5.44",
+ "targetId": "minecraft"
+ },
+ "supportedTargets": [
+ "minecraft"
+ ],
+ "preferredEditor": "blocksprj"
+}
diff --git a/test.ts b/test.ts
new file mode 100644
index 0000000..7bf240c
--- /dev/null
+++ b/test.ts
@@ -0,0 +1 @@
+// tests go here; this will not be compiled when this package is used as an extension.
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..a2079ff
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,9 @@
+{
+ "compilerOptions": {
+ "target": "es5",
+ "noImplicitAny": true,
+ "outDir": "built",
+ "rootDir": "."
+ },
+ "exclude": ["pxt_modules/**/*test.ts"]
+}