@makano/rew 1.2.2 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/rew/cli/cli.js +0 -6
- package/lib/rew/cli/utils.js +1 -9
- package/package.json +1 -1
package/lib/rew/cli/cli.js
CHANGED
@@ -243,7 +243,6 @@ yargs(hideBin(process.argv))
|
|
243
243
|
describe: 'Package of the app to uninstall',
|
244
244
|
type: 'string',
|
245
245
|
}).option('all', {
|
246
|
-
alias: 'a',
|
247
246
|
describe: 'Remove the configs as well',
|
248
247
|
type: 'boolean',
|
249
248
|
});
|
@@ -311,11 +310,6 @@ yargs(hideBin(process.argv))
|
|
311
310
|
describe: 'Translate to js',
|
312
311
|
type: 'boolean',
|
313
312
|
})
|
314
|
-
.option('single', {
|
315
|
-
alias: 's',
|
316
|
-
describe: 'Build single file(don\'t build imports)',
|
317
|
-
type: 'boolean',
|
318
|
-
})
|
319
313
|
.option('remove', {
|
320
314
|
alias: 'r',
|
321
315
|
describe: 'Remove all coffee',
|
package/lib/rew/cli/utils.js
CHANGED
@@ -181,14 +181,6 @@ module.exports = {
|
|
181
181
|
file: path.join(installPath, c.install.build.file)
|
182
182
|
});
|
183
183
|
}
|
184
|
-
if(c.install.commands){
|
185
|
-
for(let command of c.install.commands){
|
186
|
-
execSync(command.replace(/\$installPath/g, installPath));
|
187
|
-
}
|
188
|
-
}
|
189
|
-
if(c.install.file){
|
190
|
-
run(path.join(installPath, c.install.file));
|
191
|
-
}
|
192
184
|
}
|
193
185
|
rl.close();
|
194
186
|
} else {
|
@@ -244,7 +236,7 @@ module.exports = {
|
|
244
236
|
|
245
237
|
function processFile(filePath, importsArray) {
|
246
238
|
const content = readFile(filePath);
|
247
|
-
const imports =
|
239
|
+
const imports = extractImports(content);
|
248
240
|
|
249
241
|
imports.forEach((importStatement) => {
|
250
242
|
const importedFilePath = path.resolve(path.dirname(filePath), importStatement.url);
|