build: add any scripts

This commit is contained in:
2024-05-27 11:09:02 +03:00
parent f6f729e8d4
commit 4319d66c61
8 changed files with 105 additions and 24 deletions

View File

@@ -4,7 +4,7 @@ root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

1
gulp
View File

@@ -1 +0,0 @@
node_modules/.bin/gulp

5
hxformat.json Normal file
View File

@@ -0,0 +1,5 @@
{
"indentation": {
"character": " "
}
}

View File

@@ -1,24 +1,25 @@
{
"name": "tankz",
"version": "0.17.6",
"private": true,
"devDependencies": {
"dateformat": "^3.0.3",
"gulp": "^4.0.0",
"gulp-add": "0.0.2",
"gulp-clean": "^0.4.0",
"gulp-haxetool": "^0.1.9",
"yargs": "^13.2.4"
},
"haxeDependencies": {
"haxework": "1.3.0",
"lime": "8.0.0",
"openfl": "9.2.0",
"hxcpp": "4.2.1",
"protohx": "0.4.6",
"orm": "2.1.0",
"haxe-crypto": "0.0.8",
"svg": "1.1.3"
},
"haxe": "4.2.5"
"name": "tankz",
"version": "0.17.6",
"private": true,
"devDependencies": {
"dateformat": "^3.0.3",
"gulp": "^4.0.0",
"gulp-add": "0.0.2",
"gulp-clean": "^0.4.0",
"gulp-haxetool": "^0.1.9",
"yargs": "^13.2.4"
},
"haxeDependencies": {
"haxework": "1.3.0",
"lime": "8.0.0",
"openfl": "9.2.0",
"hxcpp": "4.2.1",
"protohx": "0.4.6",
"orm": "2.1.0",
"haxe-crypto": "0.0.8",
"svg": "1.1.3",
"formatter": "1.16.0"
},
"haxe": "4.2.5"
}

12
scripts/format Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
cd "$(dirname $(dirname "$0"))" || exit
source $NEKO_SDK/activate
source $HAXE_SDK/activate
haxelib install formatter
haxelib run formatter \
-s ./src/common/haxe \
-s ./src/client/haxe \
-s ./src/server/haxe \
-s ./src/editor/haxe

13
scripts/lint Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
cd "$(dirname $(dirname "$0"))" || exit
source $NEKO_SDK/activate
source $HAXE_SDK/activate
haxelib install formatter
haxelib run formatter \
--check \
-s ./src/common/haxe \
-s ./src/client/haxe \
-s ./src/server/haxe \
-s ./src/editor/haxe

5
scripts/setup Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
cd "$(dirname $(dirname "$0"))" || exit
npm ci

46
tankz.code-workspace Normal file
View File

@@ -0,0 +1,46 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"haxe.executable": {
"path": "/home/shmyga/sdk/haxe/4.2.5/haxe",
"env": {
"HAXE_STD_PATH": "/home/shmyga/sdk/haxe/4.2.5/std"
}
},
"haxe.configurations": [["build/app/flash/haxe/debug.hxml"]],
"haxe.displayServer": {
"arguments": [
//"-v"
]
}
},
"extensions": {
"recommendations": ["nadako.vshaxe"]
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"args": ["app:flash:test"],
"name": "app:flash:test",
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"type": "node"
},
{
"args": ["server:cpp:test"],
"name": "server:cpp:test",
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
"request": "launch",
"skipFiles": ["<node_internals>/**"],
"type": "node"
}
],
"compounds": []
}
}