@fluffjs/cli 0.1.6 → 0.1.7
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/Cli.js +7 -0
- package/package.json +1 -1
package/Cli.js
CHANGED
|
@@ -312,6 +312,7 @@ Examples:
|
|
|
312
312
|
for (const stylePath of target.styles) {
|
|
313
313
|
const fullPath = path.resolve(srcDir, stylePath);
|
|
314
314
|
if (fs.existsSync(fullPath) && fs.statSync(fullPath).isFile()) {
|
|
315
|
+
console.log(` ✓ Style: ${stylePath}`);
|
|
315
316
|
styleContents.push(fs.readFileSync(fullPath, 'utf-8'));
|
|
316
317
|
}
|
|
317
318
|
else {
|
|
@@ -320,6 +321,7 @@ Examples:
|
|
|
320
321
|
console.warn(` ⚠ Style not found: ${fullPath}`);
|
|
321
322
|
}
|
|
322
323
|
for (const styleFile of styleFiles) {
|
|
324
|
+
console.log(` ✓ Style: ${path.relative(srcDir, styleFile)}`);
|
|
323
325
|
styleContents.push(fs.readFileSync(styleFile, 'utf-8'));
|
|
324
326
|
}
|
|
325
327
|
}
|
|
@@ -499,6 +501,7 @@ Examples:
|
|
|
499
501
|
for (const stylePath of target.styles) {
|
|
500
502
|
const fullPath = path.resolve(srcDir, stylePath);
|
|
501
503
|
if (fs.existsSync(fullPath) && fs.statSync(fullPath).isFile()) {
|
|
504
|
+
console.log(` ✓ Style: ${stylePath}`);
|
|
502
505
|
styleContents.push(fs.readFileSync(fullPath, 'utf-8'));
|
|
503
506
|
}
|
|
504
507
|
else {
|
|
@@ -507,6 +510,7 @@ Examples:
|
|
|
507
510
|
console.warn(` ⚠ Style not found: ${fullPath}`);
|
|
508
511
|
}
|
|
509
512
|
for (const styleFile of styleFiles) {
|
|
513
|
+
console.log(` ✓ Style: ${path.relative(srcDir, styleFile)}`);
|
|
510
514
|
styleContents.push(fs.readFileSync(styleFile, 'utf-8'));
|
|
511
515
|
}
|
|
512
516
|
}
|
|
@@ -573,6 +577,9 @@ Examples:
|
|
|
573
577
|
}
|
|
574
578
|
generateEntryPoint(srcDir, componentPatterns) {
|
|
575
579
|
const componentFiles = this.findFiles(srcDir, componentPatterns);
|
|
580
|
+
for (const f of componentFiles) {
|
|
581
|
+
console.log(` ✓ Component: ${path.relative(srcDir, f)}`);
|
|
582
|
+
}
|
|
576
583
|
const importDecls = componentFiles.map(f => {
|
|
577
584
|
const relativePath = './' + path.relative(srcDir, f)
|
|
578
585
|
.replace(/\\/g, '/');
|