@leverege/build-tools 2.20.0-beta.1 → 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.
- package/lib/server/npm-scripts/postinstall.js +1 -0
- package/lib/server/repo-init/RepoInit.js +10 -9
- package/lib/server/repo-init/config.tgz +0 -0
- package/lib/server/repo-init/gitter/Gitter.js +12 -17
- package/lib/server/repo-init/templates/Templates.js +10 -9
- package/lib/web/npm-scripts/postinstall.js +1 -0
- package/package.json +1 -1
- package/src/npm-scripts/postinstall.js +2 -1
|
@@ -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
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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: '
|
|
78
|
+
type: 'input',
|
|
79
79
|
name: 'git.owner',
|
|
80
80
|
message: 'Who is the owner of the git repository?',
|
|
81
|
-
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
});
|
|
@@ -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: false,
|
|
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)?',
|
package/package.json
CHANGED
|
@@ -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
|
|