@leverege/build-tools 2.20.0-beta.4 → 2.20.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.
@@ -8,7 +8,6 @@ const fs = require('fs');
8
8
  const untarConfigTarball = async (subdir, tarball) => {
9
9
  if (fs.existsSync(subdir)) {
10
10
  process.chdir(subdir);
11
- await execa('ls');
12
11
  await execa('tar', ['xf', tarball]);
13
12
  }
14
13
  };
@@ -162,16 +162,15 @@ const start = async () => {
162
162
  await gitter.build(buildSpec);
163
163
  console.log(chalk.green.bold`
164
164
  Repository setup complete.
165
- ` // chalk.green.bold`Still to work out:`,
166
- // chalk.yellow`
167
- // - figure out better approach for partial file read on transform
168
- // - add / flesh out remaining templates
169
- // - express-server
170
- // - library
171
- // - ui-lib
172
- // - ui-???
173
- // `
174
- );
165
+
166
+ Still to work out:`, chalk.yellow`
167
+ - figure out better approach for partial file read on transform
168
+ - add / flesh out remaining templates
169
+ - express-server
170
+ - library
171
+ - ui-lib
172
+ - ui-???
173
+ `);
175
174
  };
176
175
 
177
176
  exports.start = start;
Binary file
@@ -75,10 +75,10 @@ class Gitter {
75
75
  message: 'Where will the repository be hosted?',
76
76
  choices: ['bitbucket', 'github', 'local']
77
77
  }, {
78
- type: 'input',
78
+ type: 'list',
79
79
  name: 'git.owner',
80
80
  message: 'Who is the owner of the git repository?',
81
- default: 'leverege',
81
+ choices: ['leverege', 'cox2m'],
82
82
  when: answer => {
83
83
  return answer.git.host !== 'local';
84
84
  }
@@ -127,16 +127,21 @@ class Gitter {
127
127
  const spinner = new Ora();
128
128
 
129
129
  if (buildSpec.config.npmCheck) {
130
- // console.log( chalk.keyword( 'orange' ).bold( `
131
- // Running npm-check-updates interactively to verify all of the package
132
- // versions in package.json are up to date prior to committing everything.` ),
133
- // chalk.yellow.bold( `
134
- // Pay attention! You may be asked to answer Y/n if any are out of date!` )
135
- // )
136
- // spinner.start( 'Preparing for dependency checks prior to install.' )
137
- // await pause( 3000 )
138
- // spinner.succeed()
139
- // setup husky
130
+ console.log(chalk.keyword('orange').bold(`
131
+ Running npm-check-updates interactively to verify all of the package
132
+ versions in package.json are up to date prior to committing everything.`), chalk.yellow.bold(`
133
+
134
+ Pay attention! You may be asked to answer Y/n if any are out of date!`));
135
+ spinner.start('Preparing for dependency checks prior to install.');
136
+ await pause(3000);
137
+ spinner.succeed();
138
+ await execa('npm', ['install', 'npm-check-updates'], {
139
+ stdio: 'inherit'
140
+ });
141
+ await execa('npm', ['run', 'npm-check-updates'], {
142
+ stdio: 'inherit'
143
+ }); // setup husky
144
+
140
145
  await execa('npm', ['install', 'husky', '--save-dev'], {
141
146
  stdio: 'inherit'
142
147
  });
@@ -53,7 +53,7 @@ class Templates {
53
53
  }
54
54
 
55
55
  needsAnIngestionPort(template) {
56
- return template.type === 'ingestor' && template.subType !== 'PubSub' && template.subType !== 'HTTP';
56
+ return template.type === 'ingestor' && template.subType !== 'PubSub';
57
57
  }
58
58
 
59
59
  async runInquiry(spec) {
@@ -112,17 +112,16 @@ class Templates {
112
112
  },
113
113
  },
114
114
  */
115
- // {
116
- // type : 'confirm',
117
- // name : 'template.helmify',
118
- // message : 'Run helmify to generate Helm Charts?',
119
- // default : false,
120
- // when : ( answers ) => {
121
- // const template = this.lookupTemplateByType( answers.template.type )
122
- // return typeof template.helm !== 'undefined'
123
- // },
124
- // },
125
115
  {
116
+ type: 'confirm',
117
+ name: 'template.helmify',
118
+ message: 'Run helmify to generate Helm Charts?',
119
+ default: true,
120
+ when: answers => {
121
+ const template = this.lookupTemplateByType(answers.template.type);
122
+ return typeof template.helm !== 'undefined';
123
+ }
124
+ }, {
126
125
  type: 'list',
127
126
  name: 'dotenv.logConfig',
128
127
  message: 'Your preferred logging method (.env)?',
@@ -8,7 +8,6 @@ const fs = require('fs');
8
8
  const untarConfigTarball = async (subdir, tarball) => {
9
9
  if (fs.existsSync(subdir)) {
10
10
  process.chdir(subdir);
11
- await execa('ls');
12
11
  await execa('tar', ['xf', tarball]);
13
12
  }
14
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.20.0-beta.4",
3
+ "version": "2.20.0",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -64,7 +64,7 @@
64
64
  "inquirer": "^8.2.4",
65
65
  "js-yaml": "^4.1.0",
66
66
  "ncp": "^2.0.0",
67
- "npm-registry-fetch": "^13.3.0",
67
+ "npm-registry-fetch": "^13.3.1",
68
68
  "open": "^8.4.0",
69
69
  "ora": "^5.4.1",
70
70
  "parse-gitignore": "^2.0.0",
@@ -79,6 +79,6 @@
79
79
  "@babel/node": "^7.18.10",
80
80
  "@leverege/babel-preset-leverege-node": "^2.0.0",
81
81
  "@leverege/eslint-config-leverege": "^3.0.1",
82
- "npm": "^8.17.0"
82
+ "npm": "^8.18.0"
83
83
  }
84
84
  }
package/src/helmup CHANGED
@@ -1,7 +1,3 @@
1
- #!/bin/bash
2
- #
3
- # This script is used to ease the pain of transition testing to chart museum
4
- # for adding / updating deployments on a fluster.
5
1
  #
6
2
  # printf "\n***** RUNNING LOCALLY *****\n" && sleep 2
7
3
 
@@ -161,32 +157,18 @@ function installGrafana() {
161
157
  function installRedis() {
162
158
  showInstalling "Redis Network Cache"
163
159
  addBitnamiRepo latest
164
- [ -z "$REDIS_HELM_CHART" ] && REDIS_HELM_CHART="16" # latest breaks us => "v14+"
160
+ [ -z "$REDIS_HELM_CHART" ] && REDIS_HELM_CHART="17" # latest chart 17 is redis v7
165
161
  helm upgrade --install redis bitnami/redis \
166
162
  --version $REDIS_HELM_CHART \
167
163
  -f - <<REDIS_CHART_MODS
168
- auth:
169
- enabled: false
170
-
171
164
  global:
172
165
  storageClass: ssd
173
166
 
174
- metrics:
175
- enabled: true
176
-
177
- networkPolicy:
178
- enabled: true
167
+ auth:
168
+ enabled: false
169
+ sentinel: false
179
170
 
180
171
  master:
181
- persistence:
182
- size: 8Gi # 8Gi is default
183
-
184
- tolerations:
185
- - key: "database"
186
- operator: "Equal"
187
- value: "true"
188
- effect: "NoSchedule"
189
-
190
172
  affinity:
191
173
  nodeAffinity:
192
174
  requiredDuringSchedulingIgnoredDuringExecution:
@@ -197,25 +179,29 @@ master:
197
179
  values:
198
180
  - database
199
181
 
200
- replica:
201
- persistence:
202
- size: 8Gi # 8Gi is default
203
-
204
182
  tolerations:
205
183
  - key: "database"
206
184
  operator: "Equal"
207
185
  value: "true"
208
186
  effect: "NoSchedule"
209
187
 
210
- affinity:
211
- nodeAffinity:
212
- requiredDuringSchedulingIgnoredDuringExecution:
213
- nodeSelectorTerms:
214
- - matchExpressions:
215
- - key: target-env
216
- operator: In
217
- values:
218
- - database
188
+ persistence:
189
+ size: 8Gi # 8Gi is default
190
+
191
+ sentinel:
192
+ enabled: true
193
+
194
+ networkPolicy:
195
+ enabled: true
196
+ allowExternal: false
197
+ ingressNSMatchLabels:
198
+ redis: external
199
+ ingressNSPodMatchLabels:
200
+ redis-client: true
201
+
202
+ metrics:
203
+ enabled: true
204
+
219
205
  REDIS_CHART_MODS
220
206
  if [[ $? -ne 0 ]];
221
207
  then
@@ -6,12 +6,11 @@ const fs = require( 'fs' )
6
6
  const untarConfigTarball = async ( subdir, tarball ) => {
7
7
  if ( fs.existsSync( subdir ) ) {
8
8
  process.chdir( subdir )
9
- await execa( 'ls' )
10
9
  await execa( 'tar', [ 'xf', tarball ] )
11
10
  }
12
11
  }
13
12
 
14
- const awaiter = async ( subdir, tarball ) => {
13
+ const awaiter = async ( subdir, tarball) => {
15
14
  await untarConfigTarball( subdir, tarball )
16
15
  }
17
16