mise-projen 0.0.7 → 0.0.8
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 +1857 -841
- package/API.md +658 -0
- package/lib/index.js +1 -1
- package/lib/miseConfig.d.ts +273 -0
- package/lib/miseConfig.js +152 -6
- package/lib/miseFile.js +1 -1
- package/package.json +1 -1
- package/schemas/mise.json +240 -3
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.8" };
|
|
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
|
@@ -5334,7 +5334,7 @@
|
|
|
5334
5334
|
"type": "string"
|
|
5335
5335
|
},
|
|
5336
5336
|
{
|
|
5337
|
-
"description": "confirmation message before running this task with default value",
|
|
5337
|
+
"description": "confirmation message before running this task with optional default value and custom answer labels",
|
|
5338
5338
|
"properties": {
|
|
5339
5339
|
"message": {
|
|
5340
5340
|
"description": "confirmation message before running this task",
|
|
@@ -5351,11 +5351,18 @@
|
|
|
5351
5351
|
"false"
|
|
5352
5352
|
],
|
|
5353
5353
|
"type": "string"
|
|
5354
|
+
},
|
|
5355
|
+
"yes": {
|
|
5356
|
+
"description": "custom label for the affirmative answer",
|
|
5357
|
+
"type": "string"
|
|
5358
|
+
},
|
|
5359
|
+
"no": {
|
|
5360
|
+
"description": "custom label for the negative answer",
|
|
5361
|
+
"type": "string"
|
|
5354
5362
|
}
|
|
5355
5363
|
},
|
|
5356
5364
|
"required": [
|
|
5357
|
-
"message"
|
|
5358
|
-
"default"
|
|
5365
|
+
"message"
|
|
5359
5366
|
],
|
|
5360
5367
|
"unevaluatedProperties": false,
|
|
5361
5368
|
"type": "object"
|
|
@@ -6831,6 +6838,80 @@
|
|
|
6831
6838
|
]
|
|
6832
6839
|
}
|
|
6833
6840
|
},
|
|
6841
|
+
"dotfile_groups": {
|
|
6842
|
+
"type": "object",
|
|
6843
|
+
"description": "named directory trees of dotfiles, applied with `mise dotfiles apply` or `mise bootstrap` while [bootstrap] dotfile_groups selects them (or is unset)",
|
|
6844
|
+
"propertyNames": {
|
|
6845
|
+
"pattern": "^[A-Za-z0-9_.-]+$"
|
|
6846
|
+
},
|
|
6847
|
+
"additionalProperties": {
|
|
6848
|
+
"type": "object",
|
|
6849
|
+
"additionalProperties": false,
|
|
6850
|
+
"required": [
|
|
6851
|
+
"root"
|
|
6852
|
+
],
|
|
6853
|
+
"properties": {
|
|
6854
|
+
"root": {
|
|
6855
|
+
"type": "string",
|
|
6856
|
+
"description": "the directory tree the group deploys; a relative path resolves against dotfiles.root"
|
|
6857
|
+
},
|
|
6858
|
+
"target": {
|
|
6859
|
+
"type": "string",
|
|
6860
|
+
"description": "target directory, absolute or starting with ~/",
|
|
6861
|
+
"default": "~"
|
|
6862
|
+
},
|
|
6863
|
+
"mode": {
|
|
6864
|
+
"type": "string",
|
|
6865
|
+
"description": "how the tree is deployed",
|
|
6866
|
+
"enum": [
|
|
6867
|
+
"symlink-each",
|
|
6868
|
+
"copy",
|
|
6869
|
+
"symlink"
|
|
6870
|
+
],
|
|
6871
|
+
"default": "symlink-each"
|
|
6872
|
+
},
|
|
6873
|
+
"exclude": {
|
|
6874
|
+
"type": "array",
|
|
6875
|
+
"description": "glob patterns of source paths to skip, as for [dotfiles] exclude",
|
|
6876
|
+
"items": {
|
|
6877
|
+
"type": "string"
|
|
6878
|
+
}
|
|
6879
|
+
},
|
|
6880
|
+
"dot_prefix": {
|
|
6881
|
+
"type": "boolean",
|
|
6882
|
+
"default": false,
|
|
6883
|
+
"description": "deploy each source path component named \"dot-<name>\" as \".<name>\", like GNU Stow's --dotfiles"
|
|
6884
|
+
},
|
|
6885
|
+
"manifest": {
|
|
6886
|
+
"type": "string",
|
|
6887
|
+
"description": "source manifest used to select managed files from the tree",
|
|
6888
|
+
"enum": [
|
|
6889
|
+
"git"
|
|
6890
|
+
]
|
|
6891
|
+
},
|
|
6892
|
+
"relative": {
|
|
6893
|
+
"type": "boolean",
|
|
6894
|
+
"description": "link by a path relative to the link's directory; overrides the dotfiles.relative_symlinks setting (ignored on Windows)"
|
|
6895
|
+
},
|
|
6896
|
+
"entries": {
|
|
6897
|
+
"type": "object",
|
|
6898
|
+
"description": "whole-file entries for parts of the tree, keyed by target path inside the group's target and written like [dotfiles] entries; each is cut out of the walk. A missing source is found under the root at the entry's path inside the target, and a relative source starts at the root",
|
|
6899
|
+
"additionalProperties": {
|
|
6900
|
+
"oneOf": [
|
|
6901
|
+
{
|
|
6902
|
+
"type": "string",
|
|
6903
|
+
"description": "source path, relative to the group root"
|
|
6904
|
+
},
|
|
6905
|
+
{
|
|
6906
|
+
"type": "object",
|
|
6907
|
+
"description": "whole-file entry, as in [dotfiles]"
|
|
6908
|
+
}
|
|
6909
|
+
]
|
|
6910
|
+
}
|
|
6911
|
+
}
|
|
6912
|
+
}
|
|
6913
|
+
}
|
|
6914
|
+
},
|
|
6834
6915
|
"bootstrap": {
|
|
6835
6916
|
"type": "object",
|
|
6836
6917
|
"description": "machine-global bootstrapping (system packages, repos, macOS defaults, launchd agents, login shell)",
|
|
@@ -7005,6 +7086,14 @@
|
|
|
7005
7086
|
"additionalProperties": false
|
|
7006
7087
|
}
|
|
7007
7088
|
},
|
|
7089
|
+
"dotfile_groups": {
|
|
7090
|
+
"type": "array",
|
|
7091
|
+
"description": "the dotfile groups this machine applies; when unset, every group applies. Entries without a group always apply, and a more local config's list replaces the others",
|
|
7092
|
+
"items": {
|
|
7093
|
+
"type": "string",
|
|
7094
|
+
"pattern": "^[A-Za-z0-9_.-]+$"
|
|
7095
|
+
}
|
|
7096
|
+
},
|
|
7008
7097
|
"config_roots": {
|
|
7009
7098
|
"deprecated": true,
|
|
7010
7099
|
"type": "array",
|
|
@@ -7233,6 +7322,154 @@
|
|
|
7233
7322
|
"additionalProperties": false
|
|
7234
7323
|
}
|
|
7235
7324
|
},
|
|
7325
|
+
"compose": {
|
|
7326
|
+
"type": "object",
|
|
7327
|
+
"description": "Docker Compose projects managed with `mise bootstrap compose`, keyed by project name. Text fields support Tera templates.",
|
|
7328
|
+
"additionalProperties": {
|
|
7329
|
+
"type": "object",
|
|
7330
|
+
"properties": {
|
|
7331
|
+
"project_dir": {
|
|
7332
|
+
"type": "string",
|
|
7333
|
+
"minLength": 1,
|
|
7334
|
+
"description": "absolute directory containing the Compose project"
|
|
7335
|
+
},
|
|
7336
|
+
"files": {
|
|
7337
|
+
"type": "array",
|
|
7338
|
+
"description": "Compose file paths relative to project_dir unless absolute",
|
|
7339
|
+
"items": {
|
|
7340
|
+
"type": "string"
|
|
7341
|
+
}
|
|
7342
|
+
},
|
|
7343
|
+
"env_files": {
|
|
7344
|
+
"type": "array",
|
|
7345
|
+
"description": "environment file paths relative to project_dir unless absolute",
|
|
7346
|
+
"items": {
|
|
7347
|
+
"type": "string"
|
|
7348
|
+
}
|
|
7349
|
+
},
|
|
7350
|
+
"project_name": {
|
|
7351
|
+
"type": "string",
|
|
7352
|
+
"description": "optional Compose project name"
|
|
7353
|
+
},
|
|
7354
|
+
"profiles": {
|
|
7355
|
+
"type": "array",
|
|
7356
|
+
"items": {
|
|
7357
|
+
"type": "string"
|
|
7358
|
+
}
|
|
7359
|
+
},
|
|
7360
|
+
"services": {
|
|
7361
|
+
"type": "array",
|
|
7362
|
+
"items": {
|
|
7363
|
+
"type": "string"
|
|
7364
|
+
}
|
|
7365
|
+
},
|
|
7366
|
+
"oneshot": {
|
|
7367
|
+
"type": "array",
|
|
7368
|
+
"items": {
|
|
7369
|
+
"type": "string"
|
|
7370
|
+
}
|
|
7371
|
+
},
|
|
7372
|
+
"state": {
|
|
7373
|
+
"type": "string",
|
|
7374
|
+
"enum": [
|
|
7375
|
+
"running",
|
|
7376
|
+
"stopped",
|
|
7377
|
+
"absent"
|
|
7378
|
+
],
|
|
7379
|
+
"default": "running"
|
|
7380
|
+
},
|
|
7381
|
+
"pull": {
|
|
7382
|
+
"type": "string",
|
|
7383
|
+
"enum": [
|
|
7384
|
+
"always",
|
|
7385
|
+
"missing",
|
|
7386
|
+
"never"
|
|
7387
|
+
],
|
|
7388
|
+
"default": "missing"
|
|
7389
|
+
},
|
|
7390
|
+
"build": {
|
|
7391
|
+
"type": "string",
|
|
7392
|
+
"enum": [
|
|
7393
|
+
"auto",
|
|
7394
|
+
"always",
|
|
7395
|
+
"never"
|
|
7396
|
+
],
|
|
7397
|
+
"default": "auto"
|
|
7398
|
+
},
|
|
7399
|
+
"recreate": {
|
|
7400
|
+
"type": "string",
|
|
7401
|
+
"enum": [
|
|
7402
|
+
"auto",
|
|
7403
|
+
"always",
|
|
7404
|
+
"never"
|
|
7405
|
+
],
|
|
7406
|
+
"default": "auto"
|
|
7407
|
+
},
|
|
7408
|
+
"wait": {
|
|
7409
|
+
"type": "boolean",
|
|
7410
|
+
"default": true
|
|
7411
|
+
},
|
|
7412
|
+
"wait_timeout": {
|
|
7413
|
+
"type": "integer",
|
|
7414
|
+
"minimum": 0,
|
|
7415
|
+
"description": "wait timeout in seconds"
|
|
7416
|
+
},
|
|
7417
|
+
"timeout": {
|
|
7418
|
+
"type": "integer",
|
|
7419
|
+
"minimum": 0,
|
|
7420
|
+
"description": "Compose shutdown timeout in seconds"
|
|
7421
|
+
},
|
|
7422
|
+
"remove_orphans": {
|
|
7423
|
+
"type": "boolean",
|
|
7424
|
+
"default": true
|
|
7425
|
+
},
|
|
7426
|
+
"renew_anonymous_volumes": {
|
|
7427
|
+
"type": "boolean",
|
|
7428
|
+
"default": false
|
|
7429
|
+
},
|
|
7430
|
+
"down_volumes": {
|
|
7431
|
+
"type": "boolean",
|
|
7432
|
+
"default": false
|
|
7433
|
+
},
|
|
7434
|
+
"down_images": {
|
|
7435
|
+
"type": "string",
|
|
7436
|
+
"enum": [
|
|
7437
|
+
"local",
|
|
7438
|
+
"all"
|
|
7439
|
+
]
|
|
7440
|
+
},
|
|
7441
|
+
"sudo": {
|
|
7442
|
+
"type": "boolean",
|
|
7443
|
+
"default": false
|
|
7444
|
+
},
|
|
7445
|
+
"command": {
|
|
7446
|
+
"type": "array",
|
|
7447
|
+
"description": "standalone Compose command",
|
|
7448
|
+
"items": {
|
|
7449
|
+
"type": "string"
|
|
7450
|
+
}
|
|
7451
|
+
},
|
|
7452
|
+
"engine_command": {
|
|
7453
|
+
"type": "array",
|
|
7454
|
+
"description": "container engine command",
|
|
7455
|
+
"items": {
|
|
7456
|
+
"type": "string"
|
|
7457
|
+
}
|
|
7458
|
+
},
|
|
7459
|
+
"depends_on": {
|
|
7460
|
+
"type": "array",
|
|
7461
|
+
"description": "bootstrap resource dependencies",
|
|
7462
|
+
"items": {
|
|
7463
|
+
"type": "string"
|
|
7464
|
+
}
|
|
7465
|
+
}
|
|
7466
|
+
},
|
|
7467
|
+
"required": [
|
|
7468
|
+
"project_dir"
|
|
7469
|
+
],
|
|
7470
|
+
"additionalProperties": false
|
|
7471
|
+
}
|
|
7472
|
+
},
|
|
7236
7473
|
"plugins": {
|
|
7237
7474
|
"type": "object",
|
|
7238
7475
|
"description": "package manager plugins to install with `mise bootstrap plugins apply`, keyed by manager name",
|