@explorable-viz/fluid 0.7.44 → 0.7.46

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.
@@ -5,7 +5,7 @@ require('http-shutdown').extend();
5
5
 
6
6
  const app = express();
7
7
 
8
- const root = process.cwd() + '/dist/' + process.argv[3];
8
+ const root = process.cwd() + '/dist/' + process.argv[2];
9
9
  app.use(serve(root));
10
10
 
11
11
  const server = app.listen(8080, function() {
@@ -14,13 +14,13 @@ const server = app.listen(8080, function() {
14
14
 
15
15
  (async () => {
16
16
  try {
17
- if (process.argv.length == 5 && process.argv[4] == "-l") {
18
- module = process.cwd() + '/dist/' + process.argv[2]
17
+ if (process.argv.length == 4) {
18
+ module = process.cwd() + process.argv[3];
19
19
  } else {
20
- module = process.argv[2]
20
+ module = root + '/test.mjs';
21
21
  }
22
22
  console.log('Loading Puppeteer test module:', module);
23
- import( module ).then(({ main }) => {
23
+ import(module).then(({ main }) => {
24
24
  main().then(serverDown);
25
25
  }).catch(err => {
26
26
  console.error("Failed to load PureScript output:", err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorable-viz/fluid",
3
- "version": "0.7.44",
3
+ "version": "0.7.46",
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": {
@@ -79,7 +79,7 @@
79
79
  },
80
80
  "bin": {
81
81
  "fluid": "./dist/fluid/fluid.mjs",
82
- "test-website": "./dist/fluid/puppeteer.js"
82
+ "website-test": "./dist/fluid/puppeteer.js"
83
83
  },
84
84
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
85
85
  }
@@ -46,8 +46,8 @@ for CHILD in "${TO_COPY[@]}"; do
46
46
  cp -rL "$CHILD" dist/$WEBSITE_LISP_CASE
47
47
  done
48
48
 
49
- echo "Processing load-figure.js:"
49
+ echo "Processing shared js files:"
50
50
  cp "${PREFIX:+$PREFIX/}dist/fluid/load-figure.js" dist/$WEBSITE_LISP_CASE/shared
51
-
51
+ cp "${PREFIX:+$PREFIX/}dist/fluid/webtest-lib.js" dist/$WEBSITE_LISP_CASE/shared
52
52
  cp -r fluid dist/$WEBSITE_LISP_CASE
53
53
  echo "Bundled website $WEBSITE"
File without changes