create-blocklet 0.2.17 → 0.2.18
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/index.js +1 -35
- package/package.json +1 -1
- package/template-dapp/react/blocklet.yml +1 -1
- package/template-dapp/vue/blocklet.yml +1 -1
- package/template-dapp/vue2/blocklet.yml +1 -1
- package/template-static/react/blocklet.yml +1 -1
- package/template-static/vue/blocklet.yml +1 -1
- package/template-static/vue2/blocklet.yml +1 -1
package/index.js
CHANGED
|
@@ -70,14 +70,6 @@ const TYPES = [
|
|
|
70
70
|
},
|
|
71
71
|
];
|
|
72
72
|
|
|
73
|
-
const SERVICES = [
|
|
74
|
-
{
|
|
75
|
-
name: 'auth',
|
|
76
|
-
display: 'Auth Service',
|
|
77
|
-
color: yellow,
|
|
78
|
-
},
|
|
79
|
-
];
|
|
80
|
-
|
|
81
73
|
const renameFiles = {
|
|
82
74
|
_gitignore: '.gitignore',
|
|
83
75
|
'_eslintrc.js': '.eslintrc.js',
|
|
@@ -161,19 +153,6 @@ async function init() {
|
|
|
161
153
|
});
|
|
162
154
|
},
|
|
163
155
|
},
|
|
164
|
-
{
|
|
165
|
-
type: 'multiselect',
|
|
166
|
-
name: 'services',
|
|
167
|
-
message: 'Choose blocklet services:',
|
|
168
|
-
initial: 0,
|
|
169
|
-
choices: SERVICES.map((service) => {
|
|
170
|
-
const serviceColor = service.color;
|
|
171
|
-
return {
|
|
172
|
-
title: serviceColor(service.display),
|
|
173
|
-
value: service.name,
|
|
174
|
-
};
|
|
175
|
-
}),
|
|
176
|
-
},
|
|
177
156
|
],
|
|
178
157
|
{
|
|
179
158
|
onCancel: () => {
|
|
@@ -187,7 +166,7 @@ async function init() {
|
|
|
187
166
|
}
|
|
188
167
|
|
|
189
168
|
// user choice associated with prompts
|
|
190
|
-
const { type, framework, overwrite, packageName
|
|
169
|
+
const { type, framework, overwrite, packageName } = result;
|
|
191
170
|
|
|
192
171
|
const root = path.join(cwd, targetDir);
|
|
193
172
|
|
|
@@ -286,19 +265,6 @@ async function init() {
|
|
|
286
265
|
return env;
|
|
287
266
|
});
|
|
288
267
|
|
|
289
|
-
// patch blocklet services
|
|
290
|
-
modifyBlockletYaml((yamlConfig) => {
|
|
291
|
-
if (services.includes('auth')) {
|
|
292
|
-
yamlConfig.interfaces[0].services = [
|
|
293
|
-
{
|
|
294
|
-
name: '@abtnode/auth-service',
|
|
295
|
-
config: {
|
|
296
|
-
blockUnauthenticated: true,
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
|
-
];
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
268
|
// patch blocklet author
|
|
303
269
|
modifyBlockletYaml((yamlConfig) => {
|
|
304
270
|
// eslint-disable-next-line no-shadow
|
package/package.json
CHANGED