milkee 0.0.12 → 0.0.14
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/dist/main.js +4 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -23,8 +23,8 @@
|
|
23
23
|
CONFIG_PATH = path.join(CWD, CONFIG_FILE);
|
24
24
|
|
25
25
|
checkCoffee = function() {
|
26
|
-
var error, pkgData, pkgFile, ref, ref1;
|
27
|
-
PKG_PATH
|
26
|
+
var PKG_PATH, error, pkgData, pkgFile, ref, ref1;
|
27
|
+
PKG_PATH = path.join(CWD, 'package.json');
|
28
28
|
if (fs.existsSync(PKG_PATH)) {
|
29
29
|
try {
|
30
30
|
pkgFile = fs.readFileSync(PKG_PATH, 'utf-8');
|
@@ -81,7 +81,7 @@
|
|
81
81
|
};
|
82
82
|
|
83
83
|
compile = async function() {
|
84
|
-
var command, commandParts, compilerProcess, config,
|
84
|
+
var command, commandParts, compilerProcess, config, enabledOptions, enabledOptonsList, error, i, item, itemPath, items, len, milkee, milkeeOptions, options, otherOptionStrings, summary, targetDir, toContinue;
|
85
85
|
checkCoffee();
|
86
86
|
if (!fs.existsSync(CONFIG_PATH)) {
|
87
87
|
consola.error(`\`${CONFIG_FILE}\` not found in this directory: ${CWD}`);
|
@@ -101,7 +101,7 @@
|
|
101
101
|
summary = [];
|
102
102
|
summary.push(`Entry: \`${config.entry}\``);
|
103
103
|
summary.push(`Output: \`${config.output}\``);
|
104
|
-
|
104
|
+
enabledOptions = Object.keys(options).filter(function(key) {
|
105
105
|
return options[key];
|
106
106
|
});
|
107
107
|
if (enabledOptons.length > 0) {
|