From d15ac891149e7e834d1a240a0dcdbfe1189c9ce2 Mon Sep 17 00:00:00 2001 From: Alex Kulcsar <38046796+alex-kulcsar@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:51:30 -0400 Subject: [PATCH] Initial commit from VS Code. --- .github/workflows/makecode.yml | 13 +++++++++++++ .gitignore | 12 ++++++++++++ .prettierrc | 1 + .vscode/extensions.json | 5 +++++ .vscode/settings.json | 30 ++++++++++++++++++++++++++++++ main.ts | 24 ++++++++++++++++++++++++ mkc.json | 4 ++++ pxt.json | 14 ++++++++++++++ tsconfig.json | 15 +++++++++++++++ 9 files changed, 118 insertions(+) create mode 100644 .github/workflows/makecode.yml create mode 100644 .gitignore create mode 100644 .prettierrc create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json create mode 100644 main.ts create mode 100644 mkc.json create mode 100644 pxt.json create mode 100644 tsconfig.json diff --git a/.github/workflows/makecode.yml b/.github/workflows/makecode.yml new file mode 100644 index 0000000..9497b8f --- /dev/null +++ b/.github/workflows/makecode.yml @@ -0,0 +1,13 @@ +name: MakeCode Build +on: + push: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + - run: npx makecode diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cfccae1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# MakeCode +built +node_modules +yotta_modules +yotta_targets +pxt_modules +.pxt +_site +*.db +*.tgz +.header.json +.simstate.json \ No newline at end of file diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..292912b --- /dev/null +++ b/.prettierrc @@ -0,0 +1 @@ +{"arrowParens":"avoid","semi":false,"tabWidth":4} \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..416fdc8 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "ms-edu.pxt-vscode-web" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c7a2e80 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,30 @@ +{ + "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, + "**/mkc.json": true + } +} \ No newline at end of file diff --git a/main.ts b/main.ts new file mode 100644 index 0000000..3a4b3c7 --- /dev/null +++ b/main.ts @@ -0,0 +1,24 @@ +/** + * This is the main file for your project. + * + * Create images, tilemaps, animations, and songs using the + * asset explorer in VS Code. You can reference those assets + * using the tagged templates on the assets namespace: + * + * assets.image`myImageName` + * assets.tilemap`myTilemapName` + * assets.tile`myTileName` + * assets.animation`myAnimationName` + * assets.song`mySongName` + * + * New to MakeCode Arcade? Try creating a new project using one + * of the templates to learn about Sprites, Tilemaps, Animations, + * and more! Or check out the reference docs here: + * + * https://arcade.makecode.com/reference + */ + +game.onUpdate(() => { + // Code in this function will run once per frame. MakeCode + // Arcade games run at 30 FPS +}); diff --git a/mkc.json b/mkc.json new file mode 100644 index 0000000..4e64c44 --- /dev/null +++ b/mkc.json @@ -0,0 +1,4 @@ +{ + "targetWebsite": "https://arcade.makecode.com/", + "links": {} +} \ No newline at end of file diff --git a/pxt.json b/pxt.json new file mode 100644 index 0000000..3a7a0a8 --- /dev/null +++ b/pxt.json @@ -0,0 +1,14 @@ +{ + "name": "pxt-ftss-tests", + "version": "0.0.0", + "files": [ + "main.ts" + ], + "supportedTargets": [ + "arcade" + ], + "dependencies": { + "device": "*" + }, + "testDependencies": {} +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..1f12644 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "target": "ES5", + "noImplicitAny": true, + "outDir": "built", + "rootDir": "." + }, + "include": [ + "**/*.ts" + ], + "exclude": [ + "built/**", + "pxt_modules/**/*test.ts" + ] +} \ No newline at end of file