Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (38 loc) · 1.9 KB
/
Copy pathMakefile
File metadata and controls
44 lines (38 loc) · 1.9 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
all: build
build:
npm run build
setup:
@mkdir -p ./lib ./fonts
@cp node_modules/jquery/dist/jquery.min.js ./lib/
@cp node_modules/bootstrap/dist/js/bootstrap.bundle.min.js ./lib/
@cp node_modules/bootstrap-slider/dist/bootstrap-slider.min.js ./lib/
@cp node_modules/font-awesome/css/font-awesome.min.css ./lib/
@cp node_modules/bootstrap/dist/css/bootstrap.min.css ./lib/
@cp node_modules/cropperjs/dist/cropper.min.css ./lib/
@cp node_modules/bootstrap-slider/dist/css/bootstrap-slider.min.css ./lib/
@cp node_modules/font-awesome/fonts/* ./fonts/
@cp node_modules/@fontsource/press-start-2p/files/press-start-2p-latin-400-normal.woff2 ./fonts/
@cp node_modules/@fontsource/press-start-2p/LICENSE ./fonts/press-start-2p-LICENSE.txt
setupwin:
@if not exist ".\lib" mkdir .\lib > nul
@if not exist ".\fonts" mkdir .\fonts > nul
@copy /y node_modules\jquery\dist\jquery.min.js .\lib > nul
@copy /y node_modules\bootstrap\dist\js\bootstrap.bundle.min.js .\lib > nul
@copy /y node_modules\bootstrap-slider\dist\bootstrap-slider.min.js .\lib > nul
@copy /y node_modules\font-awesome\css\font-awesome.min.css .\lib > nul
@copy /y node_modules\bootstrap\dist\css\bootstrap.min.css .\lib > nul
@copy /y node_modules\cropperjs\dist\cropper.min.css .\lib > nul
@copy /y node_modules\bootstrap-slider\dist\css\bootstrap-slider.min.css .\lib > nul
@copy /y node_modules\font-awesome\fonts\*.* .\fonts > nul
@copy /y node_modules\@fontsource\press-start-2p\files\press-start-2p-latin-400-normal.woff2 .\fonts > nul
@copy /y node_modules\@fontsource\press-start-2p\LICENSE .\fonts\press-start-2p-LICENSE.txt > nul
watch:
npm run clean
sleep 9999999 | npm run esbuild-worker -- --watch &
sleep 9999999 | npm run esbuild-ui -- --watch &
node scripts/server.cjs
TMP=./tmp/dist
distro: build
rm -fr $(TMP) && mkdir -p $(TMP)
cp -rp index.html dist images lib fonts $(TMP)
node scripts/gen-sitemap.mjs $(TMP)/sitemap.xml