milkee 2.4.2 → 3.0.0

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.
@@ -240,7 +240,13 @@ compile = async function() {
240
240
  process.exit(1);
241
241
  return;
242
242
  }
243
- setTimeout(async function() {
243
+ if (stdout) {
244
+ process.stdout.write(stdout);
245
+ }
246
+ if (stderr && !error) {
247
+ process.stderr.write(stderr);
248
+ }
249
+ return setTimeout(async function() {
244
250
  if (milkeeOptions.refresh) {
245
251
  clearBackups(backupFiles);
246
252
  consola.success('Backup clearing completed!');
@@ -255,15 +261,10 @@ compile = async function() {
255
261
  return;
256
262
  }
257
263
  }
258
- return consola.success('Compilation completed successfully!');
264
+ consola.success('Compilation completed successfully!');
265
+ // Run plugins after all milkee.options are completed
266
+ return runPlugins(config, {...(config.options || {})}, stdout, stderr);
259
267
  }, 500);
260
- if (stdout) {
261
- process.stdout.write(stdout);
262
- }
263
- if (stderr && !error) {
264
- process.stderr.write(stderr);
265
- }
266
- return runPlugins(config, {...(config.options || {})}, stdout, stderr);
267
268
  });
268
269
  }
269
270
  } catch (error1) {
@@ -99,7 +99,7 @@ copyDocs = function(src, dest) {
99
99
  return true;
100
100
  };
101
101
 
102
- PLUGIN_KEYWORDS = ['milkee', 'coffeescript', 'coffee', 'ext', 'plugin', 'milkee-plugin'];
102
+ PLUGIN_KEYWORDS = ['milkee', 'coffeescript', 'coffee', 'plugin', 'milkee-plugin'];
103
103
 
104
104
  // Update package.json
105
105
  updatePackageJson = function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "milkee",
3
- "version": "2.4.2",
3
+ "version": "3.0.0",
4
4
  "description": "A simple CoffeeScript build tool with coffee.config.cjs",
5
5
  "main": "dist/main.js",
6
6
  "bin": {
@@ -29,6 +29,8 @@ module.exports = {
29
29
  // refresh: false,
30
30
  // Before compiling, confirm "Do you want to Continue?"
31
31
  // confirm: false,
32
+ // After compiling, copy non-coffee files from entry to output directory. (Only works when options.join is false)
33
+ // copy: false,
32
34
  },
33
35
  plugins: []
34
36
  },