@dittowords/cli 2.2.0 → 2.3.0
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/README.md +2 -2
- package/lib/consts.js +4 -3
- package/lib/init/project.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,9 +103,9 @@ If you run the CLI in a directory that does not contain a `ditto/` folder, the f
|
|
|
103
103
|
|
|
104
104
|
##### `projects`
|
|
105
105
|
|
|
106
|
-
A list of project names and ids to pull text from.
|
|
106
|
+
A list of project names and ids to pull text from.
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
Required if `components: true` is not specified.
|
|
109
109
|
|
|
110
110
|
**Note**: the `name` property is used for display purposes when referencing a project in the CLI, but does not have to be an
|
|
111
111
|
exact match with the project name in Ditto.
|
package/lib/consts.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
const homedir = require("os").homedir();
|
|
2
|
-
|
|
3
2
|
const path = require("path");
|
|
4
3
|
|
|
4
|
+
const TEXT_DIR = process.env.DITTO_TEXT_DIR || "ditto"
|
|
5
|
+
|
|
5
6
|
module.exports.API_HOST =
|
|
6
7
|
process.env.DITTO_API_HOST || "https://api.dittowords.com";
|
|
7
8
|
module.exports.CONFIG_FILE =
|
|
@@ -9,5 +10,5 @@ module.exports.CONFIG_FILE =
|
|
|
9
10
|
module.exports.PROJECT_CONFIG_FILE = path.normalize(
|
|
10
11
|
path.join("ditto", "config.yml")
|
|
11
12
|
);
|
|
12
|
-
module.exports.
|
|
13
|
-
module.exports.
|
|
13
|
+
module.exports.TEXT_DIR = TEXT_DIR
|
|
14
|
+
module.exports.TEXT_FILE = path.normalize(path.join(TEXT_DIR, "text.json"));
|
package/lib/init/project.js
CHANGED
|
@@ -78,6 +78,7 @@ async function collectProject(token, initialize) {
|
|
|
78
78
|
|
|
79
79
|
if (!(projects && projects.length)) {
|
|
80
80
|
console.log("You're currently syncing all projects in your workspace.");
|
|
81
|
+
console.log(output.warnText("Not seeing a project that you were expecting? Verify that developer mode is enabled on that project. More info: https://www.dittowords.com/docs/ditto-developer-mode"));
|
|
81
82
|
return null;
|
|
82
83
|
}
|
|
83
84
|
|