Skip to content

Commit

Permalink
Update workflows for more advanced samples; refresh and update (#45)
Browse files Browse the repository at this point in the history
* Update workflows for more advanced samples; refresh and update
  • Loading branch information
mammerla authored Jun 6, 2024
1 parent d40e8e6 commit be8e39f
Show file tree
Hide file tree
Showing 347 changed files with 20,926 additions and 54,087 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ x86/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Dd]ist/
[Ll]ib/
[Oo]bj/
[Ll]og/
[Ll]ogs/
Expand Down
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"eslint.experimental.useFlatConfig": true,
"eslint.workingDirectories": [
{
"pattern": "./addon_starter/*/"
},
{
"pattern": "./custom_blocks/*/"
},
{
"pattern": "./custom_items/*/"
}
]
}
3 changes: 3 additions & 0 deletions addon_starter/1_hello_world/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PROJECT_NAME="aop_mobs"
MINECRAFT_PRODUCT="BedrockUWP"
CUSTOM_DEPLOYMENT_PATH=""
18 changes: 9 additions & 9 deletions addon_starter/1_hello_world/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"tabs": false,
"backetSpacing": true,
"arrowParens": "always",
"printWidth": 120
}
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 120,
"endOfLine": "auto"
}
4 changes: 2 additions & 2 deletions addon_starter/1_hello_world/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"name": "Debug with Minecraft",
"mode": "listen",
"preLaunchTask": "build",
"sourceMapRoot": "${workspaceFolder}/build/behavior_packs/_aop_mobsbpDebug/",
"generatedSourceRoot": "${workspaceFolder}/build/behavior_packs/aop_mobsbp/scripts/",
"sourceMapRoot": "${workspaceFolder}/dist/debug/",
"generatedSourceRoot": "${workspaceFolder}/dist/scripts/",
"port": 19144
}
]
Expand Down
17 changes: 10 additions & 7 deletions addon_starter/1_hello_world/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"dependsOrder": "sequence",
"dependsOn": [
"gulp: default"
]
{
"label": "build",
"type": "shell",
"command": "npm run build"
},
{
"label": "deploy",
"type": "shell",
"command": "npm run local-deploy"
}
]
}
}
20 changes: 20 additions & 0 deletions addon_starter/1_hello_world/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import minecraftLinting from "eslint-plugin-minecraft-linting";
import tsParser from "@typescript-eslint/parser";
import ts from "@typescript-eslint/eslint-plugin";

export default [
{
files: ["scripts/**/*.ts"],
languageOptions: {
parser: tsParser,
ecmaVersion: "latest",
},
plugins: {
ts,
"minecraft-linting": minecraftLinting,
},
rules: {
"minecraft-linting/avoid-unnecessary-command": "error",
},
},
];
Loading

0 comments on commit be8e39f

Please sign in to comment.