@explorable-viz/fluid 0.7.66 → 0.7.68
Sign up to get free protection for your applications and to get access to all the features.
- package/.spago/node-process/v11.0.0/.eslintrc.json +29 -0
- package/.spago/node-process/v11.0.0/.gitignore +8 -0
- package/.spago/node-process/v11.1.0/.eslintrc.json +29 -0
- package/.spago/node-process/v11.1.0/.gitignore +8 -0
- package/.spago/node-process/v11.2.0/.eslintrc.json +29 -0
- package/.spago/node-process/v11.2.0/.gitignore +8 -0
- package/.spago/optparse/v6.0.0/.gitignore +8 -0
- package/.spago/optparse/v6.0.0/.npmrc +1 -0
- package/dist/fluid/fluid/lib/some-constants.fld +1 -0
- package/dist/fluid/shared/fluid.mjs +37 -18
- package/package.json +1 -1
- package/script/bundle-website.sh +14 -9
- package/.spago/affjax-node/v1.0.0/.editorconfig +0 -13
- package/.spago/affjax-node/v1.0.0/.eslintrc.json +0 -30
- package/.spago/affjax-node/v1.0.0/.gitignore +0 -13
- package/.spago/pathy/v9.0.0/.editorconfig +0 -13
- package/.spago/pathy/v9.0.0/.gitignore +0 -9
- package/.spago/pathy/v9.0.0/.tidyrc.json +0 -10
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"parserOptions": {
|
3
|
+
"ecmaVersion": 6,
|
4
|
+
"sourceType": "module"
|
5
|
+
},
|
6
|
+
"extends": "eslint:recommended",
|
7
|
+
"env": {
|
8
|
+
"node": true
|
9
|
+
},
|
10
|
+
"rules": {
|
11
|
+
"strict": [2, "global"],
|
12
|
+
"block-scoped-var": 2,
|
13
|
+
"consistent-return": 2,
|
14
|
+
"eqeqeq": [2, "smart"],
|
15
|
+
"guard-for-in": 2,
|
16
|
+
"no-caller": 2,
|
17
|
+
"no-extend-native": 2,
|
18
|
+
"no-loop-func": 2,
|
19
|
+
"no-new": 2,
|
20
|
+
"no-param-reassign": 2,
|
21
|
+
"no-return-assign": 2,
|
22
|
+
"no-unused-expressions": 2,
|
23
|
+
"no-use-before-define": 2,
|
24
|
+
"radix": [2, "always"],
|
25
|
+
"indent": [2, 2],
|
26
|
+
"quotes": [2, "double"],
|
27
|
+
"semi": [2, "always"]
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"parserOptions": {
|
3
|
+
"ecmaVersion": 6,
|
4
|
+
"sourceType": "module"
|
5
|
+
},
|
6
|
+
"extends": "eslint:recommended",
|
7
|
+
"env": {
|
8
|
+
"node": true
|
9
|
+
},
|
10
|
+
"rules": {
|
11
|
+
"strict": [2, "global"],
|
12
|
+
"block-scoped-var": 2,
|
13
|
+
"consistent-return": 2,
|
14
|
+
"eqeqeq": [2, "smart"],
|
15
|
+
"guard-for-in": 2,
|
16
|
+
"no-caller": 2,
|
17
|
+
"no-extend-native": 2,
|
18
|
+
"no-loop-func": 2,
|
19
|
+
"no-new": 2,
|
20
|
+
"no-param-reassign": 2,
|
21
|
+
"no-return-assign": 2,
|
22
|
+
"no-unused-expressions": 2,
|
23
|
+
"no-use-before-define": 2,
|
24
|
+
"radix": [2, "always"],
|
25
|
+
"indent": [2, 2],
|
26
|
+
"quotes": [2, "double"],
|
27
|
+
"semi": [2, "always"]
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"parserOptions": {
|
3
|
+
"ecmaVersion": 6,
|
4
|
+
"sourceType": "module"
|
5
|
+
},
|
6
|
+
"extends": "eslint:recommended",
|
7
|
+
"env": {
|
8
|
+
"node": true
|
9
|
+
},
|
10
|
+
"rules": {
|
11
|
+
"strict": [2, "global"],
|
12
|
+
"block-scoped-var": 2,
|
13
|
+
"consistent-return": 2,
|
14
|
+
"eqeqeq": [2, "smart"],
|
15
|
+
"guard-for-in": 2,
|
16
|
+
"no-caller": 2,
|
17
|
+
"no-extend-native": 2,
|
18
|
+
"no-loop-func": 2,
|
19
|
+
"no-new": 2,
|
20
|
+
"no-param-reassign": 2,
|
21
|
+
"no-return-assign": 2,
|
22
|
+
"no-unused-expressions": 2,
|
23
|
+
"no-use-before-define": 2,
|
24
|
+
"radix": [2, "always"],
|
25
|
+
"indent": [2, 2],
|
26
|
+
"quotes": [2, "double"],
|
27
|
+
"semi": [2, "always"]
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
package-lock=false
|
@@ -0,0 +1 @@
|
|
1
|
+
let x = 1;
|
@@ -28444,7 +28444,7 @@ var parseImports = /* @__PURE__ */ $Parser(
|
|
28444
28444
|
);
|
28445
28445
|
var evaluate = (v) => {
|
28446
28446
|
const $0 = v._1.fileName;
|
28447
|
-
const fluidSrcPaths = ["fluid"];
|
28447
|
+
const fluidSrcPaths = ["fluid", ...v._1.library ? ["node_modules/@explorable-viz/fluid"] : []];
|
28448
28448
|
return _bind(loadProgCxt3(fluidSrcPaths)(v._1.imports)(v._1.datasets))((progCxt) => _bind(prepConfig3(fluidSrcPaths)($0)(progCxt))((v1) => _bind(graphEval2(v1.gconfig)(v1.e))((v2) => _pure($Val(
|
28449
28449
|
void 0,
|
28450
28450
|
functorBaseVal.map((v$1) => {
|
@@ -28462,22 +28462,19 @@ var copyOptions = {
|
|
28462
28462
|
encoding: Nothing,
|
28463
28463
|
shell: Nothing
|
28464
28464
|
};
|
28465
|
-
var publish = (website) => ($$package) => {
|
28466
|
-
|
28467
|
-
|
28468
|
-
|
28469
|
-
|
28470
|
-
|
28471
|
-
|
28472
|
-
const $
|
28473
|
-
return ()
|
28474
|
-
|
28475
|
-
|
28476
|
-
|
28477
|
-
|
28478
|
-
fail();
|
28479
|
-
});
|
28480
|
-
};
|
28465
|
+
var publish = (website) => ($$package) => exec2($$package ? ".node_modules/@explorable-viz/fluid" : "./script/bundle-website.sh -w " + website)(copyOptions)((v) => {
|
28466
|
+
if (v.error.tag === "Just") {
|
28467
|
+
return log(showErrorImpl(v.error._1));
|
28468
|
+
}
|
28469
|
+
if (v.error.tag === "Nothing") {
|
28470
|
+
const $0 = toString2(monadEffect)(ASCII)(v.stdout);
|
28471
|
+
return () => {
|
28472
|
+
const $1 = $0();
|
28473
|
+
return log($1)();
|
28474
|
+
};
|
28475
|
+
}
|
28476
|
+
fail();
|
28477
|
+
});
|
28481
28478
|
var dispatchCommand = (v) => {
|
28482
28479
|
if (v.tag === "Evaluate") {
|
28483
28480
|
return _bind(evaluate(v._1))((v1) => _liftEffect(log(intercalate4("\n")(removeDocWS(prettyVal(highlightableUnit).pretty(v1)).lines))));
|
@@ -28547,7 +28544,29 @@ var program = /* @__PURE__ */ (() => $Parser(
|
|
28547
28544
|
$Parser(
|
28548
28545
|
"MultP",
|
28549
28546
|
$MultPE(
|
28550
|
-
|
28547
|
+
$Parser(
|
28548
|
+
"MultP",
|
28549
|
+
$MultPE(
|
28550
|
+
parserFunctor.map((v) => (v1) => (v2) => (v3) => $Program({ library: v, imports: v1, datasets: v2, fileName: v3 }))($Parser(
|
28551
|
+
"AltP",
|
28552
|
+
flag$p(true)((() => {
|
28553
|
+
const $0 = help("Are you running fluid as a library?");
|
28554
|
+
const $1 = $0._2._1.tag === "Nothing" ? Nothing : $0._2._1;
|
28555
|
+
const $2 = $0._2._2.tag === "Nothing" ? Nothing : $0._2._2;
|
28556
|
+
return $Mod(
|
28557
|
+
(x) => $0._1({
|
28558
|
+
flagNames: [$OptName("OptShort", "l"), $OptName("OptLong", "library"), ...x.flagNames],
|
28559
|
+
flagActive: x.flagActive
|
28560
|
+
}),
|
28561
|
+
$DefaultProp($1.tag === "Nothing" ? Nothing : $1, $2.tag === "Nothing" ? Nothing : $2),
|
28562
|
+
(x) => $0._3(x)
|
28563
|
+
);
|
28564
|
+
})()),
|
28565
|
+
$Parser("NilP", false)
|
28566
|
+
)),
|
28567
|
+
parserFunctor.map(fromFoldable29)(parseImports)
|
28568
|
+
)
|
28569
|
+
),
|
28551
28570
|
parserFunctor.map(fromFoldable29)(parseDatasets)
|
28552
28571
|
)
|
28553
28572
|
),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@explorable-viz/fluid",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.68",
|
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": {
|
package/script/bundle-website.sh
CHANGED
@@ -10,26 +10,30 @@ while getopts "w:r:" opt; do
|
|
10
10
|
esac
|
11
11
|
done
|
12
12
|
|
13
|
+
PREFIX_=${PREFIX:+$PREFIX/}
|
14
|
+
|
13
15
|
WEBSITE_LISP_CASE=$(./$PREFIX/script/util/lisp-case.sh "$WEBSITE")
|
14
16
|
echo "$WEBSITE -> $WEBSITE_LISP_CASE"
|
15
17
|
echo "Cleaning dist/$WEBSITE_LISP_CASE"
|
16
|
-
. "${
|
18
|
+
. "${PREFIX_}script/util/clean.sh" $WEBSITE_LISP_CASE
|
17
19
|
|
18
|
-
. "${
|
20
|
+
. "${PREFIX_}script/bundle-page.sh" $WEBSITE ${PREFIX:+$PREFIX}
|
19
21
|
|
20
22
|
shopt -s nullglob
|
21
23
|
|
22
24
|
# Only support one level of nesting for now
|
25
|
+
set +x
|
23
26
|
PAGES=($(for FILE in website/$WEBSITE/*.html; do
|
24
27
|
basename "$FILE" | sed 's/\.[^.]*$//'
|
25
28
|
done | sort -u))
|
29
|
+
set -x
|
26
30
|
|
27
31
|
for PAGE in "${PAGES[@]}"; do
|
28
|
-
. "${
|
32
|
+
. "${PREFIX_}script/bundle-page.sh" $WEBSITE.$PAGE ${PREFIX:+$PREFIX}
|
29
33
|
done
|
30
34
|
|
31
35
|
echo "Processing other static files:"
|
32
|
-
set +
|
36
|
+
set +xu # try to remove +u
|
33
37
|
TO_COPY=()
|
34
38
|
shopt -s extglob
|
35
39
|
for CHILD in website/$WEBSITE/!(.|..); do
|
@@ -39,7 +43,7 @@ for CHILD in website/$WEBSITE/!(.|..); do
|
|
39
43
|
fi
|
40
44
|
done
|
41
45
|
shopt -u extglob
|
42
|
-
set -
|
46
|
+
set -xu
|
43
47
|
|
44
48
|
for CHILD in "${TO_COPY[@]}"; do
|
45
49
|
cp -rL "$CHILD" dist/$WEBSITE_LISP_CASE
|
@@ -48,10 +52,11 @@ done
|
|
48
52
|
echo "Processing shared js files:"
|
49
53
|
cp -r fluid dist/$WEBSITE_LISP_CASE
|
50
54
|
|
51
|
-
if [[ "$PREFIX" != "" ]]; then
|
52
|
-
|
53
|
-
fi
|
54
|
-
cp -r "${
|
55
|
+
# if [[ "$PREFIX" != "" ]]; then
|
56
|
+
# cp -r "${PREFIX_}dist/fluid/fluid" dist/$WEBSITE_LISP_CASE
|
57
|
+
# fi
|
58
|
+
cp -r "${PREFIX_}dist/fluid/shared" dist/$WEBSITE_LISP_CASE
|
59
|
+
[ -d "website/$WEBSITE/fluid" ] && cp -r "website/$WEBSITE/fluid" dist/$WEBSITE_LISP_CASE
|
55
60
|
|
56
61
|
if [[ -e "website/$SRC_PATH/test.mjs" ]]; then
|
57
62
|
cp website/$SRC_PATH/test.mjs dist/SRC_PATH_LISP_CASE/test.mjs
|
@@ -1,30 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"env": { "browser": true },
|
3
|
-
"extends": "eslint:recommended",
|
4
|
-
"parserOptions": { "ecmaVersion": 6, "sourceType": "module" },
|
5
|
-
"rules": {
|
6
|
-
"block-scoped-var": "error",
|
7
|
-
"consistent-return": "error",
|
8
|
-
"eqeqeq": "error",
|
9
|
-
"guard-for-in": "error",
|
10
|
-
"no-bitwise": "error",
|
11
|
-
"no-caller": "error",
|
12
|
-
"no-constant-condition": ["error", { "checkLoops": false }],
|
13
|
-
"no-extra-parens": "off",
|
14
|
-
"no-extend-native": "error",
|
15
|
-
"no-loop-func": "error",
|
16
|
-
"no-new": "error",
|
17
|
-
"no-param-reassign": "error",
|
18
|
-
"no-return-assign": "error",
|
19
|
-
"no-sequences": "error",
|
20
|
-
"no-unused-expressions": "error",
|
21
|
-
"no-use-before-define": "error",
|
22
|
-
"no-undef": "error",
|
23
|
-
"no-eq-null": "error",
|
24
|
-
"radix": ["error", "always"],
|
25
|
-
"indent": ["error", 2, { "SwitchCase": 0 }],
|
26
|
-
"quotes": ["error", "double"],
|
27
|
-
"semi": ["error", "always"],
|
28
|
-
"strict": ["error", "global"]
|
29
|
-
}
|
30
|
-
}
|