@leverege/build-tools 2.6.11 → 2.8.0

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.
@@ -271,8 +271,24 @@ ahoy.forEach(dir => {
271
271
  });
272
272
  }
273
273
 
274
- valuesOut += `\n${values}`;
275
- valuesOut = doReplacements(valuesOut, over); // If we are going to override then we need to convert it to YAML and
274
+ valuesOut += `\n${values}`; // Augment the default service section of the YAML with settings that
275
+ // usually come from the top level overwhelm.yaml file.
276
+ //
277
+
278
+ const valuesAll = YAML.load(valuesOut);
279
+ const valuesSvc = {
280
+ service: {
281
+ PROJECT_ID: 'OVH:<PROJECT_ID>',
282
+ PROJECT_NAME: 'OVH:<PROJECT_NAME>',
283
+ HOST: 'OVH:<HOST>',
284
+ INGRESS: 'OVH:<INGRESS>'
285
+ }
286
+ };
287
+ const valuesMerged = YAML.dump(deepmerge(valuesSvc, valuesAll), {
288
+ quotingType: '"'
289
+ });
290
+ valuesOut = doReplacements(valuesMerged, over); // DEPRECATED once siren and manheim are platform 4.0
291
+ // If we are going to override then we need to convert it to YAML and
276
292
  // do a deepmerge to combine the values.
277
293
 
278
294
  const valuesOverride = `${dir}/values-override.yaml`;
@@ -286,7 +302,8 @@ ahoy.forEach(dir => {
286
302
  valuesOut = YAML.dump(deepmerge(allValues, overrides), {
287
303
  quotingType: '"'
288
304
  });
289
- }
305
+ } // DEPRECATED
306
+
290
307
 
291
308
  fs.writeFileSync(`${dir}/values.yaml`, valuesOut);
292
309
  }
@@ -168,6 +168,7 @@ const start = async () => {
168
168
  - add / flesh out remaining templates
169
169
  - express-server
170
170
  - library
171
+ - molten-ui
171
172
  - ui-lib
172
173
  - ui-???
173
174
  `);
Binary file
@@ -271,8 +271,24 @@ ahoy.forEach(dir => {
271
271
  });
272
272
  }
273
273
 
274
- valuesOut += `\n${values}`;
275
- valuesOut = doReplacements(valuesOut, over); // If we are going to override then we need to convert it to YAML and
274
+ valuesOut += `\n${values}`; // Augment the default service section of the YAML with settings that
275
+ // usually come from the top level overwhelm.yaml file.
276
+ //
277
+
278
+ const valuesAll = YAML.load(valuesOut);
279
+ const valuesSvc = {
280
+ service: {
281
+ PROJECT_ID: 'OVH:<PROJECT_ID>',
282
+ PROJECT_NAME: 'OVH:<PROJECT_NAME>',
283
+ HOST: 'OVH:<HOST>',
284
+ INGRESS: 'OVH:<INGRESS>'
285
+ }
286
+ };
287
+ const valuesMerged = YAML.dump(deepmerge(valuesSvc, valuesAll), {
288
+ quotingType: '"'
289
+ });
290
+ valuesOut = doReplacements(valuesMerged, over); // DEPRECATED once siren and manheim are platform 4.0
291
+ // If we are going to override then we need to convert it to YAML and
276
292
  // do a deepmerge to combine the values.
277
293
 
278
294
  const valuesOverride = `${dir}/values-override.yaml`;
@@ -286,7 +302,8 @@ ahoy.forEach(dir => {
286
302
  valuesOut = YAML.dump(deepmerge(allValues, overrides), {
287
303
  quotingType: '"'
288
304
  });
289
- }
305
+ } // DEPRECATED
306
+
290
307
 
291
308
  fs.writeFileSync(`${dir}/values.yaml`, valuesOut);
292
309
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.6.11",
3
+ "version": "2.8.0",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -61,7 +61,7 @@
61
61
  "execa": "^5.1.1",
62
62
  "figlet": "^1.5.2",
63
63
  "git-branch": "^2.0.1",
64
- "glob": "^7.1.7",
64
+ "glob": "^7.2.0",
65
65
  "inquirer": "^8.1.5",
66
66
  "js-yaml": "^4.1.0",
67
67
  "ncp": "^2.0.0",
@@ -72,7 +72,7 @@
72
72
  "parse-gitignore": "^1.0.1",
73
73
  "readline-sync": "^1.4.10",
74
74
  "semver": "^7.3.5",
75
- "simple-git": "^2.45.1"
75
+ "simple-git": "^2.46.0"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@babel/cli": "^7.15.7",
@@ -80,6 +80,6 @@
80
80
  "@babel/node": "^7.15.4",
81
81
  "@leverege/babel-preset-leverege-node": "^2.0.0",
82
82
  "@leverege/eslint-config-leverege": "^3.0.1",
83
- "npm": "^7.24.0"
83
+ "npm": "^7.24.1"
84
84
  }
85
85
  }
package/src/overwhelm.js CHANGED
@@ -224,8 +224,24 @@ ahoy.forEach( ( dir ) => {
224
224
  valuesOut += fs.readFileSync( valuesLocal, { encoding : 'utf-8' } )
225
225
  }
226
226
  valuesOut += `\n${values}`
227
- valuesOut = doReplacements( valuesOut, over )
228
227
 
228
+ // Augment the default service section of the YAML with settings that
229
+ // usually come from the top level overwhelm.yaml file.
230
+ //
231
+ const valuesAll = YAML.load( valuesOut )
232
+ const valuesSvc = {
233
+ service : {
234
+ PROJECT_ID : 'OVH:<PROJECT_ID>',
235
+ PROJECT_NAME : 'OVH:<PROJECT_NAME>',
236
+ HOST : 'OVH:<HOST>',
237
+ INGRESS : 'OVH:<INGRESS>',
238
+ }
239
+ }
240
+ const valuesMerged = YAML.dump( deepmerge( valuesSvc, valuesAll ), { quotingType : '"' } )
241
+
242
+ valuesOut = doReplacements( valuesMerged, over )
243
+
244
+ // DEPRECATED once siren and manheim are platform 4.0
229
245
  // If we are going to override then we need to convert it to YAML and
230
246
  // do a deepmerge to combine the values.
231
247
  const valuesOverride = `${dir}/values-override.yaml`
@@ -236,6 +252,7 @@ ahoy.forEach( ( dir ) => {
236
252
  const allValues = YAML.load( valuesOut )
237
253
  valuesOut = YAML.dump( deepmerge( allValues, overrides ), { quotingType : '"' } )
238
254
  }
255
+ // DEPRECATED
239
256
 
240
257
  fs.writeFileSync( `${dir}/values.yaml`, valuesOut )
241
258
  }