@explorable-viz/fluid 0.7.24 → 0.7.27

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.24",
3
+ "version": "0.7.27",
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,9 +19,9 @@
19
19
  "homepage": "https://f.luid.org",
20
20
  "files": [
21
21
  "dist/fluid/",
22
- "script/rebundle-website.sh",
22
+ "script/bundle-website.sh",
23
23
  "script/util/clean.sh",
24
- "script/util/lisp_case.sh"
24
+ "script/util/lisp-case.sh"
25
25
  ],
26
26
  "scripts": {
27
27
  "tidy": "./script/tidy.sh",
@@ -40,10 +40,8 @@ for PAGE in "${PAGES[@]}"; do
40
40
  SRC_PATH_LISP_CASE=$($LISP_CASE "$SRC_PATH")
41
41
  echo "$SRC_PATH -> $SRC_PATH_LISP_CASE"
42
42
 
43
- if [[ ! -e "website/$SRC_PATH.purs" ]]; then
44
- $CLEAN $SRC_PATH_LISP_CASE
45
-
46
- 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
47
45
  else
48
46
  if [[ -e "website/$SRC_PATH.html" ]]; then
49
47
  $CLEAN $SRC_PATH_LISP_CASE
@@ -53,12 +51,7 @@ for PAGE in "${PAGES[@]}"; do
53
51
  fi
54
52
 
55
53
  if [[ -e "website/$SRC_PATH.json" ]]; then
56
- echo "exists"
57
54
  cp website/$SRC_PATH.json dist/$SRC_PATH_LISP_CASE/spec.json
58
- else
59
- if [[ ! -e "website/$SRC_PATH.json" ]]; then
60
- echo "doesn't exist"
61
- fi
62
55
  fi
63
56
  done
64
57
 
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env bash
2
+ set -e
3
+
4
+ toLispCase() {
5
+ INPUT="$1"
6
+ RESULT=$(echo "$INPUT" | sed -E 's/([a-z0-9])([A-Z])/\1-\2/g' | tr '[:upper:]' '[:lower:]')
7
+ echo "$RESULT"
8
+ }
9
+
10
+ toLispCase "$1"