updating helm/docker files and database config files
[it/otf.git] / otf-frontend / addPug.js
diff --git a/otf-frontend/addPug.js b/otf-frontend/addPug.js
new file mode 100644 (file)
index 0000000..bb0f5e2
--- /dev/null
@@ -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);
+}