Skip to content

Commit

Permalink
support to color tiles in output bundles (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
pajaydev authored Feb 12, 2020
1 parent bd134b4 commit f72c105
Show file tree
Hide file tree
Showing 9 changed files with 644 additions and 589 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
.DS_Store
.DS_Store
lasso-analyze.html
.vscode/
4 changes: 3 additions & 1 deletion bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ const borderX = `${Array(30).join('-')}\n`;
const input = argv._ || [];
// extract output file.
let outputFile = parseArgs(process.argv).output;
let colors = parseArgs(process.argv).c;
colors = colors ? true : false;

if (input.length > 0) {
input.map((fileName) => {
createBundle({ path: fileName, outputPath: 'lasso-analyze.js' }).createBundle;
lassoAnalyzer('lasso-analyze.js', outputFile);
lassoAnalyzer('lasso-analyze.js', { outputFile, colors });
});
outputFile = outputFile || 'lasso-analyze';
const startLog = `${borderX}` + `${outputFile}.html is created \n` +
Expand Down
Loading

0 comments on commit f72c105

Please sign in to comment.