@suffolklitlab/alkiln 5.1.0-sources-2 → 5.1.0-sources-4

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.
@@ -17,10 +17,7 @@ function build_config(argv) {
17
17
  }
18
18
 
19
19
  let tags = argv[`_`];
20
- // if ( session_vars.get_origin() === `playground` ) {
21
- // tags = session_vars.get_tags();
22
- // }
23
-
20
+ console.log(`tags: ${tags}`);
24
21
  if (tags.length > 0) {
25
22
  let joined_tags = '';
26
23
  // Cucumber expects tags in boolean expressions, like (@a0 or @a1) and @random.
@@ -50,8 +47,6 @@ function build_config(argv) {
50
47
  const environment = { cwd: process.cwd() };
51
48
  console.log("alkiln-run: environment: %o", environment);
52
49
 
53
- console.log(`command: ${process.argv}`);
54
-
55
50
  // process.argv is a list of strings of commands and args.
56
51
  let argv = require(`minimist`)( process.argv.slice(2), {
57
52
  default: {
@@ -59,10 +54,6 @@ function build_config(argv) {
59
54
  sources: `./docassemble/*/data/sources`,
60
55
  // From playground: `/usr/share/docassemble/files/playgroundsources/<user_id>/<project>/*.feature`
61
56
  // From playground with S3: `/tmp/playgroundsources/<user_id>/<project>/*.feature`
62
-
63
- // // Installed in a user Playground
64
- // url: `<server>/interview?new_session=1&i=docassemble.playground<user_id><project>%3A`,
65
- // // server install: `<server>/interview?new_session=1&i=docassemble.<package>%3Adata/questions/`
66
57
  }
67
58
  });
68
59
 
@@ -38,14 +38,6 @@ session_vars.get_origin = function () {
38
38
  };
39
39
  session_vars.get_user_project_name = function () { return process.env._PROJECT_NAME || null; };
40
40
  session_vars.get_user_id = function () { return process.env._USER_ID || null; };
41
- session_vars.get_tags = function () {
42
- if ( process.env._TAGS ) {
43
- return process.env._TAGS.split(` `);
44
- } else {
45
- return [];
46
- }
47
- };
48
- session_vars.get_sources = function () { return process.env._ALKILN_SOURCES || null; };
49
41
 
50
42
  // More complex logic
51
43
  session_vars.get_server_reload_timeout = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suffolklitlab/alkiln",
3
- "version": "5.1.0-sources-2",
3
+ "version": "5.1.0-sources-4",
4
4
  "description": "Integrated automated end-to-end testing with docassemble, puppeteer, and cucumber.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {