Update repository URL & production registry host.
This commit is contained in:
+2
-3
@@ -15,11 +15,9 @@ const __filename = fileURLToPath(import.meta.url);
|
|||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
|
|
||||||
const isDev = process.env.NODE_ENV === 'development' || (config.has('isDev') && config.get('isDev')); // Check README file in case you get "missing files" error.
|
const isDev = process.env.NODE_ENV === 'development' || (config.has('isDev') && config.get('isDev')); // Check README file in case you get "missing files" error.
|
||||||
const blocksRegistry = isDev ? 'http://localhost:3020' : 'https://axe-web-blocks-registry.captain.devdevdev.life/';
|
const blocksRegistry = isDev ? 'http://localhost:3020' : 'https://axe-web-blocks-registry.captain.devdevdev.life';
|
||||||
const blocksDirectory = isDev ? 'blocks/' : '';
|
const blocksDirectory = isDev ? 'blocks/' : '';
|
||||||
|
|
||||||
console.log(__dirname);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const blockName = await init();
|
const blockName = await init();
|
||||||
console.log(`🎉 Done! \n\nCheck the "${blocksDirectory}${blockName}" directory. \n`);
|
console.log(`🎉 Done! \n\nCheck the "${blocksDirectory}${blockName}" directory. \n`);
|
||||||
@@ -141,6 +139,7 @@ async function createDataFiles(blockName, dataSources = []) {
|
|||||||
|
|
||||||
if (typeof source.preview_images !== 'undefined' && source.preview_images.length) {
|
if (typeof source.preview_images !== 'undefined' && source.preview_images.length) {
|
||||||
for (let preview_image of source.preview_images) {
|
for (let preview_image of source.preview_images) {
|
||||||
|
await setupPath(`${blocksDirectory}${blockName}/design`);
|
||||||
await downloadFile(preview_image.url, `${blocksDirectory}${blockName}/design/${source.name}-${preview_image.width}.${preview_image.extension}`)
|
await downloadFile(preview_image.url, `${blocksDirectory}${blockName}/design/${source.name}-${preview_image.width}.${preview_image.extension}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ const __dirname = path.dirname(__filename);
|
|||||||
|
|
||||||
const baseDir = path.join(__dirname, '../../');
|
const baseDir = path.join(__dirname, '../../');
|
||||||
|
|
||||||
export const defaultGitRepo = 'git+https://roman-axe-web@bitbucket.org/axeweb/create-block-dev-tool.git#master';
|
export const defaultGitRepo = 'git+https://git.devdevdev.life/axe-web-public/create-block.git#master';
|
||||||
|
|
||||||
export default class extends Generator {
|
export default class extends Generator {
|
||||||
async prompting() {
|
async prompting() {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import archiver from 'archiver';
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const isDev = process.env.NODE_ENV === 'development' || (config.has('isDev') && config.get('isDev')); // Check README file in case you get "missing files" error.
|
const isDev = process.env.NODE_ENV === 'development' || (config.has('isDev') && config.get('isDev')); // Check README file in case you get "missing files" error.
|
||||||
const blocksRegistry = isDev ? 'http://localhost:3020' : 'https://axe-web-blocks-registry.captain.devdevdev.life/';
|
const blocksRegistry = isDev ? 'http://localhost:3020' : 'https://axe-web-blocks-registry.captain.devdevdev.life';
|
||||||
const modulePath = isDev ? '' : 'node_modules/create-block-dev-tool/';
|
const modulePath = isDev ? '' : 'node_modules/create-block-dev-tool/';
|
||||||
const projectDir = modulePath;
|
const projectDir = modulePath;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user