mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-02-07 20:09:27 +08:00
fix: build
This commit is contained in:
parent
61ba4f9a7e
commit
f97e7c1bff
@ -63,7 +63,7 @@
|
|||||||
"typescript": "^5.5.4",
|
"typescript": "^5.5.4",
|
||||||
"unplugin-vue-components": "^0.22.12",
|
"unplugin-vue-components": "^0.22.12",
|
||||||
"vite": "^4.5.3",
|
"vite": "^4.5.3",
|
||||||
"vue-tsc": "^1.8.27",
|
"vue-tsc": "^2.1.6",
|
||||||
"ws": "^8.18.0"
|
"ws": "^8.18.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
571
pnpm-lock.yaml
571
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -10,6 +10,7 @@ import resolve from '@rollup/plugin-node-resolve';
|
|||||||
import commonjs from '@rollup/plugin-commonjs';
|
import commonjs from '@rollup/plugin-commonjs';
|
||||||
import { splitResource } from './resource.js';
|
import { splitResource } from './resource.js';
|
||||||
import compressing from 'compressing';
|
import compressing from 'compressing';
|
||||||
|
import json from '@rollup/plugin-json';
|
||||||
|
|
||||||
const type = process.argv[2];
|
const type = process.argv[2];
|
||||||
const map = false;
|
const map = false;
|
||||||
@ -137,7 +138,8 @@ const compress = type === 'dist';
|
|||||||
}),
|
}),
|
||||||
terser(),
|
terser(),
|
||||||
resolve(),
|
resolve(),
|
||||||
commonjs()
|
commonjs(),
|
||||||
|
json()
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
await build.write({
|
await build.write({
|
||||||
|
@ -966,6 +966,7 @@ export class Layer extends Container {
|
|||||||
const w = this.mapWidth;
|
const w = this.mapWidth;
|
||||||
const h = this.mapHeight;
|
const h = this.mapHeight;
|
||||||
|
|
||||||
|
// todo: 如何定向优化?
|
||||||
// this.autotiles = {};
|
// this.autotiles = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, onUpdated, ref, watch } from 'vue';
|
import { onMounted, onUpdated, Ref, ref, watch } from 'vue';
|
||||||
import Box from '../components/box.vue';
|
import Box from '../components/box.vue';
|
||||||
import { GameUi } from '@/core/main/custom/ui';
|
import { GameUi } from '@/core/main/custom/ui';
|
||||||
import type { DamageEnemy, EnemyInfo } from '@/game/enemy/damage';
|
import type { DamageEnemy, EnemyInfo } from '@/game/enemy/damage';
|
||||||
|
@ -4,7 +4,8 @@
|
|||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Node",
|
"moduleResolution": "bundler",
|
||||||
|
"allowImportingTsExtensions": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"jsxImportSource": "vue",
|
"jsxImportSource": "vue",
|
||||||
@ -20,12 +21,6 @@
|
|||||||
"@ui/*": ["src/ui/*"]
|
"@ui/*": ["src/ui/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
||||||
"src/**/*.ts",
|
|
||||||
"src/**/*.d.ts",
|
|
||||||
"src/**/*.tsx",
|
|
||||||
"src/**/*.vue",
|
|
||||||
"mota.config.ts"
|
|
||||||
],
|
|
||||||
"references": [{ "path": "./tsconfig.node.json" }]
|
"references": [{ "path": "./tsconfig.node.json" }]
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,5 @@
|
|||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"strict": true
|
"strict": true
|
||||||
},
|
},
|
||||||
"include": ["vite.config.ts", "mota.config.ts", "script/**/*.ts"]
|
"include": ["vite.config.ts", "script/**/*.ts"]
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@ import legacy from '@vitejs/plugin-legacy';
|
|||||||
import components from 'unplugin-vue-components/vite';
|
import components from 'unplugin-vue-components/vite';
|
||||||
import vuejsx from '@vitejs/plugin-vue-jsx'
|
import vuejsx from '@vitejs/plugin-vue-jsx'
|
||||||
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
|
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
|
||||||
import motaConfig from './mota.config';
|
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
import postcssPresetEnv from 'postcss-preset-env';
|
import postcssPresetEnv from 'postcss-preset-env';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user