Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d8b343dfc | |||
| 2dd9b4732a | |||
| cc36f5b1dd | |||
|
|
c309c6f323 | ||
|
|
5b0b62f117 | ||
| efe365c773 | |||
| 11f964186e | |||
| c4e7eeabcb |
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -12,11 +12,11 @@ jobs:
|
||||
name: 'Build-Test'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '22'
|
||||
node-version: '24'
|
||||
- name: Install Deps
|
||||
run: yarn install
|
||||
- name: Build
|
||||
@@ -27,18 +27,18 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node_version: ['22']
|
||||
node_version: ['24']
|
||||
include:
|
||||
- os: macos-latest
|
||||
node_version: 22
|
||||
node_version: 24
|
||||
- os: windows-latest
|
||||
node_version: 22
|
||||
node_version: 24
|
||||
name: 'Demo-Build-Test: node-${{ matrix.node_version }}, ${{ matrix.os }}'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
- name: Set node version to ${{ matrix.node_version }}
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: ${{ matrix.node_version }}
|
||||
- name: Package Install deps
|
||||
|
||||
6
.github/workflows/publish-to-npm.yml
vendored
6
.github/workflows/publish-to-npm.yml
vendored
@@ -7,11 +7,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v5
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '22.x'
|
||||
node-version: '24.x'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: Install dependencies and build
|
||||
run: npm install && npm run build
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
```bash
|
||||
# 记得安装 cesium 依赖哦
|
||||
npm i vite-plugin-cesium-next -D
|
||||
# yarn add vite-plugin-cesium-text -D
|
||||
# yarn add vite-plugin-cesium-next -D
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"serve": "vite build && vite preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
"cesium": "1.129.0",
|
||||
"cesium": "1.136.0",
|
||||
"vite": "file:../node_modules/vite",
|
||||
"vite-plugin-cesium-next": "file:.."
|
||||
}
|
||||
|
||||
16
package.json
16
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vite-plugin-cesium-next",
|
||||
"version": "2.0.3",
|
||||
"version": "2.0.5",
|
||||
"description": "Cesium library plugin for Vite",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
@@ -32,25 +32,25 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/coder-xiaomo/vite-plugin-cesium-next"
|
||||
"url": "git+https://github.com/coder-xiaomo/vite-plugin-cesium-next.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/coder-xiaomo/vite-plugin-cesium-next/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"fs-extra": "^11.3.0",
|
||||
"rollup-plugin-external-globals": "^0.6.1",
|
||||
"serve-static": "^1.16.2"
|
||||
"rollup-plugin-external-globals": "^0.13.0",
|
||||
"serve-static": "^2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tsconfig/node22": "^22.0.2",
|
||||
"@tsconfig/node24": "^24.0.3",
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/node": "^22.15.31",
|
||||
"@types/serve-static": "^1.15.8",
|
||||
"@types/node": "^24.10.1",
|
||||
"@types/serve-static": "^2.2.0",
|
||||
"prettier": "^3.5.3",
|
||||
"tsup": "^8.5.0",
|
||||
"typescript": "^5.8.3",
|
||||
"vite": "^6.1.0"
|
||||
"vite": "^7.2.6"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"cesium": "^1.95.0",
|
||||
|
||||
Reference in New Issue
Block a user