@lumy-pack/syncpoint 0.0.1
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/assets/config.default.yml +29 -0
- package/assets/template.example.yml +28 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.mjs +2651 -0
- package/dist/commands/Backup.d.ts +2 -0
- package/dist/commands/Init.d.ts +2 -0
- package/dist/commands/List.d.ts +2 -0
- package/dist/commands/Provision.d.ts +2 -0
- package/dist/commands/Restore.d.ts +2 -0
- package/dist/commands/Status.d.ts +2 -0
- package/dist/components/Confirm.d.ts +8 -0
- package/dist/components/ProgressBar.d.ts +7 -0
- package/dist/components/StepRunner.d.ts +9 -0
- package/dist/components/Table.d.ts +8 -0
- package/dist/components/Viewer.d.ts +16 -0
- package/dist/constants.d.ts +16 -0
- package/dist/core/backup.d.ts +21 -0
- package/dist/core/config.d.ts +22 -0
- package/dist/core/metadata.d.ts +20 -0
- package/dist/core/provision.d.ts +28 -0
- package/dist/core/restore.d.ts +24 -0
- package/dist/core/storage.d.ts +22 -0
- package/dist/index.cjs +1069 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +1018 -0
- package/dist/schemas/ajv.d.ts +3 -0
- package/dist/schemas/config.schema.d.ts +4 -0
- package/dist/schemas/metadata.schema.d.ts +4 -0
- package/dist/schemas/template.schema.d.ts +4 -0
- package/dist/utils/assets.d.ts +2 -0
- package/dist/utils/format.d.ts +27 -0
- package/dist/utils/logger.d.ts +6 -0
- package/dist/utils/paths.d.ts +22 -0
- package/dist/utils/sudo.d.ts +16 -0
- package/dist/utils/system.d.ts +17 -0
- package/dist/utils/types.d.ts +136 -0
- package/package.json +77 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# ──────────────────────────────────────────
|
|
2
|
+
# Syncpoint Configuration
|
|
3
|
+
# ──────────────────────────────────────────
|
|
4
|
+
|
|
5
|
+
backup:
|
|
6
|
+
# (Required) List of files/directories to backup. Supports ~ expansion and glob patterns.
|
|
7
|
+
targets:
|
|
8
|
+
- ~/.zshrc
|
|
9
|
+
- ~/.zprofile
|
|
10
|
+
- ~/.gitconfig
|
|
11
|
+
- ~/.gitignore_global
|
|
12
|
+
- ~/.ssh/config
|
|
13
|
+
- ~/.config/starship.toml
|
|
14
|
+
|
|
15
|
+
# (Required) List of glob patterns to exclude from backup.
|
|
16
|
+
exclude:
|
|
17
|
+
- "**/*.swp"
|
|
18
|
+
- "**/.DS_Store"
|
|
19
|
+
|
|
20
|
+
# (Required) Backup archive filename pattern.
|
|
21
|
+
# Available variables: {hostname}, {datetime}
|
|
22
|
+
filename: "{hostname}_{datetime}"
|
|
23
|
+
|
|
24
|
+
# (Optional) Backup archive destination path. Default: ~/.syncpoint/backups/
|
|
25
|
+
# destination: /path/to/custom/backups
|
|
26
|
+
|
|
27
|
+
scripts:
|
|
28
|
+
# (Optional) Whether to include scripts/ directory in backup. Default: true
|
|
29
|
+
includeInBackup: true
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ──────────────────────────────────────────
|
|
2
|
+
# Syncpoint Provisioning Template
|
|
3
|
+
# ──────────────────────────────────────────
|
|
4
|
+
# Usage: syncpoint provision <template-name>
|
|
5
|
+
# syncpoint provision <template-name> --dry-run
|
|
6
|
+
|
|
7
|
+
# (Required) Template name.
|
|
8
|
+
name: Example Setup
|
|
9
|
+
|
|
10
|
+
# (Optional) Template description.
|
|
11
|
+
description: Example provisioning template
|
|
12
|
+
|
|
13
|
+
# (Optional) Backup name to restore automatically after provisioning.
|
|
14
|
+
# backup: my-backup-name
|
|
15
|
+
|
|
16
|
+
# (Optional) Whether sudo privilege is required. If true, requests sudo authentication before execution.
|
|
17
|
+
# sudo: false
|
|
18
|
+
|
|
19
|
+
# (Required) List of provisioning steps. At least 1 step required.
|
|
20
|
+
steps:
|
|
21
|
+
- name: Check Node.js # (Required) Step name
|
|
22
|
+
description: Verify Node.js # (Optional) Step description
|
|
23
|
+
command: node --version # (Required) Shell command to execute
|
|
24
|
+
skip_if: which node # (Optional) Skip this step if this command exits with code 0
|
|
25
|
+
continue_on_error: true # (Optional) Continue to next step even if this fails. Default: false
|
|
26
|
+
|
|
27
|
+
- name: Hello World
|
|
28
|
+
command: echo "Hello from syncpoint!"
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|