Browse Source

分支部署构建相关

MaiXinRong 3 years ago
parent
commit
1644b5a602
1 changed files with 18 additions and 0 deletions
  1. 18 0
      branch/minusNoValue.js

+ 18 - 0
branch/minusNoValue.js

@@ -0,0 +1,18 @@
+
+'use strict';
+
+/**
+ *
+ *
+ * @author Mai
+ * @date
+ * @version
+ */
+
+const fs = require('fs');
+const path = require('path');
+const filename = path.join(path.resolve(__dirname, '..'), 'package.json');
+const packageJSON = JSON.parse(fs.readFileSync(filename, 'utf8'));
+packageJSON.name = 'calc_minusNoValue' ;
+packageJSON.scripts['start-qa-minus'] = "egg-scripts start --daemon --port 7006";
+fs.writeFileSync(filename, JSON.stringify(packageJSON, '', '\t'));