Skip to content

Commit f72c105

Browse files
authored
support to color tiles in output bundles (#10)
1 parent bd134b4 commit f72c105

File tree

9 files changed

+644
-589
lines changed

9 files changed

+644
-589
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules
2-
.DS_Store
2+
.DS_Store
3+
lasso-analyze.html
4+
.vscode/

bin/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ const borderX = `${Array(30).join('-')}\n`;
1010
const input = argv._ || [];
1111
// extract output file.
1212
let outputFile = parseArgs(process.argv).output;
13+
let colors = parseArgs(process.argv).c;
14+
colors = colors ? true : false;
1315

1416
if (input.length > 0) {
1517
input.map((fileName) => {
1618
createBundle({ path: fileName, outputPath: 'lasso-analyze.js' }).createBundle;
17-
lassoAnalyzer('lasso-analyze.js', outputFile);
19+
lassoAnalyzer('lasso-analyze.js', { outputFile, colors });
1820
});
1921
outputFile = outputFile || 'lasso-analyze';
2022
const startLog = `${borderX}` + `${outputFile}.html is created \n` +

0 commit comments

Comments
 (0)