at-builder 1.1.7 → 1.1.8

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": "at-builder",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "main": "bin/index.js",
5
5
  "bin": {
6
6
  "atb": "bin/index.js"
package/puppeteer.js CHANGED
@@ -1,11 +1,11 @@
1
+ const path = require('path');
2
+ const { executionPath } = process.env;
1
3
  require('dotenv').config({ path: path.join(executionPath, ".env") });
2
4
  const puppeteer = require('puppeteer');
3
- const path = require('path');
4
5
  const fs = require('fs');
5
6
  const chokidar = require('chokidar');
6
7
  //const watchConfig = "./../watch-config.json";
7
8
 
8
- const { executionPath } = process.env;
9
9
  let watchConfig = '';
10
10
  try {
11
11
  watchConfig = path.join(executionPath, "watch-config.json");
@@ -15,8 +15,6 @@ catch (e) {
15
15
  }
16
16
 
17
17
 
18
- console.log("executionPath", executionPath);
19
-
20
18
 
21
19
  const watcher = chokidar.watch("file", {
22
20
  ignored: /^\node_modules/,
@@ -114,7 +112,7 @@ const watcher = chokidar.watch("file", {
114
112
 
115
113
  get getScript() {
116
114
  const env = this.getEnvConfig;
117
- console.log("Env", env, "Process Env", process.env);
115
+ // console.log("Env", env, "Process Env", process.env);
118
116
  var filePath = path.join(process.env.executionPath, "Activities", process.env.ACTIVITY_FOLDER_NAME, env.VARIATION, "dist", "build.js");
119
117
  const scriptContent = fs.readFileSync(filePath, 'utf-8');
120
118
  return scriptContent;
package/webpack.config.js CHANGED
@@ -224,7 +224,7 @@ module.exports = {
224
224
  options: {
225
225
  injectType: 'singletonStyleTag',
226
226
  attributes: {
227
- id: "ddo-styles"
227
+ id: "ddo-styles" //TO_DO this should load from env or watch config
228
228
  }
229
229
  }
230
230
  },