Skip to content

Commit

Permalink
Initial files for MakeCode project
Browse files Browse the repository at this point in the history
  • Loading branch information
neonerz committed Jan 20, 2023
1 parent fcbd5a1 commit 436c998
Show file tree
Hide file tree
Showing 10 changed files with 111 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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
}
}
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
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

> Open this page at [https://neonerz.github.io/artemis-ts/](https://neonerz.github.io/artemis-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/artemis-ts** and import

## Edit this project ![Build status badge](https://github.com/neonerz/artemis-ts/workflows/MakeCode/badge.svg)

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/artemis-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.

![A rendered view of the blocks](https://github.com/neonerz/artemis-ts/raw/master/.github/makecode/blocks.png)

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

* for PXT/minecraft
<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: minecraft
platform: minecraft
home_url: https://minecraft.makecode.com/
theme: jekyll-theme-slate
include:
- assets
- README.md
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"><block type="pxt-on-start" id="5MZJfn*z]kqDOPb,8G|T" x="20" y="20"></block><block type="minecraftOnChat" id="SKi/w?i+YpEUS*dZ2zKA" x="225" y="20"><mutation xmlns="http://www.w3.org/1999/xhtml" numargs="0"></mutation><value name="command"><shadow type="text" id="zh_~PFYur+H]}^kZ].w6"><field name="TEXT">run</field></shadow></value></block></xml>
3 changes: 3 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
player.onChat("run", function () {

})
23 changes: 23 additions & 0 deletions pxt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "artemis-ts",
"description": "",
"dependencies": {
"core": "*",
"builder": "*"
},
"files": [
"main.blocks",
"main.ts",
"README.md"
],
"testFiles": [
"test.ts"
],
"targetVersions": {
"target": "1.7.6",
"targetId": "minecraft"
},
"supportedTargets": [
"minecraft"
]
}
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 436c998

Please sign in to comment.