-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
29 lines (29 loc) · 1.36 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15",
"bulma": "^0.9",
"snabbdom": "^3.1.0"
},
"devDependencies": {
"esbuild": "^0.20.0",
"nodemon": "^2.0",
"npm-run-all": "^4.1",
"sass": "^1.42"
},
"scripts": {
"develop": "run-p mkdir server watch",
"mkdir": "mkdir build -p",
"server": "esbuild --serve=8080 --servedir=build",
"watch": "run-p watch-*",
"watch-frontend": "sbt ~frontend/compile",
"watch-static": "nodemon --watch frontend/src/main/static -e '*' --exec 'npm run build-static'",
"watch-css": "nodemon --watch frontend/src/main/css -e '*' --exec 'npm run build-css'",
"watch-fa": "nodemon --watch node_modules/@fortawesome -e '*' --exec 'npm run build-fa'",
"build": "run-s mkdir build-frontend build-static build-css build-fa build-sw",
"build-frontend": "sbt 'set ThisBuild / scalaJSStage := org.scalajs.sbtplugin.Stage.FullOpt; frontend/compile'",
"build-static": "cp frontend/src/main/static/* build/. && cp node_modules/@fortawesome/fontawesome-free/svgs/solid/trash.svg build/.",
"build-css": "sass frontend/src/main/css/app.sass build/app.css --no-source-map",
"build-fa": "cp -r node_modules/@fortawesome/fontawesome-free/webfonts/* build/.",
"build-sw": "sbt 'set scalaJSStage in ThisBuild := org.scalajs.sbtplugin.Stage.FullOpt; service-worker/compile'"
}
}