at-builder 1.1.7 → 1.1.9
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/eslint.config.mjs +12 -0
- package/package.json +8 -6
- package/puppeteer.js +3 -5
- package/webpack.config.js +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import pluginJs from "@eslint/js";
|
|
3
|
+
import tseslint from "typescript-eslint";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/** @type {import('eslint').Linter.Config[]} */
|
|
7
|
+
export default [
|
|
8
|
+
{files: ["**/*.{js,mjs,cjs,ts}"]},
|
|
9
|
+
{languageOptions: { globals: globals.browser }},
|
|
10
|
+
pluginJs.configs.recommended,
|
|
11
|
+
...tseslint.configs.recommended,
|
|
12
|
+
];
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "at-builder",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"main": "bin/index.js",
|
|
5
5
|
"bin": {
|
|
6
6
|
"atb": "bin/index.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "tsc -w",
|
|
10
|
-
"build-prod": "NODE_ENV=production
|
|
10
|
+
"build-prod": "cross-env NODE_ENV=production webpack",
|
|
11
11
|
"dev": "webpack -- -w",
|
|
12
12
|
"dev-puppeteer": "webpack -- -w & npm run puppeteer",
|
|
13
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"author": "Upendra Sengar <upendrasengar456@gmail.com>",
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@babel/core": "^7.26.
|
|
21
|
-
"@babel/eslint-parser": "^7.
|
|
20
|
+
"@babel/core": "^7.26.9",
|
|
21
|
+
"@babel/eslint-parser": "^7.26.8",
|
|
22
22
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
23
23
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
24
24
|
"@babel/plugin-transform-runtime": "^7.18.9",
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
"css-loader": "^7.1.2",
|
|
37
37
|
"dotenv": "^16.0.0",
|
|
38
38
|
"eslint": "^9.20.1",
|
|
39
|
-
"eslint-loader": "^4.0.2",
|
|
40
39
|
"eslint-webpack-plugin": "^4.2.0",
|
|
41
40
|
"inquirer": "^12.4.1",
|
|
42
41
|
"plop": "^4.0.1",
|
|
@@ -60,7 +59,10 @@
|
|
|
60
59
|
"lib": "lib"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
|
-
"@babel/runtime": "^7.26.7"
|
|
62
|
+
"@babel/runtime": "^7.26.7",
|
|
63
|
+
"@eslint/js": "^9.20.0",
|
|
64
|
+
"globals": "^15.15.0",
|
|
65
|
+
"typescript-eslint": "^8.24.1"
|
|
64
66
|
},
|
|
65
67
|
"repository": {
|
|
66
68
|
"type": "git",
|
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;
|