@kununu/phraseapp-cli 4.0.0 → 4.0.2

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.
@@ -18,6 +18,15 @@ Add to ```package.json```
18
18
  "check-translations": "SOURCE_DIR=src node ./node_modules/@kununu/phraseapp-cli/check-translations.js",
19
19
  ```
20
20
 
21
+ ### Add `report-check-translations` in .gitignore
22
+
23
+ Add to ```.gitignore````
24
+
25
+ ```json
26
+ # Check Translations Report Folder
27
+ report-check-translations/*
28
+ ```
29
+
21
30
  ## Configuration file
22
31
 
23
32
  You have to add to the ```.phraseapp.json``` file a new var dynamicKeys
@@ -54,8 +63,7 @@ You have to add to the ```.phraseapp.json``` file a new var dynamicKeys
54
63
 
55
64
  ```
56
65
  /
57
- ├─ check-translations.js # Initial file
58
- ├─ dynamic_keys.json # Add all dynamic keys that we have in the app or keys that we get from Ambassador/BE.
66
+ ├─ check-translations.js # Initial file
59
67
  ├─ possible_dynamic_keys.json # Automatically created file indicating in which files we might have dynamic keys.
60
68
  ├─ missing_keys.json # Automatically created file indicating the keys that exist in the app but are not translated.
61
69
  ├─ not_used_keys.json # Automatically created file indicating the keys that are not being used in the app.
@@ -18,6 +18,9 @@ const POSSIBLE_DYNAMIC_KEYS_FILE = `${FOLDER_REPORT_CHECK_TRANSLATIONS}/possible
18
18
  function extractTranslationKeys() {
19
19
  const files = sync(
20
20
  `${process.cwd()}/${process.env.SOURCE_DIR}/**/**/*.{js,jsx,ts,tsx}`,
21
+ {
22
+ ignore: [`**/*.spec.{js,jsx,ts,tsx}`],
23
+ }
21
24
  );
22
25
  const keys = new Set();
23
26
  const possibleDynamicKeys = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kununu/phraseapp-cli",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "kununu",