bimba-cli 0.1.3 → 0.1.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/index.ts +3 -13
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -63,25 +63,15 @@ if(flags.help) {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
// no entrypoint
|
|
67
|
-
if(!flags.entry) {
|
|
66
|
+
// no entrypoint or outdir
|
|
67
|
+
if(!flags.entry || !flags.outdir) {
|
|
68
68
|
console.log("");
|
|
69
|
-
console.log("
|
|
69
|
+
console.log("You should provide entrypoint and the output dir: "+theme.flags('bimba file.imba --outdir public'));
|
|
70
70
|
console.log("For more information: "+theme.flags('--help'));
|
|
71
71
|
console.log("");
|
|
72
72
|
process.exit(1);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
// no outdir
|
|
76
|
-
if(flags.outdir){
|
|
77
|
-
console.log("");
|
|
78
|
-
console.log("No output dir is provided: "+theme.flags('bimba file.imba --outdir public'));
|
|
79
|
-
console.log("For more information: "+theme.flags('--help'));
|
|
80
|
-
console.log("");
|
|
81
|
-
process.exit(1);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
75
|
// build
|
|
86
76
|
bundle();
|
|
87
77
|
watch(bundle);
|