comment-variables 1.5.1 → 1.5.3

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 CHANGED
@@ -15,7 +15,7 @@ A CLI tool for configuring, managing and maintaining JavaScript comments as Java
15
15
  ## Installation
16
16
 
17
17
  ```
18
- npm install -g comment-variables
18
+ npm install -g comment-variables@latest
19
19
  ```
20
20
 
21
21
  ## Commands
@@ -29,4 +29,4 @@ export const allMDVirtualJSTSFileGlobs = [
29
29
 
30
30
  // prompts choices values
31
31
  export const classic = "classic";
32
- export const withVariations = "with variations";
32
+ export const advanced = "advanced";
package/library/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  hasPackageJson,
29
29
  hasGitFolder,
30
30
  classic,
31
- withVariations,
31
+ advanced,
32
32
  } from "./_commons/constants/bases.js";
33
33
 
34
34
  import { exitDueToFailure, logError } from "./_commons/utilities/helpers.js";
@@ -96,11 +96,11 @@ if (!fs.existsSync(rawConfigPath)) {
96
96
  generateExampleFilePath: "../generate.example.js",
97
97
  };
98
98
 
99
- const classicOrWithVariations = await prompts({
99
+ const classicOrAdvanced = await prompts({
100
100
  type: "select",
101
101
  name: "value",
102
102
  message:
103
- "Would you like to generate a classic template (simple) or a template with variations (advanced) instead?",
103
+ "Would you like to generate a simple template (classic) or a template with variations (advanced) instead?",
104
104
  choices: [
105
105
  {
106
106
  title: classic,
@@ -109,39 +109,39 @@ if (!fs.existsSync(rawConfigPath)) {
109
109
  value: classic,
110
110
  },
111
111
  {
112
- title: withVariations,
112
+ title: advanced,
113
113
  description:
114
- "Advanced. For those who know their way around Comment Variables and may want to use its native internationalization features or any configuration of their own that relies on variants.",
115
- value: withVariations,
114
+ "With variations. For those who know their way around Comment Variables and may want to use its native internationalization features or any configuration of their own that relies on variants.",
115
+ value: advanced,
116
116
  },
117
117
  ],
118
118
  initial: 0,
119
119
  });
120
120
 
121
121
  /**
122
- * @type {typeof classic | typeof withVariations}
122
+ * @type {typeof classic | typeof advanced}
123
123
  * `control+C` returns `undefined`.
124
124
  */
125
- const classicOrWithVariationsValue = classicOrWithVariations.value;
125
+ const classicOrAdvancedValue = classicOrAdvanced.value;
126
126
 
127
- if (!classicOrWithVariationsValue) {
127
+ if (!classicOrAdvancedValue) {
128
128
  console.error(
129
129
  "ERROR. No template selected. Please select a template to begin using comment-variables via this CLI."
130
130
  );
131
131
  exitDueToFailure();
132
132
  }
133
133
 
134
- switch (classicOrWithVariationsValue) {
134
+ switch (classicOrAdvancedValue) {
135
135
  case classic:
136
136
  tutorialConfig.generateTemplateFilePath = "../generate.template.js";
137
137
  break;
138
- case withVariations:
138
+ case advanced:
139
139
  tutorialConfig.generateTemplateFilePath = "../generate.variations.js";
140
140
  break;
141
141
 
142
142
  default:
143
143
  console.error(
144
- "ERROR. No template selected. Please select a template to begin using comment-variables via this CLI. (Unreachable code.)" // copypasted same as classicOrWithVariations for now, since this is supposed to be unreachable code.
144
+ "ERROR. No template selected. Please select a template to begin using comment-variables via this CLI. (Unreachable code.)" // copypasted same as classicOrAdvanced for now, since this is supposed to be unreachable code.
145
145
  );
146
146
  exitDueToFailure();
147
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comment-variables",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "A CLI tool for configuring, managing and maintaining JavaScript comments as JavaScript variables.",
5
5
  "bin": {
6
6
  "comment-variables": "./library/index.js",