@aurodesignsystem-dev/auro-cli 0.0.0-pr212.1 → 0.0.0-pr217.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.
@@ -0,0 +1 @@
1
+ import{Logger as a}from"@aurodesignsystem/auro-library/scripts/utils/logger.mjs";import r from"@npmcli/package-json";import c from"fs";var o=async()=>{let e=await r.load("./");e.update({scripts:{...e.content.scripts,"test:coverage":"auro test --coverage-report --open"}}),e.update({engines:{node:">=20"}}),e.update({publishConfig:{access:"public",provenance:!0}}),e.update({exports:{...e.content.exports,"./package.json":"./package.json"}}),await e.save()},s=async()=>{let e=".nvmrc";try{c.writeFileSync(e,"v22")}catch(t){throw a.error(`Failed to create .nvmrc file: ${t.message}`),t}},n=async()=>{await o(),a.info("package.json updated successfully."),await s(),a.info(".nvmrc file created successfully.")};n().catch(e=>{a.error(`Migration failed: ${e}`)});
@@ -0,0 +1,176 @@
1
+ # The username of the assignees to be added on the pull request.
2
+ assignees:
3
+ - rmenner
4
+
5
+ # The authentication type. Used only for Bitbucket cloud. Available values: app-password, workspace-token.
6
+ auth-type: workspace-token
7
+
8
+ # Email of the committer. If not set, the global git config setting will be used.
9
+ author-email:
10
+
11
+ # Name of the committer. If not set, the global git config setting will be used.
12
+ author-name:
13
+
14
+ # The branch which the changes will be based on.
15
+ base-branch:
16
+
17
+ # Base URL of the target platform, needs to be changed for GitHub enterprise, a self-hosted GitLab instance, Gitea or BitBucket.
18
+ base-url:
19
+
20
+ # The name of the branch where changes are committed.
21
+ branch: rmenner/ci/oidc-release-upgrade
22
+
23
+ # The temporary directory where the repositories will be cloned. If not set, the default os temporary directory will be used.
24
+ clone-dir: .gitter-temp
25
+
26
+ # Use a code search to find a set of repositories to target (GitHub only). Repeated results from a given repository will be ignored, forks are NOT included by default (use `fork:true` to include them). See the GitHub documentation for full syntax: https://docs.github.com/en/search-github/searching-on-github/searching-code.
27
+ code-search:
28
+
29
+ # The commit message. Will default to title + body if none is set.
30
+ commit-message: "ci: Update repo config to support 'Trusted Publishing (OIDC)' for GitHub Actions #219"
31
+
32
+ # The maximum number of concurrent runs.
33
+ concurrent: 1
34
+
35
+ # What should happen if the branch already exist.
36
+ # Available values:
37
+ # skip: Skip making any changes to the existing branch and do not create a new pull request.
38
+ # replace: Replace the existing content of the branch by force pushing any new changes, then reuse any existing pull request, or create a new one if none exist.
39
+ conflict-strategy: skip
40
+
41
+ # Create pull request(s) as draft.
42
+ draft: false
43
+
44
+ # Run without pushing changes or creating pull requests.
45
+ dry-run: false
46
+
47
+ # Limit fetching to the specified number of commits. Set to 0 for no limit.
48
+ fetch-depth: 1
49
+
50
+ # Fork the repository instead of creating a new branch on the same owner.
51
+ fork: false
52
+
53
+ # If set, make the fork to the defined value. Default behavior is for the fork to be on the logged in user.
54
+ fork-owner:
55
+
56
+ # The type of git implementation to use.
57
+ # Available values:
58
+ # go: Uses go-git, a Go native implementation of git. This is compiled with the multi-gitter binary, and no extra dependencies are needed.
59
+ # cmd: Calls out to the git command. This requires git to be installed and available with by calling "git".
60
+ git-type: go
61
+
62
+ # The name of a GitLab organization. All repositories in that group will be used.
63
+ group:
64
+
65
+ # Include GitLab subgroups when using the --group flag.
66
+ include-subgroups: false
67
+
68
+ # Insecure controls whether a client verifies the server certificate chain and host name. Used only for Bitbucket server.
69
+ insecure: false
70
+
71
+ # Take manual decision before committing any change. Requires git to be installed.
72
+ interactive: false
73
+
74
+ # Labels to be added to any created pull request.
75
+ labels:
76
+
77
+ # The file where all logs should be printed to. "-" means stdout.
78
+ log-file: "-"
79
+
80
+ # The formatting of the logs. Available values: text, json, json-pretty.
81
+ log-format: text
82
+
83
+ # The level of logging that should be made. Available values: trace, debug, info, error.
84
+ log-level: info
85
+
86
+ # If this value is set, reviewers will be randomized.
87
+ max-reviewers: 0
88
+
89
+ # If this value is set, team reviewers will be randomized
90
+ max-team-reviewers: 0
91
+
92
+ # The name of a GitHub organization. All repositories in that organization will be used.
93
+ org:
94
+
95
+ # The file that the output of the script should be outputted to. "-" means stdout.
96
+ output: "-"
97
+
98
+ # Don't use any terminal formatting when printing the output.
99
+ plain-output: false
100
+
101
+ # The platform that is used. Available values: github, gitlab, gitea, bitbucket_server, bitbucket_cloud. Note: bitbucket_cloud is in Beta
102
+ platform: github
103
+
104
+ # The body of the commit message. Will default to everything but the first line of the commit message if none is set.
105
+ pr-body: "Resolves AlaskaAirlines/auro-cli#219"
106
+
107
+ # The title of the PR. Will default to the first line of the commit message if none is set.
108
+ pr-title: "AURO MIGRATION: Setup 'Trusted Publishing (OIDC)' for GitHub Actions"
109
+
110
+ # The name, including owner of a GitLab project in the format "ownerName/repoName".
111
+ project:
112
+
113
+ # Skip pull request and only push the feature branch.
114
+ push-only: false
115
+
116
+ # The name, including owner of a GitHub repository in the format "ownerName/repoName".
117
+ repo:
118
+ # - AlaskaAirlines/auro-accordion
119
+ - AlaskaAirlines/auro-alert
120
+ - AlaskaAirlines/auro-avatar
121
+ - AlaskaAirlines/auro-background
122
+ - AlaskaAirlines/auro-backtotop
123
+ - AlaskaAirlines/auro-badge
124
+ - AlaskaAirlines/auro-banner
125
+ - AlaskaAirlines/auro-button
126
+ - AlaskaAirlines/auro-card
127
+ - AlaskaAirlines/auro-carousel
128
+ - AlaskaAirlines/auro-datetime
129
+ - AlaskaAirlines/auro-dialog
130
+ - AlaskaAirlines/auro-drawer
131
+ - AlaskaAirlines/auro-flight
132
+ - AlaskaAirlines/auro-flightline
133
+ - AlaskaAirlines/auro-formkit
134
+ - AlaskaAirlines/auro-header
135
+ - AlaskaAirlines/auro-hyperlink
136
+ - AlaskaAirlines/auro-icon
137
+ - AlaskaAirlines/auro-loader
138
+ - AlaskaAirlines/auro-lockup
139
+ - AlaskaAirlines/auro-nav
140
+ - AlaskaAirlines/auro-pane
141
+ - AlaskaAirlines/auro-popover
142
+ - AlaskaAirlines/auro-sidenav
143
+ - AlaskaAirlines/auro-skeleton
144
+ - AlaskaAirlines/auro-slideshow
145
+ - AlaskaAirlines/auro-table
146
+ - AlaskaAirlines/auro-tabs
147
+ - AlaskaAirlines/auro-toast
148
+
149
+
150
+ # Exclude repositories that match with a given Regular Expression
151
+ repo-exclude:
152
+
153
+ # Include repositories that match with a given Regular Expression
154
+ repo-include:
155
+
156
+ # Use a repository search to find repositories to target (GitHub only). Forks are NOT included by default, use `fork:true` to include them. See the GitHub documentation for full syntax: https://docs.github.com/en/search-github/searching-on-github/searching-for-repositories.
157
+ repo-search:
158
+
159
+ # The username of the reviewers to be added on the pull request.
160
+ reviewers:
161
+
162
+ # Skip repositories which are forks.
163
+ skip-forks: false
164
+
165
+ # Skip pull request and directly push to the branch.
166
+ skip-pr: false
167
+
168
+ # Skip changes on specified repositories, the name is including the owner of repository in the format "ownerName/repoName".
169
+ skip-repo:
170
+
171
+ # Use SSH cloning URL instead of HTTPS + token. This requires that a setup with ssh keys that have access to all repos and that the server is already in known_hosts.
172
+ ssh-auth: false
173
+
174
+ # Github team names of the reviewers, in format: 'org/team'
175
+ team-reviewers:
176
+
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+
3
+ node "$(dirname "$0")/migration.js"
4
+
5
+ npx npm-check-updates -f "/^@aurodesignsystem/auro-config$/" -u --install always
@@ -1 +1 @@
1
- import c from"node:fs/promises";import m from"node:path";import w from"ora";import E from"node:fs";import v from"node:os";import p from"node:path";import a from"node:process";function k(){let e=v.homedir()||a.env.HOME||a.env.USERPROFILE;if(!e)throw new Error("Unable to determine user home directory");return p.join(e,".auro")}function u(...e){return p.join(k(),...e)}var d=u("run-migrations","outputs");async function x(){let e=await c.readFile(m.resolve(process.cwd(),"package.json"));await c.mkdir(d,{recursive:!0});let o=JSON.parse(e.toString("utf8")),g=["@aurodesignsystem","@alaskaairux"],n={name:o.name,peerDependencies:{},devDependencies:{},dependencies:{}};function t(r,D){let i={};return r&&Object.keys(r).forEach(s=>{s.includes(D)&&(i[s]=r[s])}),i}for(let r of g)n.peerDependencies={...n.peerDependencies,...t(o.peerDependencies,r)},n.devDependencies={...n.devDependencies,...t(o.devDependencies,r)},n.dependencies={...n.dependencies,...t(o.dependencies,r)};console.log(`${o.name} -> ${JSON.stringify(n,null,4)}`);let l=d,h=m.join(l,`${o.name.replace("@aurodesignsystem/","")}_deps.json`);await c.writeFile(h,JSON.stringify(n,null,4))}var f=w("Fetching Auro package dependencies...").start();x().then(()=>{f.succeed("Auro package dependencies have been written to the output file.")}).catch(e=>{f.fail("Error fetching Auro package dependencies:"),console.error(e)});export{x as getAuroPackageDependencies};
1
+ import c from"node:fs/promises";import u from"node:path";import w from"ora";import S from"node:fs";import v from"node:os";import p from"node:path";import a from"node:process";function k(){let e=v.homedir()||a.env.HOME||a.env.USERPROFILE;if(!e)throw new Error("Unable to determine user home directory");return p.join(e,".auro")}function m(...e){return p.join(k(),...e)}var d=m("run-migrations","outputs");async function x(){let e=await c.readFile(u.resolve(process.cwd(),"package.json"));await c.mkdir(d,{recursive:!0});let r=JSON.parse(e.toString("utf8")),g=["@aurodesignsystem","@alaskaairux"],n={name:r.name,peerDependencies:{},devDependencies:{},dependencies:{}};function t(o,D){let i={};return o&&Object.keys(o).forEach(s=>{s.includes(D)&&(i[s]=o[s])}),i}for(let o of g)n.peerDependencies={...n.peerDependencies,...t(r.peerDependencies,o)},n.devDependencies={...n.devDependencies,...t(r.devDependencies,o)},n.dependencies={...n.dependencies,...t(r.dependencies,o)};console.log(`${r.name} -> ${JSON.stringify(n,null,4)}`);let l=d,h=u.join(l,`${r.name.replace("@aurodesignsystem/","")}_deps.json`);await c.writeFile(h,JSON.stringify(n,null,4))}var f=w("Fetching Auro package dependencies...").start();x().then(()=>{f.succeed("Auro package dependencies have been written to the output file.")}).catch(e=>{f.fail("Error fetching Auro package dependencies:"),console.error(e)});export{x as getAuroPackageDependencies};
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-cli",
3
- "version": "0.0.0-pr212.1",
3
+ "version": "0.0.0-pr217.1",
4
4
  "description": "A cli tool to support the Auro Design System",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/AlaskaAirlines/auro-cli"
