Skip to content

Commit 860cdd9

Browse files
weeman1337skorpy2009
authored andcommitted
Migrate to Vite
Signed-off-by: weeman <[email protected]>
1 parent b220aaf commit 860cdd9

Some content is hidden

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

102 files changed

+9537
-16019
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/build
2+
/dev-dist

.github/workflows/build-meshviewer.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ jobs:
1919
node-version: ${{ matrix.node-version }}
2020
- run: npm install
2121
- run: npm audit
22-
- run: npm run gulp-ci
22+
- run: npm run lint
23+
- run: npm run build

.github/workflows/release-meshviewer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
node-version: ${{ matrix.node-version }}
1919
- run: npm install
20-
- run: npm run gulp
20+
- run: npm run build
2121
- run: "cd build; zip -r ../meshviewer-build.zip .; cd .."
2222
- name: Create Release
2323
id: create_release

.gitignore

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
Thumbs.db
1111

1212
# IDE files
13-
/.idea/
13+
/.idea
1414

1515
# Project files
16-
node_modules/
17-
build/
18-
config.js
16+
/node_modules
17+
/build
18+
/config.js
1919
*.zip
20+
/dev-dist

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/build
2+
/dev-dist

README.md

+13-10
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,35 @@ It is recommended to use the latest release:
1818

1919
- Clone this repository
2020
- Run `npm install`
21-
- Run `npm run gulp`
21+
- Run `npm run build`
2222
- A production build can then be found in [`/build`](./build)
2323

24-
Hint: You can start a development server with `npm run serve`
24+
Hint: You can start a development server with `npm run dev`
2525

26-
### Build & Run using Docker
26+
### Build and run using Docker
2727

2828
Static local test instance:
2929

3030
```bash
31-
docker run -it --rm -u $(id -u):$(id -g) -v "$PWD":/app -w /app node npm install
32-
docker run -it --rm -u $(id -u):$(id -g) -v "$PWD":/app -w /app node npm run gulp-ci
31+
docker run -it --rm -u $(id -u):$(id -g) -v "$PWD":/app -w /app node npm install
32+
docker run -it --rm -u $(id -u):$(id -g) -v "$PWD":/app -w /app node npm run build
3333
docker run -it --rm -v "$PWD/build":/usr/share/nginx/html -p 8080:80 --name nginx nginx
3434
```
3535

3636
The map is reachable at [localhost:8080](http://localhost:8080).
37-
You have to copy `config.example.json` as `build/config.json`.
37+
You have to copy `config.example.json` to `build/config.json`.
3838

39-
Live build / development env:
39+
Start a development environment:
4040

4141
```bash
42-
docker run -it --rm -u $(id -u):$(id -g) -v "$PWD":/app -w /app -e NODE_ENV=development -p 3000:3000 node npm run gulp serve
42+
docker run -it --rm --name meshviewer-dev \
43+
-u $(id -u):$(id -g) \
44+
-v "$PWD":/app -w /app \
45+
-e NODE_ENV=development \
46+
-p 5173:5173 \
47+
node npm run dev -- --host 0.0.0.0
4348
```
4449

45-
The map is reachable at [localhost:3000](http://localhost:3000).
46-
4750
## Configuration
4851

4952
The configuration documentation is nowhere near finished.

app.js

-40
This file was deleted.
-3.61 KB
Binary file not shown.
-9.05 KB
Binary file not shown.

assets/favicon/apple-touch-icon.png

-3.15 KB
Binary file not shown.

assets/favicon/browserconfig.xml

-12
This file was deleted.

assets/favicon/favicon-16x16.png

-485 Bytes
Binary file not shown.

assets/favicon/favicon-32x32.png

-886 Bytes
Binary file not shown.

assets/favicon/favicon.ico

-14.7 KB
Binary file not shown.

assets/favicon/mstile-144x144.png

-2.4 KB
Binary file not shown.

assets/favicon/mstile-150x150.png

-2.18 KB
Binary file not shown.

assets/favicon/mstile-310x150.png

-2.25 KB
Binary file not shown.

assets/favicon/mstile-310x310.png

-4.23 KB
Binary file not shown.

assets/favicon/mstile-70x70.png

-1.64 KB
Binary file not shown.

assets/favicon/safari-pinned-tab.svg

-1
This file was deleted.

assets/favicon/site.webmanifest

-21
This file was deleted.

assets/faviconData.json

-42
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

assets/icons/icon.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ $cache-breaker: unique-id();
88
font-style: normal;
99
font-weight: normal;
1010
src:
11-
url("fonts/meshviewer.woff2?rel=#{$cache-breaker}") format("woff2"),
12-
url("fonts/meshviewer.woff?rel=#{$cache-breaker}") format("woff"),
13-
url("fonts/meshviewer.ttf?rel=#{$cache-breaker}") format("truetype");
11+
url("@fonts/meshviewer.woff2?rel=#{$cache-breaker}") format("woff2"),
12+
url("@fonts/meshviewer.woff?rel=#{$cache-breaker}") format("woff"),
13+
url("@fonts/meshviewer.ttf?rel=#{$cache-breaker}") format("truetype");
1414
}
1515

1616
[class^="ion-"],

gulp/config.js

-47
This file was deleted.

0 commit comments

Comments
 (0)