X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fotf.git;a=blobdiff_plain;f=otf-frontend%2FaddPug.js;fp=otf-frontend%2FaddPug.js;h=bb0f5e2ae5c5bd380a786dacc1187f8ecf6e949a;hp=0000000000000000000000000000000000000000;hb=321c6b595a3f05db9e4327c16af85c16752f9ec2;hpb=29cd8447ada8036b91ad2ca75a3c1c3fe0d8ba55 diff --git a/otf-frontend/addPug.js b/otf-frontend/addPug.js new file mode 100644 index 0000000..bb0f5e2 --- /dev/null +++ b/otf-frontend/addPug.js @@ -0,0 +1,15 @@ +const fs = require('fs'); +const { execSync } = require('child_process'); +const path = './ng-add-pug-loader.js'; + +try { + if (!fs.existsSync(path)) { + console.log('ng add ng-cli-pug-loader@0.1.7') + execSync('ng add ng-cli-pug-loader@0.1.7'); + } + console.log('node ' + path); + execSync('node ' + path); + +} catch (err) { + console.log(err); +}