Skip to content

Commit 3153d9c

Browse files
committed
Use Vite instead of Browserify, use webworkers instead of operative
1 parent 867e0b2 commit 3153d9c

Some content is hidden

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

74 files changed

+10282
-8413
lines changed

.gitignore

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
node_modules
2-
npm-debug.log
1+
!karma.conf.js
32
.idea
3+
*.css
44
*.iml
55
*.js.map
6-
*.css
7-
/modelCache
8-
/doc
96
/apidoc
10-
!karma.conf.js
117
/batchtesting/models/*
8+
/doc
9+
/modelCache
10+
/public
11+
node_modules
12+
npm-debug.log

bin/cli.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env node
2+
3+
import { startServer } from "../src/server/main.js"
4+
5+
const args = process.argv.slice(2)
6+
7+
if (args.length === 0) {
8+
console.log(
9+
"No arguments provided." +
10+
"Please provide one of the following commands: help, start",
11+
)
12+
process.exit(1)
13+
}
14+
15+
if (args.length > 1) {
16+
console.log(
17+
"Too many arguments provided." +
18+
"Please provide one of the following commands: help, start",
19+
)
20+
process.exit(1)
21+
}
22+
23+
if (args[0] === "help") {
24+
console.log("Available commands: help, start")
25+
process.exit(0)
26+
}
27+
28+
if (args[0] === "start") {
29+
console.log("Starting the server...")
30+
await startServer()
31+
}

makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@ help: makefile
55

66
.PHONY: build
77
build:
8-
npx cake build
9-
cakeUtilities.buildServer()
8+
npx vite build
109

1110

1211
# The main server part which is responsible for delivering the
1312
# website and for server-side plugin integration and model processing
1413
.PHONY: start
1514
start:
16-
require './src/server/main'
17-
.setupRouting()
18-
.startServer()
15+
./bin/cli.js start
1916

2017

2118
# .PHONY: link-hooks # Links git hooks into .git/hooks
@@ -45,4 +42,5 @@ prepublish:
4542

4643
.PHONY: clean
4744
clean:
48-
npx cake clean
45+
rm -rf node_modules
46+
rm -rf public

0 commit comments

Comments
 (0)