rook-cli 1.3.6 β 1.3.8
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/package.json
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import path from 'path';
|
|
15
15
|
import os from 'os';
|
|
16
16
|
import fs from 'fs-extra';
|
|
17
|
+
import { REMOTE_PATHS } from '../config/constants.js';
|
|
17
18
|
|
|
18
19
|
export class AddCommand {
|
|
19
20
|
|
|
@@ -120,7 +121,7 @@ export class AddCommand {
|
|
|
120
121
|
this.logger.destaque(`π§© Instalando ${kitSelecionado.componentes.length} componente(s) do manifesto...\n`);
|
|
121
122
|
|
|
122
123
|
for (const nomeComponente of kitSelecionado.componentes) {
|
|
123
|
-
const caminhoComponente =
|
|
124
|
+
const caminhoComponente = `${REMOTE_PATHS.COMPONENTS}/${nomeComponente}`;
|
|
124
125
|
|
|
125
126
|
try {
|
|
126
127
|
this.logger.info(`[${totalComponentesInstalados + 1}/${kitSelecionado.componentes.length}] ${nomeComponente}`);
|
package/src/config/constants.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/** RepositΓ³rio de origem no GitHub (owner/repo) */
|
|
9
|
-
export const GITHUB_REPO = process.env.GITHUB_REPO || 'chesslabdev/rook-cli
|
|
9
|
+
export const GITHUB_REPO = process.env.GITHUB_REPO || 'chesslabdev/rook-cli';
|
|
10
10
|
|
|
11
11
|
/** URL base da API do GitHub para conteΓΊdo do repositΓ³rio */
|
|
12
12
|
export const GITHUB_API_BASE = `https://api.github.com/repos/${GITHUB_REPO}/contents`;
|
|
@@ -30,10 +30,9 @@ export const SHOPIFY_DIRS = [
|
|
|
30
30
|
'templates',
|
|
31
31
|
];
|
|
32
32
|
|
|
33
|
-
/** Pastas raiz do repositΓ³rio remoto */
|
|
34
33
|
export const REMOTE_PATHS = {
|
|
35
|
-
KITS: 'kits',
|
|
36
|
-
COMPONENTS: 'components',
|
|
34
|
+
KITS: 'rook-components/kits',
|
|
35
|
+
COMPONENTS: 'rook-components/components',
|
|
37
36
|
};
|
|
38
37
|
|
|
39
38
|
/** Nome do CLI exibido nos logs */
|
package/src/utils/logger.js
CHANGED
|
@@ -49,7 +49,7 @@ export class Logger {
|
|
|
49
49
|
banner() {
|
|
50
50
|
console.log('');
|
|
51
51
|
console.log(pc.bold(pc.white(' ββββββββββββββββββββββββββββββββ')));
|
|
52
|
-
console.log(pc.bold(pc.white(' β βοΈ ROOK CLI v1.3.
|
|
52
|
+
console.log(pc.bold(pc.white(' β βοΈ ROOK CLI v1.3.8 β')));
|
|
53
53
|
console.log(pc.bold(pc.white(' β Shopify Component Tool β')));
|
|
54
54
|
console.log(pc.bold(pc.white(' ββββββββββββββββββββββββββββββββ')));
|
|
55
55
|
console.log('');
|