milkee 2.1.0 → 2.1.2

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.
Files changed (2) hide show
  1. package/dist/main.js +11 -10
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -86,13 +86,13 @@
86
86
  var error, filesList, i, item, itemPath, items, len, stat;
87
87
  filesList = [];
88
88
  if (!fs.existsSync(targetPath)) {
89
- consola.trace(`Path does not exist, skipping scan ${targetPath}`);
89
+ consola.warn(`Path does not exist, skipping scan ${targetPath}`);
90
90
  return [];
91
91
  }
92
92
  try {
93
93
  stat = fs.statSync(targetPath);
94
94
  if (stat.isDirectory()) {
95
- consola.trace(`Scanning directory: ${targetPath}`);
95
+ consola.start(`Scanning directory: ${targetPath}`);
96
96
  items = fs.readdirSync(targetPath);
97
97
  for (i = 0, len = items.length; i < len; i++) {
98
98
  item = items[i];
@@ -101,7 +101,7 @@
101
101
  }
102
102
  } else if (stat.isFile()) {
103
103
  if (targetPath.endsWith('.js' || targetPath.endsWith('.js.map'))) {
104
- consola.trace(`Found file: ${targetPath}`);
104
+ consola.info(`Found file: ${targetPath}`);
105
105
  filesList.push(targetPath);
106
106
  }
107
107
  }
@@ -289,7 +289,7 @@
289
289
  clearBackups = function() {
290
290
  var backup, e, i, len, results;
291
291
  if (backupFiles.length > 0) {
292
- consola.trace("Cleaning up backups...");
292
+ consola.start("Cleaning up backups...");
293
293
  results = [];
294
294
  for (i = 0, len = backupFiles.length; i < len; i++) {
295
295
  backup = backupFiles[i];
@@ -421,13 +421,14 @@
421
421
  }
422
422
  process.exit(1);
423
423
  return;
424
- setTimeout(function() {
425
- if (milkeeOptions.refresh) {
426
- clearBackups();
427
- }
428
- return consola.success('Compilation completed successfully!');
429
- }, 500);
430
424
  }
425
+ setTimeout(function() {
426
+ if (milkeeOptions.refresh) {
427
+ clearBackups();
428
+ consola.success('Backup clearing completed!');
429
+ }
430
+ return consola.success('Compilation completed successfully!');
431
+ }, 500);
431
432
  if (stdout) {
432
433
  process.stdout.write(stdout);
433
434
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "milkee",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "A simple CoffeeScript build tool with coffee.config.cjs",
5
5
  "main": "dist/main.js",
6
6
  "bin": {