@andre1502/react-utilities 0.9.1 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +61 -12
- package/dist/Config/Config.js +4 -3
- package/dist/Config/Config.js.map +1 -1
- package/dist/EnvironmentEnum-BjXsfSRZ.js +9 -0
- package/dist/EnvironmentEnum-BjXsfSRZ.js.map +1 -0
- package/dist/EnvironmentEnum-UcQ6Il1O.js +9 -0
- package/dist/EnvironmentEnum-UcQ6Il1O.js.map +1 -0
- package/dist/I18n/I18n.d.ts +6 -0
- package/dist/I18n/I18n.js +104 -0
- package/dist/I18n/I18n.js.map +1 -0
- package/dist/I18n-CB7SyXYJ.js +3291 -0
- package/dist/I18n-CB7SyXYJ.js.map +1 -0
- package/dist/I18n-yXLN_hDO.js +3288 -0
- package/dist/I18n-yXLN_hDO.js.map +1 -0
- package/dist/NumberFormat-CvvBWhHc.js +89 -0
- package/dist/NumberFormat-CvvBWhHc.js.map +1 -0
- package/dist/NumberFormat-glmpbk7E.js +94 -0
- package/dist/NumberFormat-glmpbk7E.js.map +1 -0
- package/dist/config-cli.cjs +8 -3
- package/dist/config-cli.cjs.map +1 -1
- package/dist/config-cli.d.ts +2 -0
- package/dist/config-cli.js +8 -0
- package/dist/config-cli.js.map +1 -1
- package/dist/config-cli.mjs +5 -4
- package/dist/config-cli.mjs.map +1 -1
- package/dist/enums/EnvironmentEnum.d.ts +5 -0
- package/dist/enums/EnvironmentEnum.js +13 -0
- package/dist/enums/EnvironmentEnum.js.map +1 -0
- package/dist/format.cjs +18 -97
- package/dist/format.cjs.map +1 -1
- package/dist/format.d.ts +27 -0
- package/dist/format.js +27 -27
- package/dist/format.js.map +1 -1
- package/dist/format.mjs +29 -116
- package/dist/format.mjs.map +1 -1
- package/dist/i18n.cjs +15 -0
- package/dist/i18n.cjs.map +1 -0
- package/dist/i18n.d.ts +3 -0
- package/dist/i18n.js +28 -0
- package/dist/i18n.js.map +1 -0
- package/dist/i18n.mjs +4 -0
- package/dist/i18n.mjs.map +1 -0
- package/dist/index-cli.cjs +5 -0
- package/dist/index-cli.cjs.map +1 -1
- package/dist/index-cli.mjs +1 -0
- package/dist/index-cli.mjs.map +1 -1
- package/dist/index-rn.cjs +42 -6
- package/dist/index-rn.cjs.map +1 -1
- package/dist/index-rn.d.ts +1 -0
- package/dist/index-rn.js +11 -0
- package/dist/index-rn.js.map +1 -1
- package/dist/index-rn.mjs +31 -1
- package/dist/index-rn.mjs.map +1 -1
- package/dist/index.cjs +42 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -6
- package/src/Config/Config.ts +4 -3
- package/src/I18n/I18n.ts +117 -0
- package/src/config-cli.ts +2 -0
- package/src/enums/EnvironmentEnum.ts +5 -0
- package/src/format.ts +34 -34
- package/src/i18n.ts +4 -0
- package/src/index-rn.ts +1 -0
- package/src/index.ts +1 -0
- package/dist/index-fmt.cjs +0 -16
- package/dist/index-fmt.cjs.map +0 -1
- package/dist/index-fmt.d.ts +0 -1
- package/dist/index-fmt.js +0 -17
- package/dist/index-fmt.js.map +0 -1
- package/dist/index-fmt.mjs +0 -3
- package/dist/index-fmt.mjs.map +0 -1
- package/src/index-fmt.ts +0 -1
@@ -0,0 +1,89 @@
|
|
1
|
+
import { NumberFormat } from '@formatjs/intl-numberformat';
|
2
|
+
|
3
|
+
var CurrencySymbolEnum;
|
4
|
+
(function (CurrencySymbolEnum) {
|
5
|
+
CurrencySymbolEnum["TWD"] = "NT$";
|
6
|
+
CurrencySymbolEnum["USD"] = "US$";
|
7
|
+
CurrencySymbolEnum["VND"] = "\u20AB";
|
8
|
+
})(CurrencySymbolEnum || (CurrencySymbolEnum = {}));
|
9
|
+
|
10
|
+
class NumberParser {
|
11
|
+
constructor(locale) {
|
12
|
+
const parts = new NumberFormat(locale).formatToParts(12345.6);
|
13
|
+
const numerals = [...new NumberFormat(locale, {
|
14
|
+
useGrouping: false
|
15
|
+
}).format(9876543210)].reverse();
|
16
|
+
const index = new Map(numerals.map((d, i) => [d, i]));
|
17
|
+
this._group = new RegExp(`[${parts.find(d => d.type === 'group')?.value}]`, 'g');
|
18
|
+
this._decimal = new RegExp(`[${parts.find(d => d.type === 'decimal')?.value}]`);
|
19
|
+
this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');
|
20
|
+
this._index = d => index.get(d);
|
21
|
+
}
|
22
|
+
parse(value) {
|
23
|
+
value = value?.trim()?.replace(this._group, '')?.replace(this._decimal, '.')?.replace(this._numeral, this._index);
|
24
|
+
return value ? +value : NaN;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
const formatAccountNumber = function (accountNumber) {
|
29
|
+
let separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
|
30
|
+
return accountNumber?.replace(/\s?/g, '').replace(/(\d{4})/g, `$1${separator}`).trim();
|
31
|
+
};
|
32
|
+
const getCurrencySymbol = function (currency) {
|
33
|
+
let showCurrency = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
34
|
+
let symbol;
|
35
|
+
switch (currency) {
|
36
|
+
case 'TWD':
|
37
|
+
symbol = CurrencySymbolEnum.TWD;
|
38
|
+
break;
|
39
|
+
case 'USD':
|
40
|
+
symbol = CurrencySymbolEnum.USD;
|
41
|
+
break;
|
42
|
+
case 'VND':
|
43
|
+
symbol = CurrencySymbolEnum.VND;
|
44
|
+
break;
|
45
|
+
default:
|
46
|
+
symbol = '';
|
47
|
+
}
|
48
|
+
if (!showCurrency) {
|
49
|
+
symbol = '';
|
50
|
+
}
|
51
|
+
return symbol;
|
52
|
+
};
|
53
|
+
const formatNumber = options => {
|
54
|
+
options.value = options.value ?? 0;
|
55
|
+
options.styleCurrency = options.styleCurrency ?? 'currency';
|
56
|
+
options.currencyDisplay = options.currencyDisplay ?? 'code';
|
57
|
+
options.showValue = options.showValue ?? true;
|
58
|
+
options.showCurrency = options.showCurrency ?? true;
|
59
|
+
options.minimumFractionDigits = options.minimumFractionDigits ?? 0;
|
60
|
+
options.maximumFractionDigits = options.maximumFractionDigits ?? 0;
|
61
|
+
options.trailingZeroDisplay = options.trailingZeroDisplay ?? 'stripIfInteger';
|
62
|
+
// console.log(`options: ${JSON.stringify(options)}.`);
|
63
|
+
let formatOptions = {
|
64
|
+
style: options.styleCurrency,
|
65
|
+
currency: options.currency,
|
66
|
+
currencyDisplay: options.currencyDisplay,
|
67
|
+
minimumFractionDigits: options.minimumFractionDigits,
|
68
|
+
maximumFractionDigits: options.maximumFractionDigits,
|
69
|
+
trailingZeroDisplay: options.trailingZeroDisplay
|
70
|
+
};
|
71
|
+
if (options.options) {
|
72
|
+
formatOptions = {
|
73
|
+
...formatOptions,
|
74
|
+
...options.options
|
75
|
+
};
|
76
|
+
}
|
77
|
+
let localizedNumber = NumberFormat(options.lang, formatOptions).format(options.value).replace(/^([\d,.]+)(\s*)([A-Z]{3})$/, '$3$2$1').replace(/([\d,.]+)$/, options.showValue ? ' $1' : ' ********').replace(options.currency, getCurrencySymbol(options.currency, options.showCurrency)).trim();
|
78
|
+
// console.log(`localizedNumber: ${localizedNumber}.`);
|
79
|
+
return localizedNumber;
|
80
|
+
};
|
81
|
+
const parseFormatNumber = (lang, value) => {
|
82
|
+
if (!value) {
|
83
|
+
return null;
|
84
|
+
}
|
85
|
+
return new NumberParser(lang).parse(value);
|
86
|
+
};
|
87
|
+
|
88
|
+
export { CurrencySymbolEnum as C, formatNumber as a, formatAccountNumber as f, getCurrencySymbol as g, parseFormatNumber as p };
|
89
|
+
//# sourceMappingURL=NumberFormat-CvvBWhHc.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NumberFormat-CvvBWhHc.js","sources":["../src/enums/CurrencySymbolEnum.ts","../src/Format/NumberParser.ts","../src/Format/NumberFormat.ts"],"sourcesContent":[null,null,null],"names":["CurrencySymbolEnum","NumberParser","constructor","locale","parts","NumberFormat","formatToParts","numerals","useGrouping","format","reverse","index","Map","map","d","i","_group","RegExp","find","type","value","_decimal","_numeral","join","_index","get","parse","trim","replace","NaN","formatAccountNumber","accountNumber","separator","arguments","length","undefined","getCurrencySymbol","currency","showCurrency","symbol","TWD","USD","VND","formatNumber","options","styleCurrency","currencyDisplay","showValue","minimumFractionDigits","maximumFractionDigits","trailingZeroDisplay","formatOptions","style","localizedNumber","lang","parseFormatNumber"],"mappings":";;IAAYA,mBAIX;AAJD,CAAA,UAAYA,kBAAkB,EAAA;AAC5BA,EAAAA,kBAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACXA,EAAAA,kBAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACXA,EAAAA,kBAAA,CAAA,KAAA,CAAA,GAAA,QAAS,CAAA;AACX,CAAC,EAJWA,kBAAkB,KAAlBA,kBAAkB,GAI7B,EAAA,CAAA,CAAA;;ACFD,MAAMC,YAAY,CAAA;EAMhBC,WAAAA,CAAYC,MAAc,EAAA;IACxB,MAAMC,KAAK,GAAG,IAAIC,YAAY,CAACF,MAAM,CAAC,CAACG,aAAa,CAAC,OAAO,CAAC,CAAA;IAE7D,MAAMC,QAAQ,GAAG,CACf,GAAG,IAAIF,YAAY,CAACF,MAAM,EAAE;AAAEK,MAAAA,WAAW,EAAE,KAAA;KAAO,CAAC,CAACC,MAAM,CAAC,UAAU,CAAC,CACvE,CAACC,OAAO,EAAE,CAAA;IAEX,MAAMC,KAAK,GAAG,IAAIC,GAAG,CAACL,QAAQ,CAACM,GAAG,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAK,CAACD,CAAC,EAAEC,CAAC,CAAC,CAAC,CAAC,CAAA;IAErD,IAAI,CAACC,MAAM,GAAG,IAAIC,MAAM,CACtB,CAAIb,CAAAA,EAAAA,KAAK,CAACc,IAAI,CAAEJ,CAAC,IAAKA,CAAC,CAACK,IAAI,KAAK,OAAO,CAAC,EAAEC,KAAK,CAAA,CAAA,CAAG,EACnD,GAAG,CACJ,CAAA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
@@ -0,0 +1,94 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var intlNumberformat = require('@formatjs/intl-numberformat');
|
4
|
+
|
5
|
+
exports.CurrencySymbolEnum = void 0;
|
6
|
+
(function (CurrencySymbolEnum) {
|
7
|
+
CurrencySymbolEnum["TWD"] = "NT$";
|
8
|
+
CurrencySymbolEnum["USD"] = "US$";
|
9
|
+
CurrencySymbolEnum["VND"] = "\u20AB";
|
10
|
+
})(exports.CurrencySymbolEnum || (exports.CurrencySymbolEnum = {}));
|
11
|
+
|
12
|
+
class NumberParser {
|
13
|
+
constructor(locale) {
|
14
|
+
const parts = new intlNumberformat.NumberFormat(locale).formatToParts(12345.6);
|
15
|
+
const numerals = [...new intlNumberformat.NumberFormat(locale, {
|
16
|
+
useGrouping: false
|
17
|
+
}).format(9876543210)].reverse();
|
18
|
+
const index = new Map(numerals.map((d, i) => [d, i]));
|
19
|
+
this._group = new RegExp(`[${parts.find(d => d.type === 'group')?.value}]`, 'g');
|
20
|
+
this._decimal = new RegExp(`[${parts.find(d => d.type === 'decimal')?.value}]`);
|
21
|
+
this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');
|
22
|
+
this._index = d => index.get(d);
|
23
|
+
}
|
24
|
+
parse(value) {
|
25
|
+
value = value?.trim()?.replace(this._group, '')?.replace(this._decimal, '.')?.replace(this._numeral, this._index);
|
26
|
+
return value ? +value : NaN;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
const formatAccountNumber = function (accountNumber) {
|
31
|
+
let separator = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ' ';
|
32
|
+
return accountNumber?.replace(/\s?/g, '').replace(/(\d{4})/g, `$1${separator}`).trim();
|
33
|
+
};
|
34
|
+
const getCurrencySymbol = function (currency) {
|
35
|
+
let showCurrency = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
36
|
+
let symbol;
|
37
|
+
switch (currency) {
|
38
|
+
case 'TWD':
|
39
|
+
symbol = exports.CurrencySymbolEnum.TWD;
|
40
|
+
break;
|
41
|
+
case 'USD':
|
42
|
+
symbol = exports.CurrencySymbolEnum.USD;
|
43
|
+
break;
|
44
|
+
case 'VND':
|
45
|
+
symbol = exports.CurrencySymbolEnum.VND;
|
46
|
+
break;
|
47
|
+
default:
|
48
|
+
symbol = '';
|
49
|
+
}
|
50
|
+
if (!showCurrency) {
|
51
|
+
symbol = '';
|
52
|
+
}
|
53
|
+
return symbol;
|
54
|
+
};
|
55
|
+
const formatNumber = options => {
|
56
|
+
options.value = options.value ?? 0;
|
57
|
+
options.styleCurrency = options.styleCurrency ?? 'currency';
|
58
|
+
options.currencyDisplay = options.currencyDisplay ?? 'code';
|
59
|
+
options.showValue = options.showValue ?? true;
|
60
|
+
options.showCurrency = options.showCurrency ?? true;
|
61
|
+
options.minimumFractionDigits = options.minimumFractionDigits ?? 0;
|
62
|
+
options.maximumFractionDigits = options.maximumFractionDigits ?? 0;
|
63
|
+
options.trailingZeroDisplay = options.trailingZeroDisplay ?? 'stripIfInteger';
|
64
|
+
// console.log(`options: ${JSON.stringify(options)}.`);
|
65
|
+
let formatOptions = {
|
66
|
+
style: options.styleCurrency,
|
67
|
+
currency: options.currency,
|
68
|
+
currencyDisplay: options.currencyDisplay,
|
69
|
+
minimumFractionDigits: options.minimumFractionDigits,
|
70
|
+
maximumFractionDigits: options.maximumFractionDigits,
|
71
|
+
trailingZeroDisplay: options.trailingZeroDisplay
|
72
|
+
};
|
73
|
+
if (options.options) {
|
74
|
+
formatOptions = {
|
75
|
+
...formatOptions,
|
76
|
+
...options.options
|
77
|
+
};
|
78
|
+
}
|
79
|
+
let localizedNumber = intlNumberformat.NumberFormat(options.lang, formatOptions).format(options.value).replace(/^([\d,.]+)(\s*)([A-Z]{3})$/, '$3$2$1').replace(/([\d,.]+)$/, options.showValue ? ' $1' : ' ********').replace(options.currency, getCurrencySymbol(options.currency, options.showCurrency)).trim();
|
80
|
+
// console.log(`localizedNumber: ${localizedNumber}.`);
|
81
|
+
return localizedNumber;
|
82
|
+
};
|
83
|
+
const parseFormatNumber = (lang, value) => {
|
84
|
+
if (!value) {
|
85
|
+
return null;
|
86
|
+
}
|
87
|
+
return new NumberParser(lang).parse(value);
|
88
|
+
};
|
89
|
+
|
90
|
+
exports.formatAccountNumber = formatAccountNumber;
|
91
|
+
exports.formatNumber = formatNumber;
|
92
|
+
exports.getCurrencySymbol = getCurrencySymbol;
|
93
|
+
exports.parseFormatNumber = parseFormatNumber;
|
94
|
+
//# sourceMappingURL=NumberFormat-glmpbk7E.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NumberFormat-glmpbk7E.js","sources":["../src/enums/CurrencySymbolEnum.ts","../src/Format/NumberParser.ts","../src/Format/NumberFormat.ts"],"sourcesContent":[null,null,null],"names":["CurrencySymbolEnum","NumberParser","constructor","locale","parts","NumberFormat","formatToParts","numerals","useGrouping","format","reverse","index","Map","map","d","i","_group","RegExp","find","type","value","_decimal","_numeral","join","_index","get","parse","trim","replace","NaN","formatAccountNumber","accountNumber","separator","arguments","length","undefined","getCurrencySymbol","currency","showCurrency","symbol","TWD","USD","VND","formatNumber","options","styleCurrency","currencyDisplay","showValue","minimumFractionDigits","maximumFractionDigits","trailingZeroDisplay","formatOptions","style","localizedNumber","lang","parseFormatNumber"],"mappings":";;;;AAAYA,oCAIX;AAJD,CAAA,UAAYA,kBAAkB,EAAA;AAC5BA,EAAAA,kBAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACXA,EAAAA,kBAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACXA,EAAAA,kBAAA,CAAA,KAAA,CAAA,GAAA,QAAS,CAAA;AACX,CAAC,EAJWA,0BAAkB,KAAlBA,0BAAkB,GAI7B,EAAA,CAAA,CAAA;;ACFD,MAAMC,YAAY,CAAA;EAMhBC,WAAAA,CAAYC,MAAc,EAAA;IACxB,MAAMC,KAAK,GAAG,IAAIC,6BAAY,CAACF,MAAM,CAAC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KAAK,CAAC,CACrBQ,OAAO,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAC/CA,OAAO,CAAC,YAAY,EAAEgB,OAAO,CAACG,SAAS,GAAG,KAAK,GAAG,WAAW,CAAC,CAC9DnB,OAAO,CACNgB,OAAO,CAACP,QAAQ,EAChBD,iBAAiB,CAACQ,OAAO,CAACP,QAAQ,EAAEO,OAAO,CAACN,YAAY,CAAC,CAC1D,CACAX,IAAI,EAAE,CAAA;AAET;AAEA,EAAA,OAAO0B,eAAe,CAAA;AACxB,EAAC;AAED,MAAME,iBAAiB,GAAGA,CAACD,IAAY,EAAElC,KAAa,KAAI;EACxD,IAAI,CAACA,KAAK,EAAE;AACV,IAAA,OAAO,IAAI,CAAA;AACb,GAAA;EAEA,OAAO,IAAInB,YAAY,CAACqD,IAAI,CAAC,CAAC5B,KAAK,CAACN,KAAK,CAAC,CAAA;AAC5C;;;;;;;"}
|
package/dist/config-cli.cjs
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
var lodash = require('lodash');
|
4
|
+
var EnvironmentEnum = require('./EnvironmentEnum-BjXsfSRZ.js');
|
4
5
|
var fs = require('fs');
|
5
6
|
var googleAuthLibrary = require('google-auth-library');
|
6
7
|
var googleapis = require('googleapis');
|
@@ -169,17 +170,17 @@ const envMap = env => {
|
|
169
170
|
case 'dev':
|
170
171
|
case 'develop':
|
171
172
|
case 'development':
|
172
|
-
result =
|
173
|
+
result = EnvironmentEnum.EnvironmentEnum.DEV;
|
173
174
|
break;
|
174
175
|
case 'stg':
|
175
176
|
case 'stag':
|
176
177
|
case 'staging':
|
177
|
-
result =
|
178
|
+
result = EnvironmentEnum.EnvironmentEnum.STAGING;
|
178
179
|
break;
|
179
180
|
case 'prd':
|
180
181
|
case 'prod':
|
181
182
|
case 'production':
|
182
|
-
result =
|
183
|
+
result = EnvironmentEnum.EnvironmentEnum.PRODUCTION;
|
183
184
|
break;
|
184
185
|
default:
|
185
186
|
throw new Error(`env ${env} not supported.`);
|
@@ -486,6 +487,10 @@ const fetchRawValue = async options => {
|
|
486
487
|
return null;
|
487
488
|
};
|
488
489
|
|
490
|
+
Object.defineProperty(exports, "EnvironmentEnum", {
|
491
|
+
enumerable: true,
|
492
|
+
get: function () { return EnvironmentEnum.EnvironmentEnum; }
|
493
|
+
});
|
489
494
|
exports.fetchAll = fetchAll;
|
490
495
|
exports.fetchConfig = fetchConfig;
|
491
496
|
exports.fetchLocales = fetchLocales;
|
package/dist/config-cli.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config-cli.cjs","sources":["../src/Config/Output.ts","../src/Config/Config.ts","../src/Config/GoogleAuth.ts","../src/Config/Locales.ts","../src/Config/Sitemap.ts","../src/config-cli.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["outputToFile","content","options","filename","isFilenameLowercase","toLowerCase","filePath","folder","existsSync","mkdirSync","recursive","writeFile","encoding","flag","err","console","log","processConfig","rows","versionConfig","params","map","key","forEach","row","index","processRow","data","versionName","paramsName","undefined","paramsTypeHandler","isJsonString","str","JSON","parse","e","booleanText","includes","toUpperCase","exportConfig","config","exportAs","stringify","Error","envMap","env","result","contentMap","value","lodash","isNull","transformConfig","configKeyPrefix","envKey","Object","keys","newConfigKey","extensionFile","join","Array","isArray","hasOwnProperty","SCOPES","GOOGLE_APPLICATION_CREDENTIALS_PATH","path","process","cwd","authorizeServiceAccount","isExist","scopes","keyFile","GoogleAuth","fetchGoogleSheet","auth","spreadsheetId","spreadsheetTab","sheets","google","version","res","spreadsheets","values","get","range","majorDimension","processLocales","lang","langData","dIndex","exportLocales","generateRobots","hostname","transformSitemap","urls","includeRobots","stream","SitemapStream","lastmodDateOnly","xmlns","news","xhtml","image","video","custom","streamToPromise","Readable","from","pipe","then","toString","innerFetchLocales","length","output","innerFetchConfig","fetchLocales","error","fetchConfig","fetchAll","option","formatAs","fetchRawValue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;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li.cjs","sources":["../src/Config/Output.ts","../src/Config/Config.ts","../src/Config/GoogleAuth.ts","../src/Config/Locales.ts","../src/Config/Sitemap.ts","../src/config-cli.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["outputToFile","content","options","filename","isFilenameLowercase","toLowerCase","filePath","folder","existsSync","mkdirSync","recursive","writeFile","encoding","flag","err","console","log","processConfig","rows","versionConfig","params","map","key","forEach","row","index","processRow","data","versionName","paramsName","undefined","paramsTypeHandler","isJsonString","str","JSON","parse","e","booleanText","includes","toUpperCase","exportConfig","config","exportAs","stringify","Error","envMap","env","result","EnvironmentEnum","DEV","STAGING","PRODUCTION","contentMap","value","lodash","isNull","transformConfig","configKeyPrefix","envKey","Object","keys","newConfigKey","extensionFile","join","Array","isArray","hasOwnProperty","SCOPES","GOOGLE_APPLICATION_CREDENTIALS_PATH","path","process","cwd","authorizeServiceAccount","isExist","scopes","keyFile","GoogleAuth","fetchGoogleSheet","auth","spreadsheetId","spreadsheetTab","sheets","google","version","res","spreadsheets","values","get","range","majorDimension","processLocales","lang","langData","dIndex","exportLocales","generateRobots","hostname","transformSitemap","urls","includeRobots","stream","SitemapStream","lastmodDateOnly","xmlns","news","xhtml","image","video","custom","streamToPromise","Readable","from","pipe","then","toString","innerFetchLocales","length","output","innerFetchConfig","fetchLocales","error","fetchConfig","fetchAll","option","formatAs","fetchRawValue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;;;;;AAMG;AACH,MAAMA,YAAY,GAAGA,CAACC,OAAe,EAAEC,OAAsB,KAAU;AACrE,EAAA,IAAIC,QAAQ,GAAGD,OAAO,CAACC,QAAQ,CAAA;EAE/B,IAAID,OAAO,CAACE,mBAAmB,EAAE;AAC/BD,IAAAA,QAAQ,GAAGA,QAAQ,CAACE,WAAW,EAAE,CAAA;AACnC,GAAA;EAEA,MAAMC,QAAQ,GAAG,CAAGJ,EAAAA,OAAO,CAACK,MAAM,CAAA,CAAA,EAAIJ,QAAQ,CAA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,MAAM4E,IAAI,GAAGN,uBAAuB,EAAE,CAAA;AAEtCtE,IAAAA,OAAO,CAACqB,OAAO,CAAEoG,MAAM,IAAI;AACzB,MAAA,IAAIA,MAAM,CAACC,QAAQ,KAAK,SAAS,EAAE;AACjCT,QAAAA,iBAAiB,CAACrC,IAAI,EAAE6C,MAAM,CAAC,CAAA;AACjC,OAAC,MAAM,IAAIA,MAAM,CAACC,QAAQ,KAAK,QAAQ,EAAE;AACvCN,QAAAA,gBAAgB,CAACxC,IAAI,EAAE6C,MAAM,CAAC,CAAA;AAChC,OAAA;AACF,KAAC,CAAC,CAAA;GACH,CAAC,OAAOH,KAAK,EAAE;AACdzG,IAAAA,OAAO,CAACyG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AACF,EAAC;AAED;;;;;AAKG;AACUK,MAAAA,aAAa,GAAG,MAC3B3H,OAAsB,IACiB;EACvC,IAAI;AACF,IAAA,MAAM4E,IAAI,GAAGN,uBAAuB,EAAE,CAAA;AAEtC,IAAA,OAAO,MAAMK,gBAAgB,CAC3BC,IAAI,EACJ5E,OAAO,CAAC6E,aAAa,EACrB7E,OAAO,CAAC8E,cAAc,CACvB,CAAA;GACF,CAAC,OAAOwC,KAAK,EAAE;AACdzG,IAAAA,OAAO,CAACyG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACb;;;;;;;;;;;;;"}
|
package/dist/config-cli.d.ts
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
import { EnvironmentEnum } from './enums/EnvironmentEnum';
|
1
2
|
import { ConfigOptions } from './interfaces/Config/ConfigOptions';
|
2
3
|
export { transformConfig } from './Config/Config';
|
3
4
|
export { transformSitemap } from './Config/Sitemap';
|
4
5
|
export * from './interfaces/Config/ConfigOptions';
|
5
6
|
export * from './interfaces/Config/OutputOptions';
|
6
7
|
export type { ExportAs, FormatAs } from './types/Config/OptionType';
|
8
|
+
export { EnvironmentEnum };
|
7
9
|
/**
|
8
10
|
* Fetch locales
|
9
11
|
*
|
package/dist/config-cli.js
CHANGED
@@ -10,8 +10,15 @@ var _exportNames = {
|
|
10
10
|
fetchAll: true,
|
11
11
|
fetchRawValue: true,
|
12
12
|
transformConfig: true,
|
13
|
+
EnvironmentEnum: true,
|
13
14
|
transformSitemap: true
|
14
15
|
};
|
16
|
+
Object.defineProperty(exports, "EnvironmentEnum", {
|
17
|
+
enumerable: true,
|
18
|
+
get: function get() {
|
19
|
+
return _EnvironmentEnum.EnvironmentEnum;
|
20
|
+
}
|
21
|
+
});
|
15
22
|
exports.fetchRawValue = exports.fetchLocales = exports.fetchConfig = exports.fetchAll = void 0;
|
16
23
|
Object.defineProperty(exports, "transformConfig", {
|
17
24
|
enumerable: true,
|
@@ -28,6 +35,7 @@ Object.defineProperty(exports, "transformSitemap", {
|
|
28
35
|
var _Config = require("./Config/Config");
|
29
36
|
var _GoogleAuth = require("./Config/GoogleAuth");
|
30
37
|
var _Locales = require("./Config/Locales");
|
38
|
+
var _EnvironmentEnum = require("./enums/EnvironmentEnum");
|
31
39
|
var _Sitemap = require("./Config/Sitemap");
|
32
40
|
var _ConfigOptions = require("./interfaces/Config/ConfigOptions");
|
33
41
|
Object.keys(_ConfigOptions).forEach(function (key) {
|
package/dist/config-cli.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config-cli.js","names":["_Config","require","_GoogleAuth","_Locales","_Sitemap","_ConfigOptions","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_OutputOptions","_regeneratorRuntime","e","t","r","n","o","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","_catch","delegateYield","asyncGeneratorStep","_asyncToGenerator","arguments","apply","_next","_throw","innerFetchLocales","_ref","_callee","auth","options","data","_callee$","_context","fetchGoogleSheet","spreadsheetId","spreadsheetTab","console","log","processLocales","exportLocales","output","_x","_x2","innerFetchConfig","_ref2","_callee2","_callee2$","_context2","processConfig","exportConfig","_x3","_x4","fetchLocales","authorizeServiceAccount","error","fetchConfig","fetchAll","option","formatAs","fetchRawValue","_ref3","_callee3","_callee3$","_context3","t0","_x5"],"sources":["../src/config-cli.ts"],"sourcesContent":["import { GoogleAuth } from 'google-auth-library';\nimport { JSONClient } from 'google-auth-library/build/src/auth/googleauth';\nimport { exportConfig, processConfig } from './Config/Config';\nimport { authorizeServiceAccount, fetchGoogleSheet } from './Config/GoogleAuth';\nimport { exportLocales, processLocales } from './Config/Locales';\nimport { ConfigOptions } from './interfaces/Config/ConfigOptions';\n\nexport { transformConfig } from './Config/Config';\nexport { transformSitemap } from './Config/Sitemap';\nexport * from './interfaces/Config/ConfigOptions';\nexport * from './interfaces/Config/OutputOptions';\nexport type { ExportAs, FormatAs } from './types/Config/OptionType';\n\n/**\n * Private function to fetch locales\n *\n * @param {GoogleAuth<JSONClient>} auth\n * @param {ConfigOption} options\n * @return {Promise<void>}\n */\nconst innerFetchLocales = async (\n auth: GoogleAuth<JSONClient>,\n options: ConfigOptions,\n): Promise<void> => {\n // console.log('auth', auth);\n\n const values = await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n\n if (!values || values.length === 0) {\n console.log('No data found.');\n return;\n }\n\n // console.log('values,', values);\n\n const data = processLocales(values);\n\n exportLocales(data, options.output);\n};\n\n/**\n * Private function to fetch config\n *\n * @param {GoogleAuth<JSONClient>} auth\n * @param {ConfigOption} options\n * @return {Promise<void>}\n */\nconst innerFetchConfig = async (\n auth: GoogleAuth<JSONClient>,\n options: ConfigOptions,\n): Promise<void> => {\n // console.log('auth', auth);\n\n const values = await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n\n if (!values || values.length === 0) {\n console.log('No data found.');\n return;\n }\n\n // console.log('values,', values);\n\n const data = processConfig(values);\n\n exportConfig(data, options.output);\n};\n\n/**\n * Fetch locales\n *\n * @param {ConfigOptions} options\n * @return {void}\n */\nexport const fetchLocales = (options: ConfigOptions): void => {\n try {\n const auth = authorizeServiceAccount();\n\n innerFetchLocales(auth, options);\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch config\n *\n * @param {ConfigOptions} options\n * @return {void}\n */\nexport const fetchConfig = (options: ConfigOptions): void => {\n try {\n const auth = authorizeServiceAccount();\n\n innerFetchConfig(auth, options);\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch all format from array options\n *\n * @param {ConfigOptions[]} options\n * @return {void}\n */\nexport const fetchAll = (options: ConfigOptions[]): void => {\n try {\n const auth = authorizeServiceAccount();\n\n options.forEach((option) => {\n if (option.formatAs === 'locales') {\n innerFetchLocales(auth, option);\n } else if (option.formatAs === 'config') {\n innerFetchConfig(auth, option);\n }\n });\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch raw value\n *\n * @param {ConfigOptions} options\n * @return {Promise<any[][] | null | undefined>}\n */\nexport const fetchRawValue = async (\n options: ConfigOptions,\n): Promise<any[][] | null | undefined> => {\n try {\n const auth = authorizeServiceAccount();\n\n return await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n } catch (error) {\n console.error(error);\n }\n\n return null;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,OA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3B,OAAO,CAACkB,KAAK,CAAAS,SAAA,CAAAC,EAAM,CAAC;QAAC;UAAA,OAAAD,SAAA,CAAAnF,MAAA,WAGhB,IAAI;QAAA;QAAA;UAAA,OAAAmF,SAAA,CAAAnD,IAAA;MAAA;IAAA,GAAAiD,QAAA;EAAA,CACZ;EAAA,gBAhBYF,aAAaA,CAAAM,GAAA;IAAA,OAAAL,KAAA,CAAAtC,KAAA,OAAAD,SAAA;EAAA;AAAA,GAgBzB","ignoreList":[]}
|
1
|
+
{"version":3,"file":"config-cli.js","names":["_Config","require","_GoogleAuth","_Locales","_EnvironmentEnum","_Sitemap","_ConfigOptions","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_OutputOptions","_regeneratorRuntime","e","t","r","n","o","value","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","length","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","_catch","delegateYield","asyncGeneratorStep","_asyncToGenerator","arguments","apply","_next","_throw","innerFetchLocales","_ref","_callee","auth","options","data","_callee$","_context","fetchGoogleSheet","spreadsheetId","spreadsheetTab","console","log","processLocales","exportLocales","output","_x","_x2","innerFetchConfig","_ref2","_callee2","_callee2$","_context2","processConfig","exportConfig","_x3","_x4","fetchLocales","authorizeServiceAccount","error","fetchConfig","fetchAll","option","formatAs","fetchRawValue","_ref3","_callee3","_callee3$","_context3","t0","_x5"],"sources":["../src/config-cli.ts"],"sourcesContent":["import { GoogleAuth } from 'google-auth-library';\nimport { JSONClient } from 'google-auth-library/build/src/auth/googleauth';\nimport { exportConfig, processConfig } from './Config/Config';\nimport { authorizeServiceAccount, fetchGoogleSheet } from './Config/GoogleAuth';\nimport { exportLocales, processLocales } from './Config/Locales';\nimport { EnvironmentEnum } from './enums/EnvironmentEnum';\nimport { ConfigOptions } from './interfaces/Config/ConfigOptions';\n\nexport { transformConfig } from './Config/Config';\nexport { transformSitemap } from './Config/Sitemap';\nexport * from './interfaces/Config/ConfigOptions';\nexport * from './interfaces/Config/OutputOptions';\nexport type { ExportAs, FormatAs } from './types/Config/OptionType';\nexport { EnvironmentEnum };\n\n/**\n * Private function to fetch locales\n *\n * @param {GoogleAuth<JSONClient>} auth\n * @param {ConfigOption} options\n * @return {Promise<void>}\n */\nconst innerFetchLocales = async (\n auth: GoogleAuth<JSONClient>,\n options: ConfigOptions,\n): Promise<void> => {\n // console.log('auth', auth);\n\n const values = await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n\n if (!values || values.length === 0) {\n console.log('No data found.');\n return;\n }\n\n // console.log('values,', values);\n\n const data = processLocales(values);\n\n exportLocales(data, options.output);\n};\n\n/**\n * Private function to fetch config\n *\n * @param {GoogleAuth<JSONClient>} auth\n * @param {ConfigOption} options\n * @return {Promise<void>}\n */\nconst innerFetchConfig = async (\n auth: GoogleAuth<JSONClient>,\n options: ConfigOptions,\n): Promise<void> => {\n // console.log('auth', auth);\n\n const values = await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n\n if (!values || values.length === 0) {\n console.log('No data found.');\n return;\n }\n\n // console.log('values,', values);\n\n const data = processConfig(values);\n\n exportConfig(data, options.output);\n};\n\n/**\n * Fetch locales\n *\n * @param {ConfigOptions} options\n * @return {void}\n */\nexport const fetchLocales = (options: ConfigOptions): void => {\n try {\n const auth = authorizeServiceAccount();\n\n innerFetchLocales(auth, options);\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch config\n *\n * @param {ConfigOptions} options\n * @return {void}\n */\nexport const fetchConfig = (options: ConfigOptions): void => {\n try {\n const auth = authorizeServiceAccount();\n\n innerFetchConfig(auth, options);\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch all format from array options\n *\n * @param {ConfigOptions[]} options\n * @return {void}\n */\nexport const fetchAll = (options: ConfigOptions[]): void => {\n try {\n const auth = authorizeServiceAccount();\n\n options.forEach((option) => {\n if (option.formatAs === 'locales') {\n innerFetchLocales(auth, option);\n } else if (option.formatAs === 'config') {\n innerFetchConfig(auth, option);\n }\n });\n } catch (error) {\n console.error(error);\n }\n};\n\n/**\n * Fetch raw value\n *\n * @param {ConfigOptions} options\n * @return {Promise<any[][] | null | undefined>}\n */\nexport const fetchRawValue = async (\n options: ConfigOptions,\n): Promise<any[][] | null | undefined> => {\n try {\n const auth = authorizeServiceAccount();\n\n return await fetchGoogleSheet(\n auth,\n options.spreadsheetId,\n options.spreadsheetTab,\n );\n } catch (error) {\n console.error(error);\n }\n\n return null;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAH,OAAA;AAIA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AAAAM,MAAA,CAAAC,IAAA,CAAAF,cAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,cAAA,CAAAI,GAAA;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ironmentEnum-UcQ6Il1O.js';
|
2
3
|
import { existsSync, mkdirSync, writeFile } from 'fs';
|
3
4
|
import { GoogleAuth } from 'google-auth-library';
|
4
5
|
import { google } from 'googleapis';
|
@@ -146,17 +147,17 @@ const envMap = env => {
|
|
146
147
|
case 'dev':
|
147
148
|
case 'develop':
|
148
149
|
case 'development':
|
149
|
-
result =
|
150
|
+
result = EnvironmentEnum.DEV;
|
150
151
|
break;
|
151
152
|
case 'stg':
|
152
153
|
case 'stag':
|
153
154
|
case 'staging':
|
154
|
-
result =
|
155
|
+
result = EnvironmentEnum.STAGING;
|
155
156
|
break;
|
156
157
|
case 'prd':
|
157
158
|
case 'prod':
|
158
159
|
case 'production':
|
159
|
-
result =
|
160
|
+
result = EnvironmentEnum.PRODUCTION;
|
160
161
|
break;
|
161
162
|
default:
|
162
163
|
throw new Error(`env ${env} not supported.`);
|
@@ -463,5 +464,5 @@ const fetchRawValue = async options => {
|
|
463
464
|
return null;
|
464
465
|
};
|
465
466
|
|
466
|
-
export { fetchAll, fetchConfig, fetchLocales, fetchRawValue, transformConfig, transformSitemap };
|
467
|
+
export { EnvironmentEnum, fetchAll, fetchConfig, fetchLocales, fetchRawValue, transformConfig, transformSitemap };
|
467
468
|
//# sourceMappingURL=config-cli.mjs.map
|
package/dist/config-cli.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config-cli.mjs","sources":["../src/Config/Output.ts","../src/Config/Config.ts","../src/Config/GoogleAuth.ts","../src/Config/Locales.ts","../src/Config/Sitemap.ts","../src/config-cli.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["outputToFile","content","options","filename","isFilenameLowercase","toLowerCase","filePath","folder","existsSync","mkdirSync","recursive","writeFile","encoding","flag","err","console","log","processConfig","rows","versionConfig","params","map","key","forEach","row","index","processRow","data","versionName","paramsName","undefined","paramsTypeHandler","isJsonString","str","JSON","parse","e","booleanText","includes","toUpperCase","exportConfig","config","exportAs","stringify","Error","envMap","env","result","contentMap","value","lodash","isNull","transformConfig","configKeyPrefix","envKey","Object","keys","newConfigKey","extensionFile","join","Array","isArray","hasOwnProperty","SCOPES","GOOGLE_APPLICATION_CREDENTIALS_PATH","path","process","cwd","authorizeServiceAccount","isExist","scopes","keyFile","GoogleAuth","fetchGoogleSheet","auth","spreadsheetId","spreadsheetTab","sheets","google","version","res","spreadsheets","values","get","range","majorDimension","processLocales","lang","langData","dIndex","exportLocales","generateRobots","hostname","transformSitemap","urls","includeRobots","stream","SitemapStream","lastmodDateOnly","xmlns","news","xhtml","image","video","custom","streamToPromise","Readable","from","pipe","then","toString","innerFetchLocales","length","output","innerFetchConfig","fetchLocales","error","fetchConfig","fetchAll","option","formatAs","fetchRawValue"],"mappings":";;;;;;;;;AAGA;;;;;;AAMG;AACH,MAAMA,YAAY,GAAGA,CAACC,OAAe,EAAEC,OAAsB,KAAU;AACrE,EAAA,IAAIC,QAAQ,GAAGD,OAAO,CAACC,QAAQ,CAAA;EAE/B,IAAID,OAAO,CAACE,mBAAmB,EAAE;AAC/BD,IAAAA,QAAQ,GAAGA,QAAQ,CAACE,WAAW,EAAE,CAAA;AACnC,GAAA;EAEA,MAAMC,QAAQ,GAAG,CAAGJ,EAAAA,OAAO,CAACK,MAAM,CAAA,CAAA,EAAIJ,QAAQ,CAAE,CAAA,CAAA;AAEhD,EAAA,IAAI,CAACK,UAAU,CAACN,OAAO,CAACK,MAAM,CAAC,EAAE;AAC/BE,IAAAA,SAAS,CAACP,OAAO,CAACK,MAAM,EAAE;AAAEG,MAAAA,SAAS,EAAE,IAAA;AAAM,KAAA,CAAC,CAAA;AAChD,GAAA;AAEAC,EAAAA,SAAS,CACPL,QAAQ,EACRL,OAAO,EACP;AAAEW,IAAAA,QAAQ,EAAE,OAAO;AAAEC,IAAAA,IAAI,EAAE,GAAA;GAAK,EAChC,UAAUC,GAAG,EAAA;AACX,IAAA,IAAIA,GAAG,EAAE;AACP,MAAA,MAAMA,GAAG,CAAA;AACX,KAAA;AAEAC,IA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,CAAA;AACtB,GAAA;AACF,EAAC;AAED;;;;;AAKG;AACUK,MAAAA,aAAa,GAAG,MAC3BvH,OAAsB,IACiB;EACvC,IAAI;AACF,IAAA,MAAMwE,IAAI,GAAGN,uBAAuB,EAAE,CAAA;AAEtC,IAAA,OAAO,MAAMK,gBAAgB,CAC3BC,IAAI,EACJxE,OAAO,CAACyE,aAAa,EACrBzE,OAAO,CAAC0E,cAAc,CACvB,CAAA;GACF,CAAC,OAAOwC,KAAK,EAAE;AACdrG,IAAAA,OAAO,CAACqG,KAAK,CAACA,KAAK,CAAC,CAAA;AACtB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACb;;;;"}
|
1
|
+
{"version":3,"file":"config-cli.mjs","sources":["../src/Config/Output.ts","../src/Config/Config.ts","../src/Config/GoogleAuth.ts","../src/Config/Locales.ts","../src/Config/Sitemap.ts","../src/config-cli.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["outputToFile","content","options","filename","isFilenameLowercase","toLowerCase","filePath","folder","existsSync","mkdirSync","recursive","writeFile","encoding","flag","err","console","log","processConfig","rows","versionConfig","params","map","key","forEach","row","index","processRow","data","versionName","paramsName","undefined","paramsTypeHandler","isJsonString","str","JSON","parse","e","booleanText","includes","toUpperCase","exportConfig","config","exportAs","stringify","Error","envMap","env","result","EnvironmentEnum","DEV","STAGING","PRODUCTION","contentMap","value","lodash","isNull","transformConfig","configKeyPrefix","envKey","Object","keys","newConfigKey","extensionFile","join","Array","isArray","hasOwnProperty","SCOPES","GOOGLE_APPLICATION_CREDENTIALS_PATH","path","process","cwd","authorizeServiceAccount","isExist","scopes","keyFile","GoogleAuth","fetchGoogleSheet","auth","spreadsheetId","spreadsheetTab","sheets","google","version","res","spreadsheets","values","get","range","majorDimension","processLocales","lang","langData","dIndex","exportLocales","generateRobots","hostname","transformSitemap","urls","includeRobots","stream","SitemapStream","lastmodDateOnly","xmlns","news","xhtml","image","video","custom","streamToPromise","Readable","from","pipe","then","toString","innerFetchLocales","length","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;AACtB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACb;;;;"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.EnvironmentEnum = void 0;
|
7
|
+
var EnvironmentEnum = exports.EnvironmentEnum = /*#__PURE__*/function (EnvironmentEnum) {
|
8
|
+
EnvironmentEnum["DEV"] = "dev";
|
9
|
+
EnvironmentEnum["STAGING"] = "staging";
|
10
|
+
EnvironmentEnum["PRODUCTION"] = "production";
|
11
|
+
return EnvironmentEnum;
|
12
|
+
}({});
|
13
|
+
//# sourceMappingURL=EnvironmentEnum.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EnvironmentEnum.js","names":["EnvironmentEnum","exports"],"sources":["../../src/enums/EnvironmentEnum.ts"],"sourcesContent":["export enum EnvironmentEnum {\n DEV = 'dev',\n STAGING = 'staging',\n PRODUCTION = 'production',\n}\n"],"mappings":";;;;;;IAAYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA","ignoreList":[]}
|