mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-28 01:06:49 +08:00
update: hooks, web
This commit is contained in:
@@ -5,11 +5,15 @@
|
||||
"main": "src/index.ts",
|
||||
"author": "Vick Scarlet <vick@syaro.io>",
|
||||
"scripts": {
|
||||
"build": "bunx --bun v-transform@3.0.1 transform -t ts -w src -d dist \"**/[!~$]*.xlsx\" ",
|
||||
"build": "bunx --bun v-transform transform -t ts -w src -d dist \"**/[!~$]*.xlsx\" --map",
|
||||
"lint": "eslint .",
|
||||
"test": "bun test"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./src/index.ts",
|
||||
"import": "./src/index.ts"
|
||||
},
|
||||
"./*": {
|
||||
"types": "./dist/*.ts",
|
||||
"import": "./dist/*.ts"
|
||||
|
||||
@@ -1,12 +1,18 @@
|
||||
/** 成就稀有度 */
|
||||
export type AchievementGrade = 0 | 1 | 2 | 3
|
||||
export enum AchievementGrade {
|
||||
White = 0,
|
||||
Blue = 1,
|
||||
Purple = 2,
|
||||
Orange = 3,
|
||||
}
|
||||
|
||||
/** 成就触发时机 */
|
||||
export type AchievementOpportunity =
|
||||
| 'START' // 分配完成点数,点击开始新人生后
|
||||
| 'TRAJECTORY' // 每一年的人生经历中
|
||||
| 'SUMMARY' // 人生结束,点击人生总结后
|
||||
| 'END' // 游戏完成,点击重开 重开次数在这之后才会+1
|
||||
export enum AchievementOpportunity {
|
||||
Start = 'START', // 分配完成点数,点击开始新人生后
|
||||
Trajectory = 'TRAJECTORY', // 每一年的人生经历中
|
||||
Summary = 'SUMMARY', // 人生结束,点击人生总结后
|
||||
End = 'END', // 游戏完成,点击重开 重开次数在这之后才会+1
|
||||
}
|
||||
|
||||
/** 成就 */
|
||||
export type Achievement = {
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
export * from '../dist/achievement'
|
||||
export { default as achievements } from '../dist/achievement'
|
||||
export * from '../dist/age'
|
||||
export { default as ages } from '../dist/age'
|
||||
export * from '../dist/character'
|
||||
export { default as characters } from '../dist/character'
|
||||
export * from '../dist/event'
|
||||
export { default as events } from '../dist/event'
|
||||
export * from '../dist/specialthanks'
|
||||
export { default as specialThanks } from '../dist/specialthanks'
|
||||
export * from '../dist/talent'
|
||||
export { default as talents } from '../dist/talent'
|
||||
@@ -1,5 +1,10 @@
|
||||
/** 天赋稀有度 */
|
||||
export type TalentGrade = 0 | 1 | 2 | 3
|
||||
export enum TalentGrade {
|
||||
White = 0,
|
||||
Blue = 1,
|
||||
Purple = 2,
|
||||
Orange = 3,
|
||||
}
|
||||
|
||||
/** 天赋效果 */
|
||||
export type TalentEffect = {
|
||||
|
||||
@@ -1,29 +1,4 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
// Environment setup & latest features
|
||||
"lib": ["ESNext"],
|
||||
"target": "ESNext",
|
||||
"module": "Preserve",
|
||||
"moduleDetection": "force",
|
||||
"types": ["bun"],
|
||||
|
||||
// Bundler mode
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"verbatimModuleSyntax": true,
|
||||
"noEmit": true,
|
||||
|
||||
// Best practices
|
||||
"strict": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"noImplicitOverride": true,
|
||||
|
||||
// Some stricter flags (disabled by default)
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noPropertyAccessFromIndexSignature": false,
|
||||
"noImplicitAny": true
|
||||
},
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["**/*"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user