@explorable-viz/fluid 0.7.103 → 0.7.104

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.7.103",
3
+ "version": "0.7.104",
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": {
@@ -16,16 +16,12 @@ fi
16
16
 
17
17
  if [[ "${BASH_SOURCE[0]}" == *"/node_modules/"* ]]; then
18
18
  PREFIX="node_modules/@explorable-viz/fluid/"
19
+ else
20
+ PREFIX=""
19
21
  fi
20
22
 
21
- PREFIX_=${PREFIX:+$PREFIX/}
22
23
  echo "Cleaning dist/$WEBSITE"
23
- . "${PREFIX_}script/util/clean.sh" $WEBSITE
24
-
25
- for DIR in css font shared; do
26
- echo "Processing $DIR files:"
27
- cp -rL "website/$WEBSITE/$DIR" "dist/$WEBSITE/$DIR"
28
- done
24
+ . "${PREFIX}script/util/clean.sh" $WEBSITE
29
25
 
30
26
  shopt -s nullglob
31
27
 
@@ -33,7 +29,7 @@ echo "Processing other static files:"
33
29
  set +xu # try to remove +u
34
30
  TO_COPY=()
35
31
  shopt -s dotglob extglob
36
- for CHILD in ${PREFIX_}website/$WEBSITE/!(.|..); do
32
+ for CHILD in ${PREFIX}website/$WEBSITE/!(.|..); do
37
33
  BASENAME="$(basename "$CHILD")"
38
34
  if [[ "$BASENAME" =~ ^[a-z.] ]]; then
39
35
  TO_COPY+=("$CHILD")
@@ -47,10 +43,10 @@ for CHILD in "${TO_COPY[@]}"; do
47
43
  done
48
44
 
49
45
  echo "Processing Fluid source files:"
50
- cp -r "${PREFIX_}dist/fluid/fluid" dist/$WEBSITE
46
+ cp -r "${PREFIX}dist/fluid/fluid" dist/$WEBSITE
51
47
  [ -d "website/$WEBSITE/fluid" ] && cp -r "website/$WEBSITE/fluid" dist/$WEBSITE
52
48
 
53
49
  echo "Processing shared JavaScript files:"
54
- cp -r "${PREFIX_}dist/fluid/shared" dist/$WEBSITE
50
+ cp -r "${PREFIX}dist/fluid/shared" dist/$WEBSITE
55
51
 
56
52
  echo "Bundled website $WEBSITE"