|
|
@@ -149,6 +149,11 @@ public class GenCodeController {
|
|
|
if (record.getGenRouter()) {
|
|
|
genCodeService.genRouter(record);
|
|
|
}
|
|
|
+
|
|
|
+ Process process = new ProcessBuilder().command("npm", "run", "lint")
|
|
|
+ .directory(Paths.get(record.getRouterPath()).getParent().toFile())
|
|
|
+ .start();
|
|
|
+ process.waitFor();
|
|
|
}
|
|
|
|
|
|
//
|