@lmjs/cli 1.0.46 → 1.0.47
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/lib/fcs.js +37 -37
- package/package.json +1 -1
package/lib/fcs.js
CHANGED
|
@@ -252,44 +252,44 @@ function getAllFiles(dirPath, arrayOfFiles = {}, mini = false) {
|
|
|
252
252
|
.split("\\")
|
|
253
253
|
.join("/")
|
|
254
254
|
).toString("base64");
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
255
|
+
if (mini) {
|
|
256
|
+
var result = _min(fs.readFileSync(filePath, { encoding: "utf8" }), {
|
|
257
|
+
removeAttributeQuotes: false,
|
|
258
|
+
caseSensitive: true,
|
|
259
|
+
collapseWhitespace: true,
|
|
260
|
+
collapseInlineTagWhitespace: true,
|
|
261
|
+
conservativeCollapse: true,
|
|
262
|
+
removeComments: true,
|
|
263
|
+
minifyJS: true,
|
|
264
|
+
minifyCSS: false,
|
|
265
|
+
processConditionalComments: true,
|
|
266
|
+
collapseBooleanAttributes: false,
|
|
267
|
+
decodeEntities: false,
|
|
268
|
+
html5: true,
|
|
269
|
+
includeAutoGeneratedTags: true,
|
|
270
|
+
keepClosingSlash: true,
|
|
271
|
+
maxLineLength: null,
|
|
272
|
+
minifyURLs: false,
|
|
273
|
+
preserveLineBreaks: false,
|
|
274
|
+
preventAttributesEscaping: false,
|
|
275
|
+
processScripts: ["text/html"],
|
|
276
|
+
quoteCharacter: "",
|
|
277
|
+
removeEmptyAttributes: true,
|
|
278
|
+
removeEmptyElements: false,
|
|
279
|
+
removeOptionalTags: true,
|
|
280
|
+
removeRedundantAttributes: true,
|
|
281
|
+
removeScriptTypeAttributes: false,
|
|
282
|
+
removeStyleLinkTypeAttributes: true,
|
|
283
|
+
removeTagWhitespace: false,
|
|
284
|
+
sortAttributes: false,
|
|
285
|
+
sortClassName: false,
|
|
286
|
+
trimCustomFragments: true,
|
|
287
|
+
useShortDoctype: true,
|
|
288
|
+
continueOnParseError: true
|
|
289
|
+
});
|
|
290
|
+
} else {
|
|
291
291
|
var result = fs.readFileSync(filePath, { encoding: "utf8" });
|
|
292
|
-
|
|
292
|
+
}
|
|
293
293
|
arrayOfFiles[fileKey] = result;
|
|
294
294
|
}
|
|
295
295
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmjs/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
4
4
|
"description": "Command line interface for super fast LumenJS development. 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
|
"bin": {
|
|
6
6
|
"lm": "./bin/commands.js",
|