-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
39 lines (33 loc) · 1.46 KB
/
Makefile
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
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/
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
watch:
npm run clean
sleep 9999999 | npm run esbuild-worker -- --watch &
sleep 9999999 | npm run esbuild-ui -- --watch &
node scripts/server.js
TMP=./tmp/dist
distro: build
rm -fr $(TMP) && mkdir -p $(TMP)
cp -rp index.html gen images lib fonts $(TMP)