feat: migrate to turbo (#22)

* feat: migrate top turbo

* ci: ci test

* fix: fix codeql issues

* feat: ci test

* chore: lint

* chore: misc changes

* feat: rename vite helpers

* feat: use fetch to handle assets

* feat: update directory

* feat: fetch charword table

* feat: migrate download game data and detect missing voice files

* feat: symlink relative path

* feat: finish wrangler upload

* feat: migrate wrangler download

* feat: finish

* chore: auto update

* ci: update ci

* ci: update ci

---------

Co-authored-by: Halyul <Halyul@users.noreply.github.com>
This commit is contained in:
Haoyu Xu
2025-02-22 15:11:30 +08:00
committed by GitHub
parent 17c61ce5d4
commit d6e7bc20d3
352 changed files with 12911 additions and 9411 deletions

View File

@@ -0,0 +1,3 @@
dist
data
auto_update

View File

@@ -0,0 +1,96 @@
site_id: aklive2d
akassets:
project_name: akassets
url: https://migrate-turbo.akassets.pages.dev
insight:
id: aklive2d
url: https://insight.halyul.dev/on-demand.js
module:
background:
background: background
operator_bg_png: operator_bg.png
charword_table:
charword_table_json: charword_table.json
music:
music_table_json: music_table.json
display_meta_table_json: display_meta_table.json
audio_data_json: audio_data.json
official_info:
official_info_json: official_info.json
operator:
config: config
template_yaml: _template.yaml
config_yaml: config.yaml
portraits: _portraits
logos_assets: _logos
directory_assets: _directory
MonoBehaviour: MonoBehaviour
Texture2D: Texture2D
assets_json: assets.json
title:
zh-CN: '明日方舟:'
en-US: 'Arknights: '
project_json:
project_json: project.json
preview_jpg: preview.jpg
template_yaml: project_json.yaml
wrangler:
index_json: index.json
dir_name:
config_yaml: config.yaml
assets: assets
data: data
dist: dist
extracted: extracted
auto_update: auto_update
operator: operator
background: background
music: music
logos: logos
public: public
charword_table: charword_table
project_json: project_json
config_json: config.json
voice:
main: voice
sub:
- name: jp
lang: JP
lookup_region: zh_CN
- name: cn
lang: CN_MANDARIN
lookup_region: zh_CN
- name: en
lang: EN
lookup_region: en_US
- name: kr
lang: KR
lookup_region: ko_KR
- name: custom
lang: CUSTOM
lookup_region: zh_CN
share:
title:
zh-CN: '明日方舟:'
en-US: 'Arknights: '
directory:
assets_dir: _assets
title: AKLive2D
voice: jp/CN_037.ogg
error:
files:
- key: build_char_128_plosis_epoque#3
paddings:
left: -120
right: 150
top: 10
bottom: 0
- key: build_char_128_plosis
paddings:
left: -90
right: 100
top: 10
bottom: 0
voice:
file: CN_034.ogg
target: error.ogg

View File

@@ -0,0 +1,3 @@
import baseConfig from '@aklive2d/eslint-config'
/** @type {import('eslint').Config} */
export default [...baseConfig]

4
packages/config/index.js Normal file
View File

@@ -0,0 +1,4 @@
import path from 'node:path'
import { yaml } from '@aklive2d/libs'
export default yaml.read(path.resolve(import.meta.dirname, 'config.yaml'))

View File

@@ -0,0 +1,15 @@
{
"name": "@aklive2d/config",
"version": "0.0.0",
"main": "index.js",
"type": "module",
"license": "MIT",
"dependencies": {
"@aklive2d/libs": "workspace:*",
"@aklive2d/eslint-config": "workspace:*",
"@aklive2d/prettier-config": "workspace:*"
},
"scripts": {
"lint": "eslint \"*.js\" \"**/*.js\" && prettier --check ."
}
}

View File

@@ -0,0 +1,11 @@
import baseConfig from '@aklive2d/prettier-config'
/**
* @type {import("prettier").Config}
*/
const config = {
...baseConfig,
semi: false,
}
export default config