@aspruyt/xfg 6.4.4 → 6.4.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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/LICENSE +0 -21
  3. package/README.md +0 -96
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspruyt/xfg",
3
- "version": "6.4.4",
3
+ "version": "6.4.6",
4
4
  "description": "Manage files, settings, and repositories across GitHub, Azure DevOps, and GitLab — declaratively, from a single YAML config",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Anthony Spruyt
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/README.md DELETED
@@ -1,96 +0,0 @@
1
- # xfg
2
-
3
- [![CI](https://github.com/anthony-spruyt/xfg/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/anthony-spruyt/xfg/actions/workflows/ci.yaml) [![codecov](https://codecov.io/gh/anthony-spruyt/xfg/graph/badge.svg)](https://codecov.io/gh/anthony-spruyt/xfg) [![Socket Badge](https://badge.socket.dev/npm/package/@aspruyt/xfg)](https://socket.dev/npm/package/@aspruyt/xfg)
4
- [![npm version](https://img.shields.io/npm/v/@aspruyt/xfg.svg)](https://www.npmjs.com/package/@aspruyt/xfg) [![npm downloads](https://img.shields.io/npm/dw/@aspruyt/xfg.svg)](https://www.npmjs.com/package/@aspruyt/xfg) [![GitHub Marketplace](https://img.shields.io/badge/Marketplace-xfg-blue?logo=github)](https://github.com/marketplace/actions/xfg-repo-as-code)
5
- [![docs](https://img.shields.io/badge/docs-GitHub%20Pages-blue)](https://anthony-spruyt.github.io/xfg/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
6
-
7
- Manage files, settings, and repositories across GitHub, Azure DevOps, and GitLab — declaratively, from a single YAML config.
8
-
9
- Define your organization's standards once. xfg creates PRs to sync config files, applies repository settings and rulesets via API, and can even create, fork, or migrate repositories — all from one config file.
10
-
11
- **[Full Documentation](https://anthony-spruyt.github.io/xfg/)**
12
-
13
- ## Quick Start
14
-
15
- ### GitHub Action
16
-
17
- ```yaml
18
- # .github/workflows/sync-configs.yml
19
- name: Sync Configs
20
- on:
21
- push:
22
- branches: [main]
23
- paths: [sync-config.yaml]
24
-
25
- jobs:
26
- sync:
27
- runs-on: ubuntu-latest
28
- steps:
29
- - uses: actions/checkout@v4
30
- - uses: anthony-spruyt/xfg@v6 # x-release-please-major
31
- with:
32
- config: ./sync-config.yaml
33
- github-token: ${{ secrets.GH_PAT }} # PAT with repo scope for cross-repo access
34
- ```
35
-
36
- ### CLI
37
-
38
- ```bash
39
- # Install
40
- npm install -g @aspruyt/xfg
41
-
42
- # Authenticate (GitHub)
43
- gh auth login
44
-
45
- # Sync files, settings, rulesets, and labels across repos
46
- xfg sync --config ./config.yaml
47
- ```
48
-
49
- ### Example Config
50
-
51
- ```yaml
52
- # sync-config.yaml
53
- id: my-org-standards
54
-
55
- files:
56
- .prettierrc.json:
57
- content:
58
- semi: false
59
- singleQuote: true
60
- tabWidth: 2
61
-
62
- settings:
63
- repo:
64
- allowSquashMerge: true
65
- deleteBranchOnMerge: true
66
- vulnerabilityAlerts: true
67
- secretScanning: true
68
-
69
- rulesets:
70
- main-protection:
71
- target: branch
72
- enforcement: active
73
- conditions:
74
- refName:
75
- include: [refs/heads/main]
76
- exclude: []
77
- rules:
78
- - type: pull_request
79
- parameters:
80
- requiredApprovingReviewCount: 1
81
- - type: required_status_checks
82
- parameters:
83
- requiredStatusChecks:
84
- - context: "ci/build"
85
-
86
- repos:
87
- - git:
88
- - git@github.com:your-org/frontend-app.git
89
- - git@github.com:your-org/backend-api.git
90
- ```
91
-
92
- **Result:** PRs are created with `.prettierrc.json` files, and repos get standardized merge options, security settings, and branch protection rulesets.
93
-
94
- ## Documentation
95
-
96
- See **[anthony-spruyt.github.io/xfg](https://anthony-spruyt.github.io/xfg/)** for the full feature list, configuration reference, examples, platform setup, and troubleshooting.