8
+ },
5
9
  "scripts": {
6
10
  "lint": "biome check --fix --no-errors-on-unmatched",
7
11
  "prepare": "husky",
@@ -36,7 +40,8 @@
36
40
  "#utils/*": "./src/utils/*"
37
41
  },
38
42
  "publishConfig": {
39
- "access": "public"
43
+ "access": "public",
44
+ "provenance": true
40
45
  },
41
46
  "engines": {
42
47
  "node": ">=18"
@@ -52,6 +57,8 @@
52
57
  "@aurodesignsystem/auro-library": "^5.5.3",
53
58
  "@babel/preset-env": "^7.28.3",
54
59
  "@custom-elements-manifest/analyzer": "^0.10.10",
60
+ "@npmcli/package-json": "^7.0.1",
61
+ "@octokit/rest": "^22.0.0",
55
62
  "@open-wc/dev-server-hmr": "^0.2.0",
56
63
  "@open-wc/testing": "^4.0.0",
57
64
  "@rollup/plugin-node-resolve": "^16.0.1",
@@ -61,6 +68,7 @@
61
68
  "@web/dev-server": "^0.4.6",
62
69
  "@web/dev-server-rollup": "^0.6.4",
63
70
  "@web/test-runner": "^0.20.2",
71
+ "azure-devops-node-api": "^15.1.1",
64
72
  "chalk": "^5.6.2",
65
73
  "commander": "^13.1.0",
66
74
  "figlet": "^1.9.3",
@@ -76,7 +84,7 @@
76
84
  "typescript": "^5.9.2"
77
85
  },
78
86
  "devDependencies": {
79
- "@aurodesignsystem/auro-config": "^1.3.0",
87
+ "@aurodesignsystem/auro-config": "^1.3.1",
80
88
  "@types/node": "^22.15.3",
81
89
  "copyfiles": "^2.4.1",
82
90
  "custom-elements-manifest": "^2.1.0",
@@ -88,6 +96,5 @@
88
96
  },
89
97
  "optionalDependencies": {
90
98
  "@rollup/rollup-linux-x64-gnu": "*"
91
- },
92
- "customElements": "custom-elements.json"
99
+ }
93
100
  }