Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
1a76d2b1
Commit
1a76d2b1
authored
Mar 14, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ci
parent
fade23f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
.gitlab-ci.yml
.gitlab-ci.yml
+14
-2
package.json
package.json
+2
-2
No files found.
.gitlab-ci.yml
View file @
1a76d2b1
stages
:
stages
:
-
install
-
install
-
check
-
lint
-
lint
-
test
-
test
-
wasm
-
wasm
...
@@ -21,6 +22,19 @@ npm_ci:
...
@@ -21,6 +22,19 @@ npm_ci:
dependencies
:
dependencies
:
-
npm_ci
-
npm_ci
ts_check
:
extends
:
.build_base
stage
:
check
tags
:
-
linux
script
:
tsc
rs_check
:
stage
:
check
tags
:
-linux
script
:
cd rust-src && cargo check
ts_lint
:
ts_lint
:
extends
:
.build_base
extends
:
.build_base
stage
:
lint
stage
:
lint
...
@@ -65,7 +79,6 @@ npm_build:
...
@@ -65,7 +79,6 @@ npm_build:
-
npm run build:prod
-
npm run build:prod
artifacts
:
artifacts
:
paths
:
paths
:
-
rust-src/pkg
-
dist
-
dist
deploy
:
deploy
:
...
@@ -78,5 +91,4 @@ deploy:
...
@@ -78,5 +91,4 @@ deploy:
-
npm_build
-
npm_build
script
:
script
:
-
mv neos-assets dist/
-
mv neos-assets dist/
-
mv rust-src dist/
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/neos
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete dist/ s3://mycard/neos
package.json
View file @
1a76d2b1
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
"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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment