@k4rnival/selmin
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -14,21 +14,21 @@ #!/usr/bin/env node | ||
const main_1 = require("../lib/main"); | ||
const args = yargs.option('files', { | ||
alias: 'f', | ||
description: 'fileglob to examine, accepts a glob pattern', | ||
demandOption: true | ||
const args = yargs | ||
.option("files", { | ||
alias: "f", | ||
description: "fileglob to examine, accepts a glob pattern", | ||
demandOption: true, | ||
}) | ||
.option('dry-run', { | ||
alias: 'd', | ||
description: 'do not persist output files' | ||
.option("dry-run", { | ||
alias: "d", | ||
description: "do not persist output files", | ||
}) | ||
.option('prefix', { | ||
alias: 'p', | ||
description: 'prefix to look for before minimizing', | ||
demandOption: true | ||
.option("prefix", { | ||
alias: "p", | ||
description: "prefix to look for before minimizing", | ||
demandOption: true, | ||
}) | ||
.option('log-gain', { | ||
alias: 'l', | ||
description: 'log size gained on selector replacement' | ||
}) | ||
.argv; | ||
.option("log-gain", { | ||
alias: "l", | ||
description: "log size gained on selector replacement", | ||
}).argv; | ||
(() => __awaiter(this, void 0, void 0, function* () { | ||
@@ -39,6 +39,7 @@ const input = { | ||
logGain: args.l, | ||
dryRun: args.d | ||
dryRun: args.d, | ||
}; | ||
console.log(input); | ||
return yield main_1.main(input); | ||
}))(); | ||
//# sourceMappingURL=index.js.map |
@@ -15,3 +15,3 @@ "use strict"; | ||
for (const file of files) { | ||
console.warn("ohohoh"); | ||
console.log("extracting data from", file); | ||
superFile = superFile + "\n" + (yield fs.readFile(file)); | ||
@@ -18,0 +18,0 @@ } |
@@ -26,3 +26,5 @@ "use strict"; | ||
superFile = yield build_superfile_1.buildSuperfile(files); | ||
console.log("creating replaceList"); | ||
replaceList = build_replace_list_1.buildReplaceList(superFile, input.prefix); | ||
console.log("getting results"); | ||
result = yield apply_replace_list_1.applyReplaceList(files, replaceList, input.logGain); | ||
@@ -29,0 +31,0 @@ if (!input.dryRun) { |
{ | ||
"name": "@k4rnival/selmin", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "minify selectors in prod files", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25409
407