Commit ea9f049e authored by timel's avatar timel

chore: gitlab ci 100%

parent 0b037e8a
......@@ -20,22 +20,6 @@
"import/resolver": {
"node": true,
"typescript": true
// "alias": {
// "map": [
// [
// "rust-src",
// "/rust-src/pkg"
// ]
// ],
// "extensions": [
// ".js",
// ".jsx",
// ".ts",
// ".tsx",
// ".json",
// ".wasm"
// ]
// }
}
}
}
......@@ -22,7 +22,7 @@ npm_ci:
dependencies:
- npm_ci
rs_check:
rs_check_lint:
stage: rs_check_lint
image: rust:latest
tags:
......@@ -49,7 +49,7 @@ wasm_build:
- rust-src/pkg
- node_modules
ts_check:
ts_check_lint:
dependencies:
- npm_ci
- wasm_build
......
import { ygopro } from "../../../idl/ocgcore";
//@ts-ignore
import { ocgDamageAdapter } from "rust-src";
/*
......
......@@ -10,29 +10,3 @@ interface ImportMetaEnv {
interface ImportMeta {
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 react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import wasmPack from "vite-plugin-wasm-pack";
import ydkLoader from "vite-ydk-loader";
import tsconfigPaths from "vite-tsconfig-paths";
......@@ -13,7 +12,6 @@ export default defineConfig({
plugins: [
react(),
svgr(),
// wasmPack("./rust-src"),
ydkLoader(),
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