mise-projen 0.0.26 → 0.0.28
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/.jsii +902 -827
- package/API.md +40 -1
- package/lib/index.js +1 -1
- package/lib/miseConfig.d.ts +25 -1
- package/lib/miseConfig.js +9 -6
- package/lib/miseFile.js +1 -1
- package/package.json +1 -1
- package/schemas/mise.json +225 -8
package/lib/miseFile.js
CHANGED
|
@@ -16,7 +16,7 @@ const MISE_COMPONENT_ID = 'Mise';
|
|
|
16
16
|
* `TypescriptConfig` lets several components shape a single `tsconfig.json`.
|
|
17
17
|
*/
|
|
18
18
|
class MiseFile extends projen_1.Component {
|
|
19
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "mise-projen.MiseFile", version: "0.0.
|
|
19
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "mise-projen.MiseFile", version: "0.0.28" };
|
|
20
20
|
/**
|
|
21
21
|
* Returns the `MiseFile` instance already attached to the given project, if any.
|
|
22
22
|
*/
|
package/package.json
CHANGED
package/schemas/mise.json
CHANGED
|
@@ -181,6 +181,10 @@
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
]
|
|
184
|
+
},
|
|
185
|
+
"description": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"description": "what `mise bootstrap` prints instead of the command; `--verbose` and `--dry-run` print the command"
|
|
184
188
|
}
|
|
185
189
|
},
|
|
186
190
|
"additionalProperties": true,
|
|
@@ -2513,6 +2517,11 @@
|
|
|
2513
2517
|
"identity"
|
|
2514
2518
|
]
|
|
2515
2519
|
},
|
|
2520
|
+
"ipv4_only": {
|
|
2521
|
+
"default": false,
|
|
2522
|
+
"description": "Connect to remote hosts over IPv4 only.",
|
|
2523
|
+
"type": "boolean"
|
|
2524
|
+
},
|
|
2516
2525
|
"java": {
|
|
2517
2526
|
"type": "object",
|
|
2518
2527
|
"unevaluatedProperties": false,
|
|
@@ -5207,6 +5216,10 @@
|
|
|
5207
5216
|
"type": "string",
|
|
5208
5217
|
"description": "release tag prefix stripped from versions and re-added when resolving tags"
|
|
5209
5218
|
},
|
|
5219
|
+
"version_regex": {
|
|
5220
|
+
"type": "string",
|
|
5221
|
+
"description": "regex a release tag must match to be listed; versions are still derived from the tag as usual"
|
|
5222
|
+
},
|
|
5210
5223
|
"asset_pattern": {
|
|
5211
5224
|
"type": "string",
|
|
5212
5225
|
"description": "glob (* and ?) matched against release asset names, tera templated; replaces autodetection"
|
|
@@ -7381,6 +7394,11 @@
|
|
|
7381
7394
|
"description": "template mode only: remove the target when the template renders empty or whitespace-only; a target that changed since mise last wrote it needs --force",
|
|
7382
7395
|
"default": false
|
|
7383
7396
|
},
|
|
7397
|
+
"create_if_missing": {
|
|
7398
|
+
"type": "boolean",
|
|
7399
|
+
"description": "copy and template modes, or inline content: write the target only when nothing exists there yet, leaving an existing file's content and permissions alone; a target that was deleted is created again on the next apply. Not for directory sources",
|
|
7400
|
+
"default": false
|
|
7401
|
+
},
|
|
7384
7402
|
"dot_prefix": {
|
|
7385
7403
|
"type": "boolean",
|
|
7386
7404
|
"description": "symlink-each and directory copy only: deploy each source path component named \"dot-<name>\" as \".<name>\", like GNU Stow's --dotfiles; exclude still matches source names",
|
|
@@ -7392,7 +7410,7 @@
|
|
|
7392
7410
|
},
|
|
7393
7411
|
"permissions": {
|
|
7394
7412
|
"type": "string",
|
|
7395
|
-
"description": "octal permissions for the target, such as \"0600\"; overrides what copy, template, and inline content entries set, and on its own manages only the permissions of an existing target (Unix only)",
|
|
7413
|
+
"description": "octal permissions for the target, such as \"0600\"; overrides what copy, template, and inline content entries set, and on its own manages only the permissions of an existing target; on a merge entry it sets the mode only when apply creates the target, never on one that exists (Unix only)",
|
|
7396
7414
|
"pattern": "^(0o)?[0-7]{1,4}$"
|
|
7397
7415
|
},
|
|
7398
7416
|
"autosave": {
|
|
@@ -7446,7 +7464,7 @@
|
|
|
7446
7464
|
"description": "comment prefix for edit marker lines; inferred from the file extension when omitted"
|
|
7447
7465
|
},
|
|
7448
7466
|
"merge": {
|
|
7449
|
-
"description": "edit entry: true sets the keys of source (default: the target's path under dotfiles.root) on a JSON, TOML, or YAML target and leaves the target's other keys to the application that also writes it; \"missing\" sets only the keys the target has no value for; the format comes from the target's extension",
|
|
7467
|
+
"description": "edit entry: true sets the keys of source (default: the target's path under dotfiles.root) on a JSON, JSONC, TOML, or YAML target and leaves the target's other keys to the application that also writes it; \"missing\" sets only the keys the target has no value for; the format comes from the target's extension unless \"format\" names it",
|
|
7450
7468
|
"oneOf": [
|
|
7451
7469
|
{
|
|
7452
7470
|
"type": "boolean"
|
|
@@ -7456,6 +7474,23 @@
|
|
|
7456
7474
|
}
|
|
7457
7475
|
]
|
|
7458
7476
|
},
|
|
7477
|
+
"format": {
|
|
7478
|
+
"type": "string",
|
|
7479
|
+
"description": "merge only: the format of the target and source when the target's extension doesn't name it, such as \"jsonc\" for VS Code's settings.json",
|
|
7480
|
+
"anyOf": [
|
|
7481
|
+
{
|
|
7482
|
+
"enum": [
|
|
7483
|
+
"json",
|
|
7484
|
+
"jsonc",
|
|
7485
|
+
"toml",
|
|
7486
|
+
"yaml"
|
|
7487
|
+
]
|
|
7488
|
+
},
|
|
7489
|
+
{
|
|
7490
|
+
"type": "string"
|
|
7491
|
+
}
|
|
7492
|
+
]
|
|
7493
|
+
},
|
|
7459
7494
|
"variants": {
|
|
7460
7495
|
"type": "array",
|
|
7461
7496
|
"description": "OS/profile variants: history streams for track mode, or optional destinations for deployment modes",
|
|
@@ -7516,7 +7551,6 @@
|
|
|
7516
7551
|
"properties": {
|
|
7517
7552
|
"mode": false,
|
|
7518
7553
|
"content": false,
|
|
7519
|
-
"permissions": false,
|
|
7520
7554
|
"exclude": false,
|
|
7521
7555
|
"include": false,
|
|
7522
7556
|
"manifest": false,
|
|
@@ -7526,6 +7560,7 @@
|
|
|
7526
7560
|
"variants": false,
|
|
7527
7561
|
"enabled": false,
|
|
7528
7562
|
"remove_empty": false,
|
|
7563
|
+
"create_if_missing": false,
|
|
7529
7564
|
"relative": false,
|
|
7530
7565
|
"dot_prefix": false,
|
|
7531
7566
|
"group": false,
|
|
@@ -7624,6 +7659,7 @@
|
|
|
7624
7659
|
"manifest": false,
|
|
7625
7660
|
"permissions": false,
|
|
7626
7661
|
"remove_empty": false,
|
|
7662
|
+
"create_if_missing": false,
|
|
7627
7663
|
"dot_prefix": {
|
|
7628
7664
|
"const": false
|
|
7629
7665
|
},
|
|
@@ -7724,7 +7760,6 @@
|
|
|
7724
7760
|
]
|
|
7725
7761
|
},
|
|
7726
7762
|
"block": false,
|
|
7727
|
-
"template": false,
|
|
7728
7763
|
"comment": false
|
|
7729
7764
|
},
|
|
7730
7765
|
"required": [
|
|
@@ -7753,6 +7788,22 @@
|
|
|
7753
7788
|
"encrypt": false
|
|
7754
7789
|
}
|
|
7755
7790
|
}
|
|
7791
|
+
],
|
|
7792
|
+
"allOf": [
|
|
7793
|
+
{
|
|
7794
|
+
"anyOf": [
|
|
7795
|
+
{
|
|
7796
|
+
"properties": {
|
|
7797
|
+
"template": false
|
|
7798
|
+
}
|
|
7799
|
+
},
|
|
7800
|
+
{
|
|
7801
|
+
"required": [
|
|
7802
|
+
"merge"
|
|
7803
|
+
]
|
|
7804
|
+
}
|
|
7805
|
+
]
|
|
7806
|
+
}
|
|
7756
7807
|
]
|
|
7757
7808
|
},
|
|
7758
7809
|
{
|
|
@@ -7849,6 +7900,70 @@
|
|
|
7849
7900
|
}
|
|
7850
7901
|
}
|
|
7851
7902
|
]
|
|
7903
|
+
},
|
|
7904
|
+
{
|
|
7905
|
+
"anyOf": [
|
|
7906
|
+
{
|
|
7907
|
+
"properties": {
|
|
7908
|
+
"create_if_missing": {
|
|
7909
|
+
"const": false
|
|
7910
|
+
}
|
|
7911
|
+
}
|
|
7912
|
+
},
|
|
7913
|
+
{
|
|
7914
|
+
"properties": {
|
|
7915
|
+
"mode": {
|
|
7916
|
+
"enum": [
|
|
7917
|
+
"copy",
|
|
7918
|
+
"template"
|
|
7919
|
+
]
|
|
7920
|
+
},
|
|
7921
|
+
"block": false,
|
|
7922
|
+
"line": false,
|
|
7923
|
+
"template": false,
|
|
7924
|
+
"comment": false
|
|
7925
|
+
},
|
|
7926
|
+
"anyOf": [
|
|
7927
|
+
{
|
|
7928
|
+
"required": [
|
|
7929
|
+
"source"
|
|
7930
|
+
]
|
|
7931
|
+
},
|
|
7932
|
+
{
|
|
7933
|
+
"required": [
|
|
7934
|
+
"content"
|
|
7935
|
+
]
|
|
7936
|
+
},
|
|
7937
|
+
{
|
|
7938
|
+
"required": [
|
|
7939
|
+
"mode"
|
|
7940
|
+
]
|
|
7941
|
+
}
|
|
7942
|
+
]
|
|
7943
|
+
}
|
|
7944
|
+
]
|
|
7945
|
+
},
|
|
7946
|
+
{
|
|
7947
|
+
"anyOf": [
|
|
7948
|
+
{
|
|
7949
|
+
"properties": {
|
|
7950
|
+
"format": false
|
|
7951
|
+
}
|
|
7952
|
+
},
|
|
7953
|
+
{
|
|
7954
|
+
"properties": {
|
|
7955
|
+
"merge": {
|
|
7956
|
+
"enum": [
|
|
7957
|
+
true,
|
|
7958
|
+
"missing"
|
|
7959
|
+
]
|
|
7960
|
+
}
|
|
7961
|
+
},
|
|
7962
|
+
"required": [
|
|
7963
|
+
"merge"
|
|
7964
|
+
]
|
|
7965
|
+
}
|
|
7966
|
+
]
|
|
7852
7967
|
}
|
|
7853
7968
|
],
|
|
7854
7969
|
"anyOf": [
|
|
@@ -8001,6 +8116,11 @@
|
|
|
8001
8116
|
"description": "template mode only: remove the target when the template renders empty or whitespace-only; a target that changed since mise last wrote it needs --force",
|
|
8002
8117
|
"default": false
|
|
8003
8118
|
},
|
|
8119
|
+
"create_if_missing": {
|
|
8120
|
+
"type": "boolean",
|
|
8121
|
+
"description": "copy and template modes, or inline content: write the target only when nothing exists there yet, leaving an existing file's content and permissions alone; a target that was deleted is created again on the next apply. Not for directory sources",
|
|
8122
|
+
"default": false
|
|
8123
|
+
},
|
|
8004
8124
|
"dot_prefix": {
|
|
8005
8125
|
"type": "boolean",
|
|
8006
8126
|
"description": "symlink-each and directory copy only: deploy each source path component named \"dot-<name>\" as \".<name>\", like GNU Stow's --dotfiles; exclude still matches source names",
|
|
@@ -8012,7 +8132,7 @@
|
|
|
8012
8132
|
},
|
|
8013
8133
|
"permissions": {
|
|
8014
8134
|
"type": "string",
|
|
8015
|
-
"description": "octal permissions for the target, such as \"0600\"; overrides what copy, template, and inline content entries set, and on its own manages only the permissions of an existing target (Unix only)",
|
|
8135
|
+
"description": "octal permissions for the target, such as \"0600\"; overrides what copy, template, and inline content entries set, and on its own manages only the permissions of an existing target; on a merge entry it sets the mode only when apply creates the target, never on one that exists (Unix only)",
|
|
8016
8136
|
"pattern": "^(0o)?[0-7]{1,4}$"
|
|
8017
8137
|
},
|
|
8018
8138
|
"autosave": {
|
|
@@ -8083,7 +8203,6 @@
|
|
|
8083
8203
|
"properties": {
|
|
8084
8204
|
"mode": false,
|
|
8085
8205
|
"content": false,
|
|
8086
|
-
"permissions": false,
|
|
8087
8206
|
"exclude": false,
|
|
8088
8207
|
"include": false,
|
|
8089
8208
|
"manifest": false,
|
|
@@ -8093,6 +8212,7 @@
|
|
|
8093
8212
|
"variants": false,
|
|
8094
8213
|
"enabled": false,
|
|
8095
8214
|
"remove_empty": false,
|
|
8215
|
+
"create_if_missing": false,
|
|
8096
8216
|
"relative": false,
|
|
8097
8217
|
"dot_prefix": false,
|
|
8098
8218
|
"group": false,
|
|
@@ -8191,6 +8311,7 @@
|
|
|
8191
8311
|
"manifest": false,
|
|
8192
8312
|
"permissions": false,
|
|
8193
8313
|
"remove_empty": false,
|
|
8314
|
+
"create_if_missing": false,
|
|
8194
8315
|
"dot_prefix": {
|
|
8195
8316
|
"const": false
|
|
8196
8317
|
},
|
|
@@ -8291,7 +8412,6 @@
|
|
|
8291
8412
|
]
|
|
8292
8413
|
},
|
|
8293
8414
|
"block": false,
|
|
8294
|
-
"template": false,
|
|
8295
8415
|
"comment": false
|
|
8296
8416
|
},
|
|
8297
8417
|
"required": [
|
|
@@ -8320,6 +8440,22 @@
|
|
|
8320
8440
|
"encrypt": false
|
|
8321
8441
|
}
|
|
8322
8442
|
}
|
|
8443
|
+
],
|
|
8444
|
+
"allOf": [
|
|
8445
|
+
{
|
|
8446
|
+
"anyOf": [
|
|
8447
|
+
{
|
|
8448
|
+
"properties": {
|
|
8449
|
+
"template": false
|
|
8450
|
+
}
|
|
8451
|
+
},
|
|
8452
|
+
{
|
|
8453
|
+
"required": [
|
|
8454
|
+
"merge"
|
|
8455
|
+
]
|
|
8456
|
+
}
|
|
8457
|
+
]
|
|
8458
|
+
}
|
|
8323
8459
|
]
|
|
8324
8460
|
},
|
|
8325
8461
|
{
|
|
@@ -8416,6 +8552,70 @@
|
|
|
8416
8552
|
}
|
|
8417
8553
|
}
|
|
8418
8554
|
]
|
|
8555
|
+
},
|
|
8556
|
+
{
|
|
8557
|
+
"anyOf": [
|
|
8558
|
+
{
|
|
8559
|
+
"properties": {
|
|
8560
|
+
"create_if_missing": {
|
|
8561
|
+
"const": false
|
|
8562
|
+
}
|
|
8563
|
+
}
|
|
8564
|
+
},
|
|
8565
|
+
{
|
|
8566
|
+
"properties": {
|
|
8567
|
+
"mode": {
|
|
8568
|
+
"enum": [
|
|
8569
|
+
"copy",
|
|
8570
|
+
"template"
|
|
8571
|
+
]
|
|
8572
|
+
},
|
|
8573
|
+
"block": false,
|
|
8574
|
+
"line": false,
|
|
8575
|
+
"template": false,
|
|
8576
|
+
"comment": false
|
|
8577
|
+
},
|
|
8578
|
+
"anyOf": [
|
|
8579
|
+
{
|
|
8580
|
+
"required": [
|
|
8581
|
+
"source"
|
|
8582
|
+
]
|
|
8583
|
+
},
|
|
8584
|
+
{
|
|
8585
|
+
"required": [
|
|
8586
|
+
"content"
|
|
8587
|
+
]
|
|
8588
|
+
},
|
|
8589
|
+
{
|
|
8590
|
+
"required": [
|
|
8591
|
+
"mode"
|
|
8592
|
+
]
|
|
8593
|
+
}
|
|
8594
|
+
]
|
|
8595
|
+
}
|
|
8596
|
+
]
|
|
8597
|
+
},
|
|
8598
|
+
{
|
|
8599
|
+
"anyOf": [
|
|
8600
|
+
{
|
|
8601
|
+
"properties": {
|
|
8602
|
+
"format": false
|
|
8603
|
+
}
|
|
8604
|
+
},
|
|
8605
|
+
{
|
|
8606
|
+
"properties": {
|
|
8607
|
+
"merge": {
|
|
8608
|
+
"enum": [
|
|
8609
|
+
true,
|
|
8610
|
+
"missing"
|
|
8611
|
+
]
|
|
8612
|
+
}
|
|
8613
|
+
},
|
|
8614
|
+
"required": [
|
|
8615
|
+
"merge"
|
|
8616
|
+
]
|
|
8617
|
+
}
|
|
8618
|
+
]
|
|
8419
8619
|
}
|
|
8420
8620
|
],
|
|
8421
8621
|
"anyOf": [
|
|
@@ -8807,7 +9007,7 @@
|
|
|
8807
9007
|
"description": "System services and portable user services managed by mise bootstrap, keyed by service name",
|
|
8808
9008
|
"additionalProperties": {
|
|
8809
9009
|
"type": "object",
|
|
8810
|
-
"description": "Linux systemd
|
|
9010
|
+
"description": "Linux systemd unit that mise starts, stops, enables, or masks (a system unit, or with scope user an existing user unit), or a user service mise defines from command or builtin",
|
|
8811
9011
|
"properties": {
|
|
8812
9012
|
"state": {
|
|
8813
9013
|
"type": "string",
|
|
@@ -9392,6 +9592,19 @@
|
|
|
9392
9592
|
"pattern": "^(?:/|~$|~/|\\{[{%])"
|
|
9393
9593
|
}
|
|
9394
9594
|
},
|
|
9595
|
+
"launch_events": {
|
|
9596
|
+
"type": "object",
|
|
9597
|
+
"description": "write LaunchEvents, keyed by event stream, then event name, with launchd's case-sensitive property names",
|
|
9598
|
+
"additionalProperties": {
|
|
9599
|
+
"type": "object",
|
|
9600
|
+
"additionalProperties": {
|
|
9601
|
+
"type": "object",
|
|
9602
|
+
"additionalProperties": {
|
|
9603
|
+
"$ref": "#/$defs/macos_defaults_value"
|
|
9604
|
+
}
|
|
9605
|
+
}
|
|
9606
|
+
}
|
|
9607
|
+
},
|
|
9395
9608
|
"environment": {
|
|
9396
9609
|
"type": "object",
|
|
9397
9610
|
"description": "environment variables for EnvironmentVariables",
|
|
@@ -10134,6 +10347,10 @@
|
|
|
10134
10347
|
"type": "boolean",
|
|
10135
10348
|
"description": "adopt existing app artifacts by default for configured brew-cask packages"
|
|
10136
10349
|
},
|
|
10350
|
+
"homebrew_metadata": {
|
|
10351
|
+
"type": "boolean",
|
|
10352
|
+
"description": "write Homebrew's cask metadata after mise installs a brew-cask package, so `brew upgrade` and `brew outdated` manage it afterwards"
|
|
10353
|
+
},
|
|
10137
10354
|
"taps": {
|
|
10138
10355
|
"type": "object",
|
|
10139
10356
|
"description": "Homebrew tap names mapped to custom git URLs",
|