antelope-cli 1.2.2 → 1.2.4

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.
Files changed (37) hide show
  1. package/ansible/onboarding-ca/README.md +105 -105
  2. package/ansible/onboarding-ca/onboard-ca.yml +43 -51
  3. package/ansible/onboarding-ca/requirements.yml +8 -8
  4. package/ansible/onboarding-ca/roles/onboard_ca/defaults/main.yml +77 -49
  5. package/ansible/onboarding-ca/roles/onboard_ca/meta/main.yml +10 -10
  6. package/ansible/onboarding-ca/roles/onboard_ca/tasks/main.yml +311 -193
  7. package/ansible/onboarding-ca/roles/onboard_ca/tasks/per_branch.yml +114 -107
  8. package/ansible/onboarding-ca/roles/onboard_ca/vars/main.yml +9 -9
  9. package/ansible/onboarding-crm/README.md +107 -0
  10. package/ansible/onboarding-crm/onboard-crm.yml +60 -0
  11. package/ansible/onboarding-crm/requirements.yml +8 -0
  12. package/ansible/onboarding-crm/roles/onboard_crm/defaults/main.yml +99 -0
  13. package/ansible/onboarding-crm/roles/onboard_crm/meta/main.yml +10 -0
  14. package/ansible/onboarding-crm/roles/onboard_crm/tasks/main.yml +324 -0
  15. package/ansible/onboarding-crm/roles/onboard_crm/tasks/per_branch.yml +121 -0
  16. package/ansible/onboarding-crm/roles/onboard_crm/vars/main.yml +9 -0
  17. package/index.js +12 -12
  18. package/onboarding/brand.js +21 -21
  19. package/onboarding/createConfig.js +71 -71
  20. package/onboarding/favicon.js +24 -24
  21. package/onboarding/index.js +62 -62
  22. package/onboarding/logo.js +16 -16
  23. package/onboarding/themes.js +92 -92
  24. package/onboarding/translations.js +41 -41
  25. package/onboarding/variablesColors.js +58 -58
  26. package/onboarding-ca/brand.js +13 -13
  27. package/onboarding-ca/index.js +94 -94
  28. package/onboarding-ca/riskDisclaimer.js +27 -27
  29. package/onboarding-ca/scss.js +24 -24
  30. package/onboarding-ca/templates/risk-disclaimer.html +12 -12
  31. package/onboarding-crm/brand.js +22 -22
  32. package/onboarding-crm/brandLogos.js +31 -0
  33. package/onboarding-crm/createConfig.js +40 -40
  34. package/onboarding-crm/index.js +175 -171
  35. package/onboarding-crm/themes.js +1 -1
  36. package/onboarding-crm/variablesColors.js +2 -3
  37. package/package.json +30 -30
