Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
  • Sign in / Register
N
Neos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 2
    • Merge Requests 2
  • 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
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • MyCard
  • Neos
  • Merge Requests
  • !166

Merged
Opened Apr 09, 2023 by timel@timel
  • Report abuse
Report abuse

Dev/better import

  • Overview 0
  • Commits 15
  • Pipelines 5
  • Changes 153
  1. 增加ts path设置,将大部分的父层级导入改成import {} from '@/xxx'的形式。

  2. 增加vite和eslint的插件,修改配置,让lint和build能正确识别ts path。

  3. 去除导入rust-src时候的@ts-ignore。修改了CI,使得顺序变成rs_check_lint->wasm_build->ts_check_lint。这样,前面编译得到的.d.ts可以被后面的ts_check_lint消费,不会引发导入错误。

  4. 去除了vite的WASM插件,因为内置可以识别WASM。

  5. 处理了数个eslint的警告。

  6. 给Cargo增加了镜像源,因为有时候CI会网络错误。(我不太确定这个修改好不好)


测试了本地编译和在线CI。

Edited Apr 09, 2023 by timel

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch origin
git checkout -b "dev/better-import" "origin/dev/better-import"

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout "origin/main"
git merge --no-ff "dev/better-import"

Step 4. Push the result of the merge to GitLab

git push origin "main"

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: mycard/Neos!166

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.