comment-variables 0.11.3 → 0.11.6
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 +1 -1
- package/comments.config.js +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Scans your line and block comments for `$COMMENT#*` tokens (like `$COMMENT#COMME
|
|
|
28
28
|
|
|
29
29
|
_The `compress` and `resolve` commands make each other entirely reversible._
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
**New command: `comment-variables placeholders`**
|
|
32
32
|
|
|
33
33
|
```
|
|
34
34
|
comment-variables placeholders
|
package/comments.config.js
CHANGED
|
@@ -14,8 +14,10 @@ const data = {
|
|
|
14
14
|
composedVariable:
|
|
15
15
|
"$COMMENT#LEVELONE#LEVELTWO#LEVELTHREE $COMMENT#LEVELONE#LEVELTWO#STILLLEVELTHREE" /* $COMMENT#LEVELONE#LEVELTWO#COMPOSEDVARIABLE */, // This is a composed variable. What's the beauty in this? It allows for each comment variable to be its own single source of truth that can be reused still within the Comment Variables ecosystem. All while preventing the use of comment variables placeholders as values in the config. AND as a matter of fact, it even works... with aliases.
|
|
16
16
|
composedVariableAlias:
|
|
17
|
-
"LEVELONE#LEVELTWO#COMPOSEDVARIABLE" /* $COMMENT#LEVELONE#LEVELTWO#COMPOSEDVARIABLEALIAS */,
|
|
17
|
+
"LEVELONE#LEVELTWO#COMPOSEDVARIABLE" /* $COMMENT#LEVELONE#LEVELTWO#COMPOSEDVARIABLEALIAS */, // The alias of a composed variable. SO just like composed variables can incorporate aliases, aliases can be aliases for composed variables.
|
|
18
18
|
|
|
19
|
+
// otherLevelThreeAlias:
|
|
20
|
+
// "LEVELONE#LEVELTWO#OTHERLEVELTHREE" /* $COMMENT#LEVELONE#LEVELTWO#LEVELTHREE */, // errors, can't be the alias of another alias
|
|
19
21
|
// wrongComposedVariable:
|
|
20
22
|
// "$COMMENT#LEVELONE#LEVELTWO#COMPOSEDVARIABLE $COMMENT#LEVELONE#LEVELTWO#STILLLEVELTHREE", // errors, can't make composed variables with composed variables
|
|
21
23
|
// wrongComposedVariableToo:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "comment-variables",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.6",
|
|
4
4
|
"description": "A CLI tool for configuring, managing and maintaining JavaScript comments as JavaScript variables.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"jscomments": "./library/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"type": "module",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@eslint/markdown": "^6.5.0",
|
|
29
|
-
"comment-variables-resolve-config": "^1.7.
|
|
29
|
+
"comment-variables-resolve-config": "^1.7.2",
|
|
30
30
|
"eslint": "^9.29.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|