Skip to content

Commit c69b83c

Browse files
committed
refactor: rspack
1 parent 88cc1c3 commit c69b83c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+7986
-1573
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
cache: 'npm'
2424
- name: Install dependencies
2525
run: npm install
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
2628
- name: Update local package.json version from release tag
2729
if: github.ref_type == 'tag'
2830
uses: BellCubeDev/update-package-version-by-release-tag@v2

.github/workflows/deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
debug:
14-
uses: ./.github/workflows/debug.yml
14+
uses: ./.github/workflows/dev.yml
1515
secrets: inherit
1616
deploy:
1717
needs: debug
@@ -21,18 +21,17 @@ jobs:
2121
uses: actions/download-artifact@master
2222
with:
2323
name: artifact
24-
path: dist
2524
- name: Deploy
2625
uses: exuanbo/actions-deploy-gist@main
2726
with:
2827
token: ${{ secrets.GIST_TOKEN }}
2928
gist_id: b7524906119fa250bc933cc9a08e939a
3029
gist_description: " iRingo: 📍 GeoServices β"
31-
file_path: dist/request.js
30+
file_path: dist/request.bundle.js
3231
- name: Deploy
3332
uses: exuanbo/actions-deploy-gist@main
3433
with:
3534
token: ${{ secrets.GIST_TOKEN }}
3635
gist_id: b7524906119fa250bc933cc9a08e939a
3736
gist_description: " iRingo: 📍 GeoServices β"
38-
file_path: dist/response.js
37+
file_path: dist/response.bundle.js
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Debug
1+
name: Dev
22
on:
33
workflow_call:
44
workflow_dispatch:
@@ -24,10 +24,15 @@ jobs:
2424
cache: 'npm'
2525
- name: Install dependencies
2626
run: npm install
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
2729
- name: Build
28-
run: npm run build:debug
30+
run: npm run build:dev
2931
- name: Upload artifact
3032
uses: actions/upload-artifact@master
3133
with:
3234
name: artifact
33-
path: dist
35+
path: |
36+
CHANGELOG.md
37+
rulesets
38+
dist

.github/workflows/draft.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
body_path: CHANGELOG.md
2828
token: ${{ secrets.GITHUB_TOKEN }}
2929
files: |
30-
dist/*
30+
rulesets/*
3131
modules/*
32+
dist/*
3233
draft: true

.github/workflows/pre-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
body_path: CHANGELOG.md
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030
files: |
31-
dist/*
31+
rulesets/*
3232
modules/*
33+
dist/*
3334
prerelease: true

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
body_path: CHANGELOG.md
2828
token: ${{ secrets.GITHUB_TOKEN }}
2929
files: |
30-
dist/*
30+
rulesets/*
3131
modules/*
32+
dist/*
3233
make_latest: "true"

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "src/utils"]
2-
path = src/utils
3-
url = https://github.com/NanoCat-Me/utils.git
41
[submodule "src/XML"]
52
path = src/XML
63
url = https://github.com/NanoCat-Me/XML.git

.npmrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
registry=https://registry.npmjs.org/
1+
registry=https://registry.npmjs.org/
2+
@nsnanocat:registry=https://npm.pkg.github.com/
3+
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1+
### 🛠️ Bug Fixes
2+
* none
3+
4+
### 🔣 Dependencies
5+
* 升级了 `@nsnanocat/util`
6+
* `util``submodule` 更改为 `package`
7+
* `$platform` 改为 `$app`
8+
* 增加了 `@nsnanocat/url`
9+
* 使用了全新的 `URL``URLSearchParams` polyfill
10+
111
### 🔄 Other Changes
2-
* 自动生成模块
12+
* 打包器由 `rollup` 更改为 `rspack`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# GeoServices
1+
#  iRingo: 📍 GeoServices

0 commit comments

Comments
 (0)