-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_viewer.sh
executable file
·32 lines (25 loc) · 1.11 KB
/
build_viewer.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
#! /bin/bash
set -xe
OUTPUT_DIR=dist
EN_OUTPUT="${OUTPUT_DIR}/en"
KK_OUTPUT="${OUTPUT_DIR}/kk"
rm -rf $OUTPUT_DIR/*
# export NODE_ENV="development"
parcel build static/src/html/about_{en,kk,ru}.pug
parcel build static/src/html/present_top_{en,ru}.pug
parcel build static/src/html/verb_detector_{en,ru}.pug
parcel build static/src/html/verb_gym_{en,ru}.pug
parcel build static/src/html/declension_{en,ru}.pug
parcel build static/src/html/explanation_{en,ru}.pug
parcel build static/src/html/viewer{,_en,_kk}.pug
parcel build static/src/html/gc_search_ru.pug
cp static/src/images/{copy,copy_pressed,expand_down,expand_up,toggle_off,toggle_on}.svg $OUTPUT_DIR/
cp static/src/images/{one_to_one,one_to_many,many_to_one,many_to_many}.png $OUTPUT_DIR/
cp static/src/images/check_{box,box_blank,box_indet}.svg $OUTPUT_DIR/
cp static/src/images/sound.svg $OUTPUT_DIR/
mv "${OUTPUT_DIR}/viewer.html" "${OUTPUT_DIR}/index.html"
mkdir -p ${EN_OUTPUT}
mv "${OUTPUT_DIR}/viewer_en.html" "${EN_OUTPUT}/index.html"
mkdir -p ${KK_OUTPUT}
mv "${OUTPUT_DIR}/viewer_kk.html" "${KK_OUTPUT}/index.html"
echo "Output files are put under ${OUTPUT_DIR}"