@lmjs/cli 1.0.27 → 1.0.29

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.
Files changed (3) hide show
  1. package/index.js +0 -4
  2. package/lib/fcs.js +11 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -154,9 +154,6 @@ var _vcData = {
154
154
  },
155
155
  });
156
156
 
157
- // spinner.succeed("Signing & Securing App");
158
- // return;
159
-
160
157
  let token_ = r.token;
161
158
  let js_ = "";
162
159
 
@@ -299,7 +296,6 @@ var _beaTn = "` +
299
296
  fs.unlinkSync(dest + path.sep + "src" + path.sep + "app.js");
300
297
  }
301
298
 
302
- // fcs.copyDir(projectPath + path.sep + `src` + path.sep + `css`, dest + path.sep + "src" + path.sep + "css");
303
299
  fcs.copyDir(
304
300
  projectPath + path.sep + "src" + path.sep + "js",
305
301
  dest + path.sep + "src" + path.sep + "js",
package/lib/fcs.js CHANGED
@@ -10,6 +10,16 @@ const BEA_Libs = {
10
10
  exports.getAllFiles = getAllFiles;
11
11
  exports.ucwords = ucwords;
12
12
 
13
+ function _mini(st) {
14
+ for (const key in st) {
15
+ st[key] = st[key].replace(/\/\*[\s\S]*?\*\/|(?<=[^:])\/\/.*|^\/\/.*/g, "");
16
+ st[key] = st[key].replace(/(\r?\n|\n)/g, "");
17
+ st[key] = st[key].replace(/(\t)/g, "");
18
+ st[key] = st[key].replace(/\s\s+/g, " ");
19
+ }
20
+ return st;
21
+ }
22
+
13
23
  function getAllFiles(dirPath, arrayOfFiles) {
14
24
  files = fs.readdirSync(dirPath)
15
25
  arrayOfFiles = arrayOfFiles || {}
@@ -22,7 +32,7 @@ function getAllFiles(dirPath, arrayOfFiles) {
22
32
  arrayOfFiles[fileKey] = fs.readFileSync(filePath, { encoding: 'utf8' });
23
33
  }
24
34
  });
25
- return arrayOfFiles;
35
+ return _mini(arrayOfFiles);
26
36
  }
27
37
 
28
38
  exports.getConfig = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lmjs/cli",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "LumenJS is a tiny robust reactive javascript framework for building scalable and high-performant web applications and web user interfaces, be it simple or complex, with standard HTML, CSS and JavaScript",
5
5
  "main": "./index.js",
6
6
  "bin": {