@bigbinary/neeto-commons-frontend 4.13.58 → 4.13.60
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/configs/nanos/rollup/watchConfig.js +83 -0
- package/dist/translations/ar.json +2 -1
- package/dist/translations/bg.json +2 -1
- package/dist/translations/ca.json +2 -1
- package/dist/translations/cs.json +2 -1
- package/dist/translations/da.json +2 -1
- package/dist/translations/de.json +2 -1
- package/dist/translations/es-MX.json +2 -1
- package/dist/translations/es.json +2 -1
- package/dist/translations/et.json +2 -1
- package/dist/translations/fi.json +2 -1
- package/dist/translations/fil.json +2 -1
- package/dist/translations/fr.json +2 -1
- package/dist/translations/hi.json +2 -1
- package/dist/translations/hr.json +2 -1
- package/dist/translations/id.json +2 -1
- package/dist/translations/it.json +2 -1
- package/dist/translations/ja.json +2 -1
- package/dist/translations/ko.json +2 -1
- package/dist/translations/nl.json +2 -1
- package/dist/translations/pl.json +2 -1
- package/dist/translations/pt-BR.json +2 -1
- package/dist/translations/pt.json +2 -1
- package/dist/translations/ro.json +2 -1
- package/dist/translations/ru.json +2 -1
- package/dist/translations/sk.json +2 -1
- package/dist/translations/sl.json +2 -1
- package/dist/translations/sv.json +2 -1
- package/dist/translations/th.json +2 -1
- package/dist/translations/tr.json +2 -1
- package/dist/translations/uk.json +2 -1
- package/dist/translations/vi.json +2 -1
- package/dist/translations/zh-CN.json +2 -1
- package/dist/translations/zh-TW.json +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
const fs = require("fs");
|
|
2
|
+
const path = require("path");
|
|
3
|
+
|
|
4
|
+
const copy = require("rollup-plugin-copy");
|
|
5
|
+
|
|
6
|
+
const emitReadyFile = destination => ({
|
|
7
|
+
name: "emit-ready-file",
|
|
8
|
+
writeBundle: () => {
|
|
9
|
+
const markerPath = path.join(destination, ".ready");
|
|
10
|
+
// eslint-disable-next-line security/detect-non-literal-fs-filename
|
|
11
|
+
require("fs").writeFileSync(
|
|
12
|
+
markerPath,
|
|
13
|
+
`Built at ${new Date().toISOString()}`
|
|
14
|
+
);
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const watchTranslations = currentDir => ({
|
|
19
|
+
name: "watch-translations",
|
|
20
|
+
buildStart() {
|
|
21
|
+
const possiblePaths = [
|
|
22
|
+
path.resolve(currentDir, "app/javascript/src/translations"),
|
|
23
|
+
path.resolve(currentDir, "src/translations"),
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
const translationsPath = possiblePaths.find(fs.existsSync);
|
|
27
|
+
|
|
28
|
+
if (translationsPath) {
|
|
29
|
+
this.addWatchFile(translationsPath);
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const copyFiles = (destination, customCopyPaths) => {
|
|
35
|
+
const targets = [
|
|
36
|
+
{ src: "package.json", dest: destination },
|
|
37
|
+
{ src: "*.d.ts", dest: destination },
|
|
38
|
+
{ src: "types/", dest: destination },
|
|
39
|
+
{ src: "LICENSE.md", dest: destination },
|
|
40
|
+
{ src: "src/translations", dest: path.join(destination, "src") },
|
|
41
|
+
{
|
|
42
|
+
src: "app/javascript/src/translations",
|
|
43
|
+
dest: path.join(destination, "app/javascript/src"),
|
|
44
|
+
},
|
|
45
|
+
...customCopyPaths.map(p => ({
|
|
46
|
+
src: p.src,
|
|
47
|
+
dest: path.join(destination, p.dest),
|
|
48
|
+
})),
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
const safeTargets = targets.filter(t => {
|
|
52
|
+
try {
|
|
53
|
+
return fs.existsSync(t.src);
|
|
54
|
+
} catch {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
return copy({ targets: safeTargets });
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
const buildWatchConfig = ({ currentDir, args, customCopyPaths = [] }) => {
|
|
63
|
+
if (!args.app) return { watchPlugins: [], appPath: null };
|
|
64
|
+
|
|
65
|
+
const packageJson = require(path.resolve(currentDir, "package.json"));
|
|
66
|
+
|
|
67
|
+
const appPath = path.resolve(
|
|
68
|
+
currentDir,
|
|
69
|
+
args.app,
|
|
70
|
+
"node_modules",
|
|
71
|
+
packageJson.name
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
const plugins = [
|
|
75
|
+
watchTranslations(currentDir),
|
|
76
|
+
copyFiles(appPath, customCopyPaths),
|
|
77
|
+
emitReadyFile(appPath),
|
|
78
|
+
];
|
|
79
|
+
|
|
80
|
+
return { watchPlugins: plugins, appPath };
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
module.exports = { buildWatchConfig };
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"copiedToClipboard": "Nakapag-copy sa clipboard!"
|
|
91
91
|
},
|
|
92
92
|
"error": {
|
|
93
|
-
"networkError": "Walang Koneksyon sa Internet"
|
|
93
|
+
"networkError": "Walang Koneksyon sa Internet",
|
|
94
|
+
"noInternetConnection": "Walang Koneksyon sa Internet."
|
|
94
95
|
}
|
|
95
96
|
},
|
|
96
97
|
"notice": {
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"copiedToClipboard": "Copiare negli appunti!"
|
|
91
91
|
},
|
|
92
92
|
"error": {
|
|
93
|
-
"networkError": "Nessuna connessione a Internet"
|
|
93
|
+
"networkError": "Nessuna connessione a Internet",
|
|
94
|
+
"noInternetConnection": "Nessuna connessione a Internet."
|
|
94
95
|
}
|
|
95
96
|
},
|
|
96
97
|
"notice": {
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"copiedToClipboard": "Copiado para a área de transferência!"
|
|
91
91
|
},
|
|
92
92
|
"error": {
|
|
93
|
-
"networkError": "Sem conexão com a Internet"
|
|
93
|
+
"networkError": "Sem conexão com a Internet",
|
|
94
|
+
"noInternetConnection": "Sem conexão com a Internet."
|
|
94
95
|
}
|
|
95
96
|
},
|
|
96
97
|
"notice": {
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"copiedToClipboard": "Copiado para a área de transferência!"
|
|
91
91
|
},
|
|
92
92
|
"error": {
|
|
93
|
-
"networkError": "Sem conexão com a Internet"
|
|
93
|
+
"networkError": "Sem conexão com a Internet",
|
|
94
|
+
"noInternetConnection": "Sem conexão à Internet."
|
|
94
95
|
}
|
|
95
96
|
},
|
|
96
97
|
"notice": {
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"copiedToClipboard": "Skopírované do schránky!"
|
|
91
91
|
},
|
|
92
92
|
"error": {
|
|
93
|
-
"networkError": "Žiadne pripojenie na internet."
|
|
93
|
+
"networkError": "Žiadne pripojenie na internet.",
|
|
94
|
+
"noInternetConnection": "Žiadne pripojenie na internet."
|
|
94
95
|
}
|
|
95
96
|
},
|
|
96
97
|
"notice": {
|
|
@@ -90,7 +90,8 @@
|
|
|
90
90
|
"copiedToClipboard": "Скопійовано в буфер обміну!"
|
|
91
91
|
},
|
|
92
92
|
"error": {
|
|
93
|
-
"networkError": "Немає з'єднання з Інтернетом."
|
|
93
|
+
"networkError": "Немає з'єднання з Інтернетом.",
|
|
94
|
+
"noInternetConnection": "Немає з'єднання з Інтернетом."
|
|
94
95
|
}
|
|
95
96
|
},
|
|
96
97
|
"notice": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.60",
|
|
4
4
|
"description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|