Commit ea9f049e authored by timel's avatar timel

chore: gitlab ci 100%

parent 0b037e8a
Pipeline #21180 passed with stages
in 17 minutes and 13 seconds
...@@ -20,22 +20,6 @@ ...@@ -20,22 +20,6 @@
"import/resolver": { "import/resolver": {
"node": true, "node": true,
"typescript": true "typescript": true
// "alias": {
// "map": [
// [
// "rust-src",
// "/rust-src/pkg"
// ]
// ],
// "extensions": [
// ".js",
// ".jsx",
// ".ts",
// ".tsx",
// ".json",
// ".wasm"
// ]
// }
} }
} }
} }
...@@ -22,7 +22,7 @@ npm_ci: ...@@ -22,7 +22,7 @@ npm_ci:
dependencies: dependencies:
- npm_ci - npm_ci
rs_check: rs_check_lint:
stage: rs_check_lint stage: rs_check_lint
image: rust:latest image: rust:latest
tags: tags:
...@@ -49,7 +49,7 @@ wasm_build: ...@@ -49,7 +49,7 @@ wasm_build:
- rust-src/pkg - rust-src/pkg
- node_modules - node_modules
ts_check: ts_check_lint:
dependencies: dependencies:
- npm_ci - npm_ci
- wasm_build - wasm_build
......
import { ygopro } from "../../../idl/ocgcore"; import { ygopro } from "../../../idl/ocgcore";
//@ts-ignore
import { ocgDamageAdapter } from "rust-src"; import { ocgDamageAdapter } from "rust-src";
/* /*
......
...@@ -10,29 +10,3 @@ interface ImportMetaEnv { ...@@ -10,29 +10,3 @@ interface ImportMetaEnv {
interface ImportMeta { interface ImportMeta {
readonly env: ImportMetaEnv; readonly env: ImportMetaEnv;
} }
/**
* 手动声明WASM模块rust-src
*/
// declare module "rust-src" {
// export default function rustInit(url?: URL): Promise<void>;
// export class BufferWriter {
// constructor();
// public writeInt8(value: number): void;
// public writeUint8(value: number): void;
// public writeInt16(value: number): void;
// public writeUint16(value: number): void;
// public writeInt32(value: number): void;
// public writeUint32(value: number): void;
// public toArray(): Uint8Array;
// }
// export class BufferReader {
// constructor(buffer: Uint8Array);
// public readInt8(): number;
// public readUint8(): number;
// public readInt16(): number;
// public readUint16(): number;
// public readInt32(): number;
// public readUint32(): number;
// }
// }
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import react from "@vitejs/plugin-react"; import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr"; import svgr from "vite-plugin-svgr";
import wasmPack from "vite-plugin-wasm-pack";
import ydkLoader from "vite-ydk-loader"; import ydkLoader from "vite-ydk-loader";
import tsconfigPaths from "vite-tsconfig-paths"; import tsconfigPaths from "vite-tsconfig-paths";
...@@ -13,7 +12,6 @@ export default defineConfig({ ...@@ -13,7 +12,6 @@ export default defineConfig({
plugins: [ plugins: [
react(), react(),
svgr(), svgr(),
// wasmPack("./rust-src"),
ydkLoader(), ydkLoader(),
tsconfigPaths(), tsconfigPaths(),
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment