@leverege/build-tools 2.19.3 → 2.20.0-beta.3

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,6 +8,7 @@ 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');
11
12
  await execa('tar', ['xf', tarball]);
12
13
  }
13
14
  };
@@ -162,15 +162,16 @@ const start = async () => {
162
162
  await gitter.build(buildSpec);
163
163
  console.log(chalk.green.bold`
164
164
  Repository setup complete.
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
- `);
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
+ );
174
175
  };
175
176
 
176
177
  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: 'list',
78
+ type: 'input',
79
79
  name: 'git.owner',
80
80
  message: 'Who is the owner of the git repository?',
81
- choices: ['leverege', 'cox2m'],
81
+ default: 'leverege',
82
82
  when: answer => {
83
83
  return answer.git.host !== 'local';
84
84
  }
@@ -127,21 +127,16 @@ 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.`), 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
-
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
145
140
  await execa('npm', ['install', 'husky', '--save-dev'], {
146
141
  stdio: 'inherit'
147
142
  });
@@ -53,7 +53,7 @@ class Templates {
53
53
  }
54
54
 
55
55
  needsAnIngestionPort(template) {
56
- return template.type === 'ingestor' && template.subType !== 'PubSub';
56
+ return template.type === 'ingestor' && template.subType !== 'PubSub' && template.subType !== 'HTTP';
57
57
  }
58
58
 
59
59
  async runInquiry(spec) {
@@ -112,16 +112,17 @@ 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
+ // },
115
125
  {
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
- }, {
125
126
  type: 'list',
126
127
  name: 'dotenv.logConfig',
127
128
  message: 'Your preferred logging method (.env)?',
@@ -8,6 +8,7 @@ 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');
11
12
  await execa('tar', ['xf', tarball]);
12
13
  }
13
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.19.3",
3
+ "version": "2.20.0-beta.3",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -70,15 +70,15 @@
70
70
  "parse-gitignore": "^2.0.0",
71
71
  "readline-sync": "^1.4.10",
72
72
  "semver": "^7.3.7",
73
- "simple-git": "^3.12.0",
74
- "zx": "^7.0.8"
73
+ "simple-git": "^3.10.0",
74
+ "zx": "^7.0.7"
75
75
  },
76
76
  "devDependencies": {
77
- "@babel/cli": "^7.18.10",
78
- "@babel/core": "^7.18.10",
79
- "@babel/node": "^7.18.10",
77
+ "@babel/cli": "^7.18.9",
78
+ "@babel/core": "^7.18.9",
79
+ "@babel/node": "^7.18.9",
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.14.0"
83
83
  }
84
84
  }
package/src/dockreate CHANGED
@@ -228,15 +228,6 @@ npmlogging='--silent' # allow for verbose npm logs
228
228
  [ "$VERBOSE_DOCKREATE_NPM" == "yes" ] && npmlogging='--ddd'
229
229
 
230
230
  echo "Updating dependencies and workspace..." && npm install
231
- if [ $? -ne 0 ];
232
- then
233
- cat<<INSTALLFAILED
234
-
235
- $(color y 'npm install') $(color r 'FAILED') - fix it in order to proceed
236
-
237
- INSTALLFAILED
238
- exit 1
239
- fi
240
231
 
241
232
  container="`node -p \"require('../package.json').leverege.container\"`"
242
233
  if [ "$container" == "undefined" ];
package/src/helmup CHANGED
@@ -540,7 +540,7 @@ NEED_MANAGED_SECRET
540
540
  addHelmRepo jetstack https://charts.jetstack.io
541
541
  helm upgrade --install cert-manager jetstack/cert-manager \
542
542
  --namespace cert-manager --set installCRDs=true \
543
- --version v1.9
543
+ --version v1.8
544
544
 
545
545
  cat<<DELAY
546
546
 
@@ -6,11 +6,12 @@ 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' )
9
10
  await execa( 'tar', [ 'xf', tarball ] )
10
11
  }
11
12
  }
12
13
 
13
- const awaiter = async ( subdir, tarball) => {
14
+ const awaiter = async ( subdir, tarball ) => {
14
15
  await untarConfigTarball( subdir, tarball )
15
16
  }
16
17