@explorable-viz/fluid 0.7.23 → 0.7.25
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@explorable-viz/fluid",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.25",
|
4
4
|
"description": "Fluid is an experimental programming language which integrates a bidirectional dynamic analysis to connect outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": {
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"homepage": "https://f.luid.org",
|
20
20
|
"files": [
|
21
21
|
"dist/fluid/",
|
22
|
-
"script/
|
22
|
+
"script/bundle-website.sh",
|
23
23
|
"script/util/clean.sh",
|
24
24
|
"script/util/lisp_case.sh"
|
25
25
|
],
|
@@ -2,15 +2,29 @@
|
|
2
2
|
set -xe
|
3
3
|
|
4
4
|
WEBSITE="Misc"
|
5
|
+
SCRIPT_ROOT=false
|
5
6
|
|
6
|
-
|
7
|
+
|
8
|
+
while getopts "w:r:" opt; do
|
7
9
|
case $opt in
|
8
10
|
w) WEBSITE="$OPTARG";;
|
11
|
+
r) SCRIPT_ROOT="$OPTARG";;
|
9
12
|
esac
|
10
13
|
done
|
11
14
|
|
15
|
+
if [[ "$SCRIPT_ROOT" = true ]]; then
|
16
|
+
CLEAN=./node_modules/@explorable-viz/fluid/script/util/clean.sh
|
17
|
+
LISP_CASE=./node_modules/@explorable-viz/fluid/script/util/lisp-case.sh
|
18
|
+
DIST="node_modules/@explorable-viz/fluid/dist"
|
19
|
+
else
|
20
|
+
CLEAN=./script/util/clean.sh
|
21
|
+
LISP_CASE=./script/util/lisp-case.sh
|
22
|
+
DIST="dist"
|
23
|
+
fi
|
24
|
+
|
25
|
+
|
12
26
|
SRC_PATH=${WEBSITE//./\/}
|
13
|
-
SRC_PATH_LISP_CASE=$(
|
27
|
+
SRC_PATH_LISP_CASE=$($LISP_CASE "$SRC_PATH")
|
14
28
|
echo "$SRC_PATH -> $SRC_PATH_LISP_CASE"
|
15
29
|
|
16
30
|
shopt -s nullglob
|
@@ -23,33 +37,26 @@ set -x
|
|
23
37
|
for PAGE in "${PAGES[@]}"; do
|
24
38
|
MODULE=$WEBSITE.$PAGE
|
25
39
|
SRC_PATH=${MODULE//./\/}
|
26
|
-
SRC_PATH_LISP_CASE=$(
|
40
|
+
SRC_PATH_LISP_CASE=$($LISP_CASE "$SRC_PATH")
|
27
41
|
echo "$SRC_PATH -> $SRC_PATH_LISP_CASE"
|
28
42
|
|
29
|
-
if [[
|
30
|
-
|
31
|
-
|
32
|
-
cp website/$SRC_PATH.html dist/$SRC_PATH_LISP_CASE/index.html
|
43
|
+
if [[ -e "website/$SRC_PATH.purs" ]]; then
|
44
|
+
. script/bundle-page.sh $WEBSITE.$PAGE
|
33
45
|
else
|
34
46
|
if [[ -e "website/$SRC_PATH.html" ]]; then
|
35
|
-
|
47
|
+
$CLEAN $SRC_PATH_LISP_CASE
|
36
48
|
|
37
49
|
cp website/$SRC_PATH.html dist/$SRC_PATH_LISP_CASE/index.html
|
38
50
|
fi
|
39
51
|
fi
|
40
52
|
|
41
53
|
if [[ -e "website/$SRC_PATH.json" ]]; then
|
42
|
-
echo "exists"
|
43
54
|
cp website/$SRC_PATH.json dist/$SRC_PATH_LISP_CASE/spec.json
|
44
|
-
else
|
45
|
-
if [[ ! -e "website/$SRC_PATH.json" ]]; then
|
46
|
-
echo "doesn't exist"
|
47
|
-
fi
|
48
55
|
fi
|
49
56
|
done
|
50
57
|
|
51
58
|
|
52
|
-
WEBSITE_LISP_CASE=$(
|
59
|
+
WEBSITE_LISP_CASE=$($LISP_CASE "$WEBSITE")
|
53
60
|
|
54
61
|
set +x
|
55
62
|
TO_COPY=()
|
@@ -62,12 +69,12 @@ done
|
|
62
69
|
set -x
|
63
70
|
|
64
71
|
echo "Processing shared files:"
|
65
|
-
cp -r
|
66
|
-
cp
|
72
|
+
cp -r $DIST/fluid/shared dist/$WEBSITE_LISP_CASE/shared
|
73
|
+
cp $DIST/fluid/load-fig.js dist/$WEBSITE_LISP_CASE/shared/load-fig.js
|
67
74
|
|
68
|
-
cp -r
|
69
|
-
cp -r
|
70
|
-
cp
|
75
|
+
cp -r $DIST/fluid/font dist/$WEBSITE_LISP_CASE/font
|
76
|
+
cp -r $DIST/fluid/css dist/$WEBSITE_LISP_CASE/css
|
77
|
+
cp $DIST/fluid/favicon.ico dist/$WEBSITE_LISP_CASE/favicon.ico
|
71
78
|
|
72
79
|
echo "Processing static files:"
|
73
80
|
|