-
Notifications
You must be signed in to change notification settings - Fork 3
/
buildBulma.sh
executable file
·34 lines (26 loc) · 2.14 KB
/
buildBulma.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
#!/usr/bin/env bash
npm install
sass --no-source-map node_modules/bulma/sass/mosla.scss:static/styles/bulma.min.css --style compressed
#sass --no-source-map node_modules/bulma-switch/dist/css/bulma-switch.sass:static/styles/bulma-switch.min.css --style compressed
sed -i -e 's/background-color: #a00/background-color: #7a1219/g' node_modules/github-fork-ribbon-css/gh-fork-ribbon.css
cp node_modules/github-fork-ribbon-css/gh-fork-ribbon.css static/styles/gh-fork-ribbon.css
cp node_modules/bulma-divider/dist/css/bulma-divider.min.css static/styles/bulma-divider.min.css
cp node_modules/chart.js/dist/Chart.min.js static/js/Chart.min.js
#cp node_modules/bulma-switch/dist/css/bulma-switch.min.css static/styles/bulma-switch.min.css
cp node_modules/chart.js/dist/Chart.min.css static/styles/Chart.min.css
cp node_modules/chartjs-plugin-dragdata/dist/chartjs-plugin-dragData.min.js static/js/chartjs-plugin-dragData.min.js
cp node_modules/json5/dist/index.min.js static/js/index.min.js
cp node_modules/jquery/dist/jquery.min.js static/js/jquery.min.js
cp node_modules/letteringjs/jquery.lettering.js static/js/jquery.lettering.js
cp node_modules/sortablejs/Sortable.js static/js/Sortable.js
cp node_modules/sortablejs/Sortable.min.js static/js/Sortable.min.js
cp node_modules/nouislider/distribute/nouislider.css static/styles/nouislider.css
cp node_modules/nouislider/distribute/nouislider.min.js static/js/nouislider.min.js
cp node_modules/@fortawesome/fontawesome-free/js/all.min.js static/js/fontawesome.min.js
#cp node_modules/@fortawesome/fontawesome-free/css/all.min.css static/style/fontawesome.min.css
rm static/js/all.min.js
rm static/styles/all.min.css
cd static/js
uglifyjs -c --output all.min.js -- jquery.min.js jquery.lettering.js Chart.min.js chartjs-plugin-dragData.min.js fontawesome.min.js error-chart.js autoscroll.js ajax-api.js index.min.js nouislider.min.js Sortable.min.js error_probs.js dateconverter.js # cookies.js
cd ../styles
uglifycss --output all.min.css bulma.min.css infobox.css bootstrap-float-label.min.css balloon.min.css Chart.min.css gh-fork-ribbon.css overlay.css nouislider.css bulma-divider.min.css #fontawesome.min.js #bulma-switch.min.css