testeranto 0.79.28 → 0.79.30

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 @@ import readline from "readline";
5
5
  import { glob } from "glob";
6
6
  import esbuildNodeConfiger from "./esbuildConfigs/node.js";
7
7
  import esbuildWebConfiger from "./esbuildConfigs/web.js";
8
- import esbuildFeaturesConfiger from "./esbuildConfigs/features.js";
8
+ // import esbuildFeaturesConfiger from "./esbuildConfigs/features.js";
9
9
  import webHtmlFrame from "./web.html.js";
10
10
  var mode = process.argv[2] === "-dev" ? "DEV" : "PROD";
11
11
  readline.emitKeypressEvents(process.stdin);
@@ -22,9 +22,9 @@ process.stdin.on("keypress", (str, key) => {
22
22
  // const memoryUsage = process.memoryUsage();
23
23
  // console.log("Memory usage:", memoryUsage);
24
24
  // }, 10000); // Check every 10 seconds
25
- let featuresDone, nodeDone, webDone = false;
25
+ let nodeDone, webDone = false;
26
26
  const onFeaturesDone = () => {
27
- featuresDone = true;
27
+ // featuresDone = true;
28
28
  onDone();
29
29
  };
30
30
  const onNodeDone = () => {
@@ -37,12 +37,12 @@ const onWebDone = () => {
37
37
  };
38
38
  const onDone = () => {
39
39
  console.log(JSON.stringify({
40
- featuresDone,
40
+ // featuresDone,
41
41
  nodeDone,
42
42
  webDone,
43
43
  mode,
44
44
  }, null, 2));
45
- if (featuresDone && nodeDone && webDone && mode === "PROD") {
45
+ if (nodeDone && webDone && mode === "PROD") {
46
46
  console.log("Testeranto-EsBuild is all done. Goodbye!");
47
47
  process.exit();
48
48
  }
@@ -97,20 +97,19 @@ export class ITProject {
97
97
  });
98
98
  Promise.all([
99
99
  fs.promises.writeFile(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2)),
100
- esbuild
101
- .context(esbuildFeaturesConfiger(config))
102
- .then(async (featuresContext) => {
103
- if (mode == "DEV") {
104
- await featuresContext.watch();
105
- onFeaturesDone();
106
- }
107
- else {
108
- featuresContext.rebuild().then((v) => {
109
- onFeaturesDone();
110
- });
111
- }
112
- return featuresContext;
113
- }),
100
+ // esbuild
101
+ // .context(esbuildFeaturesConfiger(config))
102
+ // .then(async (featuresContext) => {
103
+ // if (mode == "DEV") {
104
+ // await featuresContext.watch();
105
+ // onFeaturesDone();
106
+ // } else {
107
+ // featuresContext.rebuild().then((v) => {
108
+ // onFeaturesDone();
109
+ // });
110
+ // }
111
+ // return featuresContext;
112
+ // }),
114
113
  esbuild
115
114
  .context(esbuildNodeConfiger(config, nodeEntryPoints))
116
115
  .then(async (nodeContext) => {