-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathmake.sh
executable file
·64 lines (52 loc) · 1.3 KB
/
make.sh
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
#
# Install Helper
#
# SPDX-License-Identifier: GPL-3.0-only
#
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail
APP_ROOT=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$APP_ROOT"
composer install --no-ansi --no-progress --classmap-authoritative
npm install --no-audit --no-fund
php <<PHP
<?php
define('APP_ROOT', __DIR__);
require_once(APP_ROOT . '/vendor/autoload.php');
\OpenTHC\Make::install_bootstrap();
\OpenTHC\Make::install_fontawesome();
\OpenTHC\Make::install_jquery();
PHP
# lodash
mkdir -p webroot/vendor/lodash/
cp node_modules/lodash/lodash.min.js webroot/vendor/lodash/
# htmx
# mkdir -p webroot/vendor/htmx
# cp node_modules/htmx.org/dist/htmx.min.js webroot/vendor/htmx/
# qrcode
mkdir -p webroot/vendor/qrcodejs
cp node_modules/qrcodejs/qrcode.min.js webroot/vendor/qrcodejs/
# chart.js
mkdir -p webroot/vendor/chart.js
cp node_modules/chart.js/dist/chart.umd.js webroot/vendor/chart.js/
cp node_modules/chart.js/dist/chart.umd.js.map webroot/vendor/chart.js/
#
# SASS
./node_modules/.bin/sass \
--fatal-deprecation 1.65.0 \
--no-charset \
--no-source-map \
--style=compressed \
--stop-on-error \
sass/main.scss webroot/css/main.css \
2>&1;
#
#
php <<PHP
<?php
require_once(__DIR__ . '/boot.php');
\OpenTHC\Make::create_homepage('pos');
PHP