@@ -1,24 +1,24 @@
1
- const fs = require('fs');
2
- const brandModule = require('./brand.js');
3
- const chalk = require('chalk');
4
-
5
- async function start(rl) {
6
- try {
7
- const imagePath = await promptUser('Please provide the url to your favicon image: ', rl);
8
- console.log(chalk.cyan(imagePath));
9
- brandModule.updateBrand({favicon: imagePath})
10
- console.log(chalk.cyan(`Favicon images generated successfully!`));
11
- } catch (error) {
12
- console.error(`Error generating favicon images: ${error}`);
13
- }
14
- }
15
-
16
- function promptUser(message, rl) {
17
- return new Promise((resolve) => {
18
- rl.question(message, (input) => {
19
- resolve(input);
20
- });
21
- });
22
- }
23
-
24
- module.exports = { start };
1
+ const fs = require('fs');
2
+ const brandModule = require('./brand.js');
3
+ const chalk = require('chalk');
4
+
5
+ async function start(rl) {
6
+ try {
7
+ const imagePath = await promptUser('Please provide the url to your favicon image: ', rl);
8
+ console.log(chalk.cyan(imagePath));
9
+ brandModule.updateBrand({favicon: imagePath})
10
+ console.log(chalk.cyan(`Favicon images generated successfully!`));
11
+ } catch (error) {
12
+ console.error(`Error generating favicon images: ${error}`);
13
+ }
14
+ }
15
+
16
+ function promptUser(message, rl) {
17
+ return new Promise((resolve) => {
18
+ rl.question(message, (input) => {
19
+ resolve(input);
20
+ });
21
+ });
22
+ }
23
+
24
+ module.exports = { start };
@@ -1,62 +1,62 @@
1
- const readline = require('readline');
2
- const variableColors = require('./variablesColors.js');
3
- const themes = require('./themes.js');
4
- const favicon = require('./favicon.js');
5
- const logo = require('./logo.js');
6
- const translations = require('./translations.js');
7
- const config = require('./createConfig.js');
8
- const chalk = require('chalk');
9
- const { exec } = require('child_process');
10
-
11
- const rl = readline.createInterface({
12
- input: process.stdin,
13
- output: process.stdout
14
- });
15
-
16
- const finishOnboarding = () => {
17
- console.log(chalk.green('\nOnboarding completed!'));
18
- rl.question('Start the application? (y/n) ', (result) => {
19
- if (result.toLowerCase() === 'y') {
20
- rl.close();
21
- const startProcess = exec('npm start');
22
-
23
- startProcess.stdout.on('data', (data) => {
24
- console.log(data);
25
- });
26
-
27
- startProcess.stderr.on('data', (data) => {
28
- console.error(data);
29
- });
30
-
31
- startProcess.on('close', (code) => {
32
- console.log(`Child process exited with code ${code}`);
33
- });
34
- } else {
35
- rl.close();
36
- }
37
- });
38
- };
39
-
40
- const startOnBoarding = async () => {
41
- console.log(chalk.underline(chalk.cyan("Welcome to Antelope's on-boarding bot \n")));
42
- try {
43
- console.log(chalk.bold(chalk.yellow('\nStep 1: Add to variables-colors.scss')));
44
- await variableColors.start(rl);
45
- console.log(chalk.bold(chalk.yellow('\nStep 2: Adding the logo')));
46
- await logo.start(rl);
47
- console.log(chalk.bold(chalk.yellow('\nStep 3: Add to themes.scss')));
48
- await themes.start(rl);
49
- console.log(chalk.bold(chalk.yellow('\nStep 4: Create favicon package')));
50
- await favicon.start(rl);
51
- console.log(chalk.bold(chalk.yellow('\nStep 5: Adding translations')));
52
- await translations.start(rl);
53
- console.log(chalk.bold(chalk.yellow('\nStep 6: Editing the config file')));
54
- await config.start(rl);
55
- finishOnboarding();
56
- } catch (err) {
57
- console.error(chalk.red(err) + '\n Please delete files and code added by this fail session.');
58
- rl.close();
59
- }
60
- };
61
-
62
- startOnBoarding();
1
+ const readline = require('readline');
2
+ const variableColors = require('./variablesColors.js');
3
+ const themes = require('./themes.js');
4
+ const favicon = require('./favicon.js');
5
+ const logo = require('./logo.js');
6
+ const translations = require('./translations.js');
7
+ const config = require('./createConfig.js');
8
+ const chalk = require('chalk');
9
+ const { exec } = require('child_process');
10
+
11
+ const rl = readline.createInterface({
12
+ input: process.stdin,
13
+ output: process.stdout
14
+ });
15
+
16
+ const finishOnboarding = () => {
17
+ console.log(chalk.green('\nOnboarding completed!'));
18
+ rl.question('Start the application? (y/n) ', (result) => {
19
+ if (result.toLowerCase() === 'y') {
20
+ rl.close();
21
+ const startProcess = exec('npm start');
22
+
23
+ startProcess.stdout.on('data', (data) => {
24
+ console.log(data);
25
+ });
26
+
27
+ startProcess.stderr.on('data', (data) => {
28
+ console.error(data);
29
+ });
30
+
31
+ startProcess.on('close', (code) => {
32
+ console.log(`Child process exited with code ${code}`);
33
+ });
34
+ } else {
35
+ rl.close();
36
+ }
37
+ });
38
+ };
39
+
40
+ const startOnBoarding = async () => {
41
+ console.log(chalk.underline(chalk.cyan("Welcome to Antelope's on-boarding bot \n")));
42
+ try {
43
+ console.log(chalk.bold(chalk.yellow('\nStep 1: Add to variables-colors.scss')));
44
+ await variableColors.start(rl);
45
+ console.log(chalk.bold(chalk.yellow('\nStep 2: Adding the logo')));
46
+ await logo.start(rl);
47
+ console.log(chalk.bold(chalk.yellow('\nStep 3: Add to themes.scss')));
48
+ await themes.start(rl);
49
+ console.log(chalk.bold(chalk.yellow('\nStep 4: Create favicon package')));
50
+ await favicon.start(rl);
51
+ console.log(chalk.bold(chalk.yellow('\nStep 5: Adding translations')));
52
+ await translations.start(rl);
53
+ console.log(chalk.bold(chalk.yellow('\nStep 6: Editing the config file')));
54
+ await config.start(rl);
55
+ finishOnboarding();
56
+ } catch (err) {
57
+ console.error(chalk.red(err) + '\n Please delete files and code added by this fail session.');
58
+ rl.close();
59
+ }
60
+ };
61
+
62
+ startOnBoarding();
@@ -1,16 +1,16 @@
1
- const chalk = require('chalk');
2
- const brandModule = require('./brand.js');
3
-
4
-
5
-
6
- function start(rl) {
7
- return new Promise((resolve, reject) => {
8
- rl.question('Please enter the URL to the logo image suitable for a black background:\n', (url) => {
9
- console.log(chalk.cyan('Logo saved successfully!'));
10
- brandModule.updateBrand({logo: url});
11
- resolve(null);
12
- });
13
- });
14
- }
15
-
16
- module.exports = { start };
1
+ const chalk = require('chalk');
2
+ const brandModule = require('./brand.js');
3
+
4
+
5
+
6
+ function start(rl) {
7
+ return new Promise((resolve, reject) => {
8
+ rl.question('Please enter the URL to the logo image suitable for a black background:\n', (url) => {
9
+ console.log(chalk.cyan('Logo saved successfully!'));
10
+ brandModule.updateBrand({logo: url});
11
+ resolve(null);
12
+ });
13
+ });
14
+ }
15
+
16
+ module.exports = { start };
@@ -1,92 +1,92 @@
1
- const fs = require('fs');
2
- const brandModule = require('./brand.js');
3
- const chalk = require('chalk');
4
- const themesPath = 'src/ng1/assets/css/sass/materialism/themes.scss';
5
-
6
- function addColorToMap(mapName, key, value, data) {
7
- const mapRegex = new RegExp(`\\$${mapName}:\\s*\\(([\\s\\S]*?)\\)`);
8
- const match = data.match(mapRegex);
9
- if (match) {
10
- const mapContent = match[1];
11
- const newMapContent = `$${mapName}: (${mapContent},\n '${key}': ${value})`;
12
- data = data.replace(mapRegex, newMapContent);
13
- } else {
14
- throw new Error(`Error: Could not find ${mapName} map in the file`);
15
- }
16
- return data;
17
- }
18
-
19
- function start(rl) {
20
- const brand = brandModule.getBrand();
21
- return new Promise((resolve, reject) => {
22
- try {
23
- const themeVar = `
24
- .theme-template-${brand.connectedBrandName} {
25
- #logo {
26
- display: inline-block;
27
- width: 240px;
28
- height: 120px;
29
- background: url('${brand.logo}') no-repeat center center;
30
- background-size: contain;
31
- }
32
- .navbar-toggle-container {
33
- background: #222C38;
34
-
35
- .icon-bar {
36
- background: #fff !important;
37
- }
38
- }
39
- .sidebar {
40
- background: #222C38;
41
- color: #ffffff;
42
-
43
- ul a,
44
- i {
45
- color: #ffffff;
46
- }
47
-
48
- .brand-logo,
49
- .brand-logo-text {
50
- display: none;
51
- }
52
- .user-logged-in:after {
53
- background: #26303C;
54
- }
55
- }
56
- }
57
- \n`;
58
- fs.readFile(themesPath, 'utf8', (err, data) => {
59
- if (err) {
60
- reject(err);
61
- } else {
62
- data = addColorToMap(
63
- 'theme-colors',
64
- brand.connectedBrandName,
65
- brand.color ? `$${brand.connectedBrandName}` : '$corp',
66
- data
67
- );
68
- data = addColorToMap(
69
- 'theme-secondary-colors',
70
- brand.connectedBrandName,
71
- brand.color ? `'${brand.connectedBrandName}'` : "'corp'",
72
- data
73
- );
74
- const insertionPoint = data.lastIndexOf('@each $color-name');
75
- const newFileContent = data.slice(0, insertionPoint) + themeVar + data.slice(insertionPoint);
76
- fs.writeFile(themesPath, newFileContent, 'utf8', (error) => {
77
- if (error) {
78
- reject(error);
79
- } else {
80
- console.log(chalk.cyan('themes.scss file updated successfully!'));
81
- resolve(null);
82
- }
83
- });
84
- }
85
- });
86
- } catch (error) {
87
- console.error(error);
88
- }
89
- });
90
- }
91
-
92
- module.exports = { start };
1
+ const fs = require('fs');
2
+ const brandModule = require('./brand.js');
3
+ const chalk = require('chalk');
4
+ const themesPath = 'src/ng1/assets/css/sass/materialism/themes.scss';
5
+
6
+ function addColorToMap(mapName, key, value, data) {
7
+ const mapRegex = new RegExp(`\\$${mapName}:\\s*\\(([\\s\\S]*?)\\)`);
8
+ const match = data.match(mapRegex);
9
+ if (match) {
10
+ const mapContent = match[1];
11
+ const newMapContent = `$${mapName}: (${mapContent},\n '${key}': ${value})`;
12
+ data = data.replace(mapRegex, newMapContent);
13
+ } else {
14
+ throw new Error(`Error: Could not find ${mapName} map in the file`);
15
+ }
16
+ return data;
17
+ }
18
+
19
+ function start(rl) {
20
+ const brand = brandModule.getBrand();
21
+ return new Promise((resolve, reject) => {
22
+ try {
23
+ const themeVar = `
24
+ .theme-template-${brand.connectedBrandName} {
25
+ #logo {
26
+ display: inline-block;
27
+ width: 240px;
28
+ height: 120px;
29
+ background: url('${brand.logo}') no-repeat center center;
30
+ background-size: contain;
31
+ }
32
+ .navbar-toggle-container {
33
+ background: #222C38;
34
+
35
+ .icon-bar {
36
+ background: #fff !important;
37
+ }
38
+ }
39
+ .sidebar {
40
+ background: #222C38;
41
+ color: #ffffff;
42
+
43
+ ul a,
44
+ i {
45
+ color: #ffffff;
46
+ }
47
+
48
+ .brand-logo,
49
+ .brand-logo-text {
50
+ display: none;
51
+ }
52
+ .user-logged-in:after {
53
+ background: #26303C;
54
+ }
55
+ }
56
+ }
57
+ \n`;
58
+ fs.readFile(themesPath, 'utf8', (err, data) => {
59
+ if (err) {
60
+ reject(err);
61
+ } else {
62
+ data = addColorToMap(
63
+ 'theme-colors',
64
+ brand.connectedBrandName,
65
+ brand.color ? `$${brand.connectedBrandName}` : '$corp',
66
+ data
67
+ );
68
+ data = addColorToMap(
69
+ 'theme-secondary-colors',
70
+ brand.connectedBrandName,
71
+ brand.color ? `'${brand.connectedBrandName}'` : "'corp'",
72
+ data
73
+ );
74
+ const insertionPoint = data.lastIndexOf('@each $color-name');
75
+ const newFileContent = data.slice(0, insertionPoint) + themeVar + data.slice(insertionPoint);
76
+ fs.writeFile(themesPath, newFileContent, 'utf8', (error) => {
77
+ if (error) {
78
+ reject(error);
79
+ } else {
80
+ console.log(chalk.cyan('themes.scss file updated successfully!'));
81
+ resolve(null);
82
+ }
83
+ });
84
+ }
85
+ });
86
+ } catch (error) {
87
+ console.error(error);
88
+ }
89
+ });
90
+ }
91
+
92
+ module.exports = { start };
@@ -1,41 +1,41 @@
1
- const fs = require('fs');
2
- const chalk = require('chalk');
3
- const brandModule = require('./brand.js');
4
- const path = require('path');
5
- function createTranslationsFolder(translationsDirectory) {
6
- const folderPath = path.join(translationsDirectory, 'languages');
7
-
8
- if (!fs.existsSync(folderPath)) {
9
- fs.mkdirSync(folderPath, { recursive: true });
10
- }
11
-
12
- return folderPath;
13
- }
14
-
15
- function createLanguageFiles(languages, folderPath) {
16
- languages.forEach((language) => {
17
- const filePath = path.join(folderPath, `${language}.json`);
18
- fs.writeFileSync(filePath, '{}', 'utf8');
19
- });
20
- }
21
-
22
- function start(rl) {
23
- const brand = brandModule.getBrand();
24
- const translationsDir = `src/assets/brands/${brand.connectedBrandName}`;
25
- return new Promise((resolve, reject) => {
26
- try {
27
- rl.question('Enter the languages (2-letter codes) separated by commas:\n', (languagesInput) => {
28
- const languages = languagesInput.trim().split(',');
29
- brandModule.updateBrand({ languages });
30
- const folderPath = createTranslationsFolder(translationsDir);
31
- createLanguageFiles(languages, folderPath);
32
- console.log(chalk.cyan('Translations added successfully!'));
33
- resolve(null);
34
- });
35
- } catch (error) {
36
- reject(error + '\n Please add the translations manually.');
37
- }
38
- });
39
- }
40
-
41
- module.exports = { start };
1
+ const fs = require('fs');
2
+ const chalk = require('chalk');
3
+ const brandModule = require('./brand.js');
4
+ const path = require('path');
5
+ function createTranslationsFolder(translationsDirectory) {
6
+ const folderPath = path.join(translationsDirectory, 'languages');
7
+
8
+ if (!fs.existsSync(folderPath)) {
9
+ fs.mkdirSync(folderPath, { recursive: true });
10
+ }
11
+
12
+ return folderPath;
13
+ }
14
+
15
+ function createLanguageFiles(languages, folderPath) {
16
+ languages.forEach((language) => {
17
+ const filePath = path.join(folderPath, `${language}.json`);
18
+ fs.writeFileSync(filePath, '{}', 'utf8');
19
+ });
20
+ }
21
+
22
+ function start(rl) {
23
+ const brand = brandModule.getBrand();
24
+ const translationsDir = `src/assets/brands/${brand.connectedBrandName}`;
25
+ return new Promise((resolve, reject) => {
26
+ try {
27
+ rl.question('Enter the languages (2-letter codes) separated by commas:\n', (languagesInput) => {
28
+ const languages = languagesInput.trim().split(',');
29
+ brandModule.updateBrand({ languages });
30
+ const folderPath = createTranslationsFolder(translationsDir);
31
+ createLanguageFiles(languages, folderPath);
32
+ console.log(chalk.cyan('Translations added successfully!'));
33
+ resolve(null);
34
+ });
35
+ } catch (error) {
36
+ reject(error + '\n Please add the translations manually.');
37
+ }
38
+ });
39
+ }
40
+
41
+ module.exports = { start };
@@ -1,58 +1,58 @@
1
- const fs = require('fs');
2
- const brandModule = require('./brand.js');
3
- const chalk = require('chalk');
4
- const variablesColorsPath = 'src/ng1/assets/css/sass/variables-colors.scss';
5
- const defaultColor = '$corp';
6
-
7
- function start(rl) {
8
- return new Promise((resolve, reject) => {
9
- rl.question("What is the new brand's name?\n", (brandName) => {
10
- const kebabCaseName = brandName.toLowerCase().replace(/ /g, '-');
11
- const connectedBrandName = brandName.toLowerCase().replace(/ /g, '');
12
- rl.question(
13
- `Please set a color for "${kebabCaseName}", use hex value, leave empty for default.\n`,
14
- (hexColor) => {
15
- let data = fs.readFileSync(variablesColorsPath, 'utf8');
16
-
17
- // Check if $colors map exists in the file
18
- const colorsRegex = /\$colors:\s*\(([\s\S]*?)\)/;
19
- const match = data.match(colorsRegex);
20
- if (match) {
21
- const colorsMap = match[1];
22
-
23
- // Append the new brand to the colors map
24
- const newColorsMap = `$colors: (${colorsMap},\n '${connectedBrandName}': ${
25
- hexColor ? '$' + connectedBrandName : defaultColor
26
- })`;
27
-
28
- // Replace the $colors map in the file with the new one
29
- data = data.replace(colorsRegex, newColorsMap);
30
- } else {
31
- reject('Error: Could not find $colors map in the file');
32
- }
33
-
34
- const brandVar = `\$${connectedBrandName}: (
35
- 'lighten-5': lighten(${hexColor}, 25%),
36
- 'lighten-4': lighten(${hexColor}, 20%),
37
- 'lighten-3': lighten(${hexColor}, 15%),
38
- 'lighten-2': lighten(${hexColor}, 10%),
39
- 'lighten-1': lighten(${hexColor}, 5%),
40
- 'base': ${hexColor},
41
- 'darken-1': darken(${hexColor}, 5%),
42
- 'darken-2': darken(${hexColor}, 10%),
43
- 'darken-3': darken(${hexColor}, 15%),
44
- 'darken-4': darken(${hexColor}, 20%),
45
- );\n`;
46
-
47
- const newData = hexColor ? brandVar + data : data;
48
- fs.writeFileSync(variablesColorsPath, newData, 'utf8');
49
- brandModule.updateBrand({ brandName, kebabCaseName, connectedBrandName, color: hexColor || '' });
50
- console.log(chalk.cyan('\nvariables-colors.scss file updated successfully!'));
51
- resolve(null);
52
- }
53
- );
54
- });
55
- });
56
- }
57
-
58
- module.exports = { start };
1
+ const fs = require('fs');
2
+ const brandModule = require('./brand.js');
3
+ const chalk = require('chalk');
4
+ const variablesColorsPath = 'src/ng1/assets/css/sass/variables-colors.scss';
5
+ const defaultColor = '$corp';
6
+
7
+ function start(rl) {
8
+ return new Promise((resolve, reject) => {
9
+ rl.question("What is the new brand's name?\n", (brandName) => {
10
+ const kebabCaseName = brandName.toLowerCase().replace(/ /g, '-');
11
+ const connectedBrandName = brandName.toLowerCase().replace(/ /g, '');
12
+ rl.question(
13
+ `Please set a color for "${kebabCaseName}", use hex value, leave empty for default.\n`,
14
+ (hexColor) => {
15
+ let data = fs.readFileSync(variablesColorsPath, 'utf8');
16
+
17
+ // Check if $colors map exists in the file
18
+ const colorsRegex = /\$colors:\s*\(([\s\S]*?)\)/;
19
+ const match = data.match(colorsRegex);
20
+ if (match) {
21
+ const colorsMap = match[1];
22
+
23
+ // Append the new brand to the colors map
24
+ const newColorsMap = `$colors: (${colorsMap},\n '${connectedBrandName}': ${
25
+ hexColor ? '$' + connectedBrandName : defaultColor
26
+ })`;
27
+
28
+ // Replace the $colors map in the file with the new one
29
+ data = data.replace(colorsRegex, newColorsMap);
30
+ } else {
31
+ reject('Error: Could not find $colors map in the file');
32
+ }
33
+
34
+ const brandVar = `\$${connectedBrandName}: (
35
+ 'lighten-5': lighten(${hexColor}, 25%),
36
+ 'lighten-4': lighten(${hexColor}, 20%),
37
+ 'lighten-3': lighten(${hexColor}, 15%),
38
+ 'lighten-2': lighten(${hexColor}, 10%),
39
+ 'lighten-1': lighten(${hexColor}, 5%),
40
+ 'base': ${hexColor},
41
+ 'darken-1': darken(${hexColor}, 5%),
42
+ 'darken-2': darken(${hexColor}, 10%),
43
+ 'darken-3': darken(${hexColor}, 15%),
44
+ 'darken-4': darken(${hexColor}, 20%),
45
+ );\n`;
46
+
47
+ const newData = hexColor ? brandVar + data : data;
48
+ fs.writeFileSync(variablesColorsPath, newData, 'utf8');
49
+ brandModule.updateBrand({ brandName, kebabCaseName, connectedBrandName, color: hexColor || '' });
50
+ console.log(chalk.cyan('\nvariables-colors.scss file updated successfully!'));
51
+ resolve(null);
52
+ }
53
+ );
54
+ });
55
+ });
56
+ }
57
+
58
+ module.exports = { start };
@@ -1,13 +1,13 @@
1
- let brand = {
2
- brandAssetsFolder: ''
3
- };
4
-
5
- function updateBrand(updatedBrand) {
6
- brand = { ...brand, ...updatedBrand };
7
- }
8
-
9
- function getBrand() {
10
- return brand;
11
- }
12
-
13
- module.exports = { updateBrand, getBrand };
1
+ let brand = {
2
+ brandAssetsFolder: ''
3
+ };
4
+
5
+ function updateBrand(updatedBrand) {
6
+ brand = { ...brand, ...updatedBrand };
7
+ }
8
+
9
+ function getBrand() {
10
+ return brand;
11
+ }
12
+
13
+ module.exports = { updateBrand, getBrand };