Commit 42450866 authored by Chunchi Che's avatar Chunchi Che

fix ci

parent 6f848990
Pipeline #20693 passed with stages
in 18 minutes and 39 seconds
...@@ -82,8 +82,8 @@ npm_build: ...@@ -82,8 +82,8 @@ npm_build:
- linux - linux
script: script:
- mv neos.config.prod.json neos.config.json - mv neos.config.prod.json neos.config.json
- rm node_modules/rust-src
- npm run build:prod - npm run build:prod
- npx tsc
artifacts: artifacts:
paths: paths:
- dist - dist
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
"react-redux": "^8.0.4", "react-redux": "^8.0.4",
"react-router-dom": "^6.4.0", "react-router-dom": "^6.4.0",
"react-scripts": "^2.1.3", "react-scripts": "^2.1.3",
"rust-src": "file:rust-src/pkg",
"socket.io-client": "^4.5.1", "socket.io-client": "^4.5.1",
"sql.js": "^1.8.0", "sql.js": "^1.8.0",
"vite-plugin-svgr": "^2.4.0", "vite-plugin-svgr": "^2.4.0",
...@@ -22777,10 +22776,6 @@ ...@@ -22777,10 +22776,6 @@
"aproba": "^1.1.1" "aproba": "^1.1.1"
} }
}, },
"node_modules/rust-src": {
"resolved": "rust-src/pkg",
"link": true
},
"node_modules/rxjs": { "node_modules/rxjs": {
"version": "6.6.7", "version": "6.6.7",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
...@@ -27184,7 +27179,8 @@ ...@@ -27184,7 +27179,8 @@
}, },
"rust-src/pkg": { "rust-src/pkg": {
"name": "rust-src", "name": "rust-src",
"version": "0.1.0" "version": "0.1.0",
"extraneous": true
} }
}, },
"dependencies": { "dependencies": {
...@@ -44569,9 +44565,6 @@ ...@@ -44569,9 +44565,6 @@
"aproba": "^1.1.1" "aproba": "^1.1.1"
} }
}, },
"rust-src": {
"version": "file:rust-src/pkg"
},
"rxjs": { "rxjs": {
"version": "6.6.7", "version": "6.6.7",
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz",
...@@ -30,14 +30,13 @@ ...@@ -30,14 +30,13 @@
"sql.js": "^1.8.0", "sql.js": "^1.8.0",
"vite-plugin-svgr": "^2.4.0", "vite-plugin-svgr": "^2.4.0",
"web-vitals": "^2.1.4", "web-vitals": "^2.1.4",
"ygopro-deck-encode": "^1.0.3", "ygopro-deck-encode": "^1.0.3"
"rust-src": "file:rust-src/pkg"
}, },
"scripts": { "scripts": {
"wasm": "wasm-pack build ./rust-src --target web", "wasm": "wasm-pack build ./rust-src --target web",
"dev": "npm run wasm && vite", "dev": "npm run wasm && vite",
"build": "tsc && vite build && cp -r neos-assets dist/", "build": "vite build && cp -r neos-assets dist/",
"build:prod": "tsc && vite build --base=https://cdn02.moecube.com:444/neos/", "build:prod": "vite build --base=https://cdn02.moecube.com:444/neos/",
"preview": "vite preview", "preview": "vite preview",
"lint": "eslint --ext .ts --ext .tsx src", "lint": "eslint --ext .ts --ext .tsx src",
"fmt": "eslint --ext .ts --ext .tsx src --fix && cd rust-src && cargo fmt", "fmt": "eslint --ext .ts --ext .tsx src --fix && cd rust-src && cargo fmt",
......
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