mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-08 10:20:37 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2d3c59e97 | ||
|
|
1cb760e227 | ||
|
|
ce27388c00 | ||
|
|
e8b2651595 | ||
|
|
3695e2cd5e |
No files matched your search
@@ -30,8 +30,8 @@ jobs:
|
|||||||
- name: Setup bun
|
- name: Setup bun
|
||||||
uses: oven-sh/setup-bun@v2
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Set up script
|
||||||
run: bun install
|
run: scripts/setup.sh
|
||||||
|
|
||||||
- name: Setup Git
|
- name: Setup Git
|
||||||
run: |
|
run: |
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
- name: Discover IDs
|
- name: Discover IDs
|
||||||
run: bun run discover-ids
|
run: scripts/discover-ids.sh
|
||||||
env:
|
env:
|
||||||
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
|
PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }}
|
||||||
GH_TOKEN: ${{ secrets.IDS_TOKEN }}
|
GH_TOKEN: ${{ secrets.IDS_TOKEN }}
|
||||||
@@ -137,18 +137,21 @@ jobs:
|
|||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y aria2 libarchive-tools
|
sudo apt-get install -y aria2 libarchive-tools
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Set up script
|
||||||
run: bun install
|
run: scripts/setup.sh
|
||||||
|
|
||||||
|
- name: Lint
|
||||||
|
run: scripts/lint.sh
|
||||||
|
|
||||||
- name: Download client
|
- name: Download client
|
||||||
run: bun run download-client
|
run: scripts/download-client.sh
|
||||||
|
|
||||||
- name: Download SmartDLC
|
- name: Download SmartDLC
|
||||||
if: ${{ env.CLIENT_PROVIDER == 'steam' && env.SHOULD_USE_BLITZKIT_CLOSED == 'true' }}
|
if: ${{ env.CLIENT_PROVIDER == 'steam' && env.SHOULD_USE_BLITZKIT_CLOSED == 'true' }}
|
||||||
run: bun run download-smart-dlc
|
run: scripts/download-smart-dlc.sh
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run --bun build
|
run: scripts/build-website.sh
|
||||||
env:
|
env:
|
||||||
CHUNK: ${{ matrix.chunk }}
|
CHUNK: ${{ matrix.chunk }}
|
||||||
|
|
||||||
|
|||||||
@@ -44,16 +44,16 @@ cd blitzkit
|
|||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> There is a closed source submodule under `packages/closed` that you can safely ignore. This sole purpose of this submodule is to provide `dvp.ts`, a proprietary Wargaming game asset tree compression tool. You will not need this at any point.
|
> There is a closed source submodule under `packages/closed` that you can safely ignore. This sole purpose of this submodule is to provide `dvp.ts`, a proprietary Wargaming game asset tree compression tool. You will not need this at any point.
|
||||||
|
|
||||||
Then, download the dependencies with Bun.
|
Then, grand execution permission to the setup script.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bun install
|
chmod +x scripts/setup.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, compile the proto files into TypeScript.
|
Finally, run the setup script.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
build build-protos
|
scripts/setup.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Developing: Environment
|
## Developing: Environment
|
||||||
@@ -65,11 +65,11 @@ Go through the different packages in the `packages` directory and clone their re
|
|||||||
Launching the website is as easy as running the `dev` script.
|
Launching the website is as easy as running the `dev` script.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bun dev
|
scripts/dev-website.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
If you ever make a change to any proto file, make sure to rebuild them.
|
If you ever make a change to any proto file, make sure to rebuild them.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
build build-protos
|
scripts/build-protos.sh
|
||||||
```
|
```
|
||||||
@@ -55,7 +55,6 @@
|
|||||||
"packages/scripts": {
|
"packages/scripts": {
|
||||||
"name": "@blitzkit/scripts",
|
"name": "@blitzkit/scripts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzkit/closed": "workspace:*",
|
|
||||||
"@blitzkit/core": "workspace:*",
|
"@blitzkit/core": "workspace:*",
|
||||||
"@blitzkit/i18n": "workspace:*",
|
"@blitzkit/i18n": "workspace:*",
|
||||||
"@gltf-transform/core": "^4.2.1",
|
"@gltf-transform/core": "^4.2.1",
|
||||||
@@ -1643,8 +1642,6 @@
|
|||||||
|
|
||||||
"jimp": ["[email protected]", "", { "dependencies": { "@jimp/core": "1.6.0", "@jimp/diff": "1.6.0", "@jimp/js-bmp": "1.6.0", "@jimp/js-gif": "1.6.0", "@jimp/js-jpeg": "1.6.0", "@jimp/js-png": "1.6.0", "@jimp/js-tiff": "1.6.0", "@jimp/plugin-blit": "1.6.0", "@jimp/plugin-blur": "1.6.0", "@jimp/plugin-circle": "1.6.0", "@jimp/plugin-color": "1.6.0", "@jimp/plugin-contain": "1.6.0", "@jimp/plugin-cover": "1.6.0", "@jimp/plugin-crop": "1.6.0", "@jimp/plugin-displace": "1.6.0", "@jimp/plugin-dither": "1.6.0", "@jimp/plugin-fisheye": "1.6.0", "@jimp/plugin-flip": "1.6.0", "@jimp/plugin-hash": "1.6.0", "@jimp/plugin-mask": "1.6.0", "@jimp/plugin-print": "1.6.0", "@jimp/plugin-quantize": "1.6.0", "@jimp/plugin-resize": "1.6.0", "@jimp/plugin-rotate": "1.6.0", "@jimp/plugin-threshold": "1.6.0", "@jimp/types": "1.6.0", "@jimp/utils": "1.6.0" } }, "sha512-YcwCHw1kiqEeI5xRpDlPPBGL2EOpBKLwO4yIBJcXWHPj5PnA5urGq0jbyhM5KoNpypQ6VboSoxc9D8HyfvngSg=="],
|
"jimp": ["[email protected]", "", { "dependencies": { "@jimp/core": "1.6.0", "@jimp/diff": "1.6.0", "@jimp/js-bmp": "1.6.0", "@jimp/js-gif": "1.6.0", "@jimp/js-jpeg": "1.6.0", "@jimp/js-png": "1.6.0", "@jimp/js-tiff": "1.6.0", "@jimp/plugin-blit": "1.6.0", "@jimp/plugin-blur": "1.6.0", "@jimp/plugin-circle": "1.6.0", "@jimp/plugin-color": "1.6.0", "@jimp/plugin-contain": "1.6.0", "@jimp/plugin-cover": "1.6.0", "@jimp/plugin-crop": "1.6.0", "@jimp/plugin-displace": "1.6.0", "@jimp/plugin-dither": "1.6.0", "@jimp/plugin-fisheye": "1.6.0", "@jimp/plugin-flip": "1.6.0", "@jimp/plugin-hash": "1.6.0", "@jimp/plugin-mask": "1.6.0", "@jimp/plugin-print": "1.6.0", "@jimp/plugin-quantize": "1.6.0", "@jimp/plugin-resize": "1.6.0", "@jimp/plugin-rotate": "1.6.0", "@jimp/plugin-threshold": "1.6.0", "@jimp/types": "1.6.0", "@jimp/utils": "1.6.0" } }, "sha512-YcwCHw1kiqEeI5xRpDlPPBGL2EOpBKLwO4yIBJcXWHPj5PnA5urGq0jbyhM5KoNpypQ6VboSoxc9D8HyfvngSg=="],
|
||||||
|
|
||||||
"jiti": ["[email protected]", "", { "bin": { "jiti": "lib/jiti-cli.mjs" } }, "sha512-VXe6RjJkBPj0ohtqaO8vSWP3ZhAKo66fKrFNCll4BTcwljPLz03pCbaNKfzGP5MbrCYcbJ7v0nOYYwUzTEIdXQ=="],
|
|
||||||
|
|
||||||
"jpeg-js": ["[email protected]", "", {}, "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg=="],
|
"jpeg-js": ["[email protected]", "", {}, "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg=="],
|
||||||
|
|
||||||
"js-tokens": ["[email protected]", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
|
"js-tokens": ["[email protected]", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
|
||||||
@@ -1951,7 +1948,7 @@
|
|||||||
|
|
||||||
"potpack": ["[email protected]", "", {}, "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ=="],
|
"potpack": ["[email protected]", "", {}, "sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ=="],
|
||||||
|
|
||||||
"prettier": ["prettier@3.6.2", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ=="],
|
"prettier": ["prettier@2.8.7", "", { "bin": { "prettier": "bin-prettier.js" } }, "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw=="],
|
||||||
|
|
||||||
"pretty-bytes": ["[email protected]", "", {}, "sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ=="],
|
"pretty-bytes": ["[email protected]", "", {}, "sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ=="],
|
||||||
|
|
||||||
@@ -2733,8 +2730,6 @@
|
|||||||
|
|
||||||
"wrap-ansi/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA=="],
|
"wrap-ansi/strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.0.1" } }, "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA=="],
|
||||||
|
|
||||||
"yaml-language-server/prettier": ["[email protected]", "", { "bin": { "prettier": "bin-prettier.js" } }, "sha512-yPngTo3aXUUmyuTjeTUT75txrf+aMh9FiD7q9ZE/i6r0bPb22g4FsE6Y338PQX1bmfy08i9QQCB7/rcUAVntfw=="],
|
|
||||||
|
|
||||||
"yaml-language-server/request-light": ["[email protected]", "", {}, "sha512-3Zjgh+8b5fhRJBQZoy+zbVKpAQGLyka0MPgW3zruTF4dFFJ8Fqcfu9YsAvi/rvdcaTeWG3MkbZv4WKxAn/84Lg=="],
|
"yaml-language-server/request-light": ["[email protected]", "", {}, "sha512-3Zjgh+8b5fhRJBQZoy+zbVKpAQGLyka0MPgW3zruTF4dFFJ8Fqcfu9YsAvi/rvdcaTeWG3MkbZv4WKxAn/84Lg=="],
|
||||||
|
|
||||||
"yaml-language-server/vscode-languageserver": ["[email protected]", "", { "dependencies": { "vscode-languageserver-protocol": "3.16.0" }, "bin": { "installServerIntoExtension": "bin/installServerIntoExtension" } }, "sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw=="],
|
"yaml-language-server/vscode-languageserver": ["[email protected]", "", { "dependencies": { "vscode-languageserver-protocol": "3.16.0" }, "bin": { "installServerIntoExtension": "bin/installServerIntoExtension" } }, "sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw=="],
|
||||||
|
|||||||
@@ -3,17 +3,6 @@
|
|||||||
"version": "1.33.0",
|
"version": "1.33.0",
|
||||||
"license": "BlitzKit License",
|
"license": "BlitzKit License",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
|
||||||
"dev": "cd packages/website && bun --bun run dev",
|
|
||||||
"build": "cd packages/website && bun --bun run build",
|
|
||||||
"discover-ids": "cd packages/scripts && bun run discover-ids",
|
|
||||||
"build-protos": "cd packages/scripts && bun run build-protos",
|
|
||||||
"record-performance": "cd packages/scripts && bun run record-performance",
|
|
||||||
"download-client": "cd packages/scripts && bun run download-client",
|
|
||||||
"download-smart-dlc": "cd packages/closed && bun run download-smart-dlc",
|
|
||||||
"clean-astro": "rm -rf packages/website/.astro packages/website/node_modules/.astro packages/website/node_modules/.vite",
|
|
||||||
"vfs": "cd packages/scripts && bun run vfs"
|
|
||||||
},
|
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|||||||
+1
-1
Submodule packages/closed updated: 50943654cb...182fcdb273.
@@ -1,13 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@blitzkit/scripts",
|
"name": "@blitzkit/scripts",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
|
||||||
"discover-ids": "bun src/discoverIds/index.ts",
|
|
||||||
"build-protos": "bun src/protos.ts",
|
|
||||||
"record-performance": "bun src/recordPerformance/index.ts",
|
|
||||||
"download-client": "bun src/downloadClient/index.ts",
|
|
||||||
"vfs": "bun src/vfs/index.ts"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@blitzkit/core": "workspace:*",
|
"@blitzkit/core": "workspace:*",
|
||||||
"@blitzkit/i18n": "workspace:*",
|
"@blitzkit/i18n": "workspace:*",
|
||||||
|
|||||||
@@ -1,13 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@blitzkit/website",
|
"name": "@blitzkit/website",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
|
||||||
"dev": "astro dev",
|
|
||||||
"build": "astro build",
|
|
||||||
"preview": "astro preview",
|
|
||||||
"lint": "astro check",
|
|
||||||
"astro": "astro"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/check": "^0.9.4",
|
"@astrojs/check": "^0.9.4",
|
||||||
"@astrojs/node": "^9.4.4",
|
"@astrojs/node": "^9.4.4",
|
||||||
|
|||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
cd packages/scripts
|
||||||
|
bun src/protos.ts
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
cd packages/website
|
||||||
|
bun x --bun astro build
|
||||||
Executable
+4
@@ -0,0 +1,4 @@
|
|||||||
|
rm -rf \
|
||||||
|
packages/website/.astro \
|
||||||
|
packages/website/node_modules/.astro \
|
||||||
|
packages/website/node_modules/.vite
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
cd packages/website
|
||||||
|
bun x --bun astro dev
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
cd packages/scripts
|
||||||
|
bun src/discoverIds/index.ts
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
cd packages/scripts
|
||||||
|
bun src/downloadClient/index.ts
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
cd packages/closed
|
||||||
|
bun src/dava/downloadSmartDLC.ts
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
cd packages/website
|
||||||
|
bun x --bun astro check
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
cd packages/website
|
||||||
|
bun x --bun astro preview
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
cd packages/scripts
|
||||||
|
bun src/recordPerformance/index.ts
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
chmod +x scripts/*.sh
|
||||||
|
bun install
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
cd packages/scripts
|
||||||
|
bun src/vfs/index.ts
|
||||||
Reference in new issue
Block a user