not-node 5.0.3 → 5.0.4
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/bin/not-builder.js +5 -4
- package/package.json +1 -1
package/bin/not-builder.js
CHANGED
|
@@ -31,7 +31,8 @@ let opts = {
|
|
|
31
31
|
'to': argv.to || false,
|
|
32
32
|
'config': argv.config || './project.manifest.json',
|
|
33
33
|
'rollup': argv.rollup || path.join(process.cwd(),'./node_modules/.bin/rollup'),
|
|
34
|
-
'role': argv.role || null
|
|
34
|
+
'role': argv.role || null,
|
|
35
|
+
'verbose': argv.verbose || false
|
|
35
36
|
},
|
|
36
37
|
configName = path.join(process.cwd(), opts.config),
|
|
37
38
|
config = {};
|
|
@@ -258,7 +259,7 @@ async function loadNPMModule(){
|
|
|
258
259
|
list.push(...commons);
|
|
259
260
|
result[role].templates.push(...list);
|
|
260
261
|
}
|
|
261
|
-
console.log('result', result);
|
|
262
|
+
opts.verbose && console.log('result', result);
|
|
262
263
|
}else{
|
|
263
264
|
console.info('...no templates');
|
|
264
265
|
}
|
|
@@ -275,7 +276,7 @@ async function loadNPMModule(){
|
|
|
275
276
|
list.push(...commons);
|
|
276
277
|
result[role].styles.push(...list);
|
|
277
278
|
}
|
|
278
|
-
console.log('result', result);
|
|
279
|
+
opts.verbose && console.log('result', result);
|
|
279
280
|
}else{
|
|
280
281
|
console.info('...no styles');
|
|
281
282
|
}
|
|
@@ -491,7 +492,7 @@ async function build_Server(pathToRoot, roles, targetName, targetManifest){
|
|
|
491
492
|
}else{
|
|
492
493
|
console.info('no modules in manifest');
|
|
493
494
|
}
|
|
494
|
-
console.log('List:', list);
|
|
495
|
+
opts.verbose && console.log('List:', list);
|
|
495
496
|
////forming index.js and rollup.js
|
|
496
497
|
for(let i = 0; i < roles.length; i++){
|
|
497
498
|
const role = roles[i];
|