@aurodesignsystem-dev/auro-cli 0.0.0-pr71.0

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 (26) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +2 -0
  3. package/README.md +60 -0
  4. package/dist/auro-cli.js +29 -0
  5. package/dist/auro-cli.js.map +7 -0
  6. package/dist/migrations/auro-template-sync-v2/multi-gitter.yml +179 -0
  7. package/dist/migrations/auro-template-sync-v2/script.sh +3 -0
  8. package/dist/migrations/github-config-and-gitignore-changes/migration.d.ts +1 -0
  9. package/dist/migrations/github-config-and-gitignore-changes/migration.js +6 -0
  10. package/dist/migrations/github-config-and-gitignore-changes/multi-gitter.yml +181 -0
  11. package/dist/migrations/github-config-and-gitignore-changes/script.sh +4 -0
  12. package/dist/migrations/package-update-dropdown-v3-2-2/multi-gitter.yml +180 -0
  13. package/dist/migrations/package-update-dropdown-v3-2-2/script.sh +12 -0
  14. package/dist/migrations/package-update-node/migration.d.ts +1 -0
  15. package/dist/migrations/package-update-node/migration.js +2 -0
  16. package/dist/migrations/package-update-node/multi-gitter.yml +180 -0
  17. package/dist/migrations/package-update-node/script.sh +5 -0
  18. package/dist/migrations/token-formatting/migration.d.ts +1 -0
  19. package/dist/migrations/token-formatting/migration.js +8 -0
  20. package/dist/migrations/token-formatting/multi-gitter.yml +173 -0
  21. package/dist/migrations/token-formatting/script.sh +3 -0
  22. package/dist/migrations/wca-script-update/migration.d.ts +1 -0
  23. package/dist/migrations/wca-script-update/migration.js +2 -0
  24. package/dist/migrations/wca-script-update/multi-gitter.yml +164 -0
  25. package/dist/migrations/wca-script-update/script.sh +9 -0
  26. package/package.json +92 -0
@@ -0,0 +1,173 @@
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: main
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: migration/scss-token-formatting
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: "fix: update SCSS token formatting"
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#62"
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: SCSS token formatting"
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-avatar
120
+ - AlaskaAirlines/auro-button
121
+ - AlaskaAirlines/auro-dialog
122
+ - AlaskaAirlines/auro-drawer
123
+ - AlaskaAirlines/auro-formkit
124
+ - AlaskaAirlines/auro-toast
125
+ # - AlaskaAirlines/auro-alert
126
+ # - AlaskaAirlines/auro-background
127
+ # - AlaskaAirlines/auro-backtotop
128
+ # - AlaskaAirlines/auro-badge
129
+ # - AlaskaAirlines/auro-banner
130
+ # - AlaskaAirlines/auro-card
131
+ # - AlaskaAirlines/auro-carousel
132
+ # - AlaskaAirlines/auro-datetime
133
+ # - AlaskaAirlines/auro-flight
134
+ # - AlaskaAirlines/auro-flightline
135
+ # - AlaskaAirlines/auro-header
136
+ # - AlaskaAirlines/auro-hyperlink
137
+ # - AlaskaAirlines/auro-icon
138
+ # - AlaskaAirlines/auro-loader
139
+ # - AlaskaAirlines/auro-lockup
140
+ # - AlaskaAirlines/auro-menu
141
+ # - AlaskaAirlines/auro-nav
142
+ # - AlaskaAirlines/auro-pane
143
+ # - AlaskaAirlines/auro-popover
144
+ # - AlaskaAirlines/auro-sidenav
145
+ # - AlaskaAirlines/auro-skeleton
146
+ # - AlaskaAirlines/auro-table
147
+
148
+ # Exclude repositories that match with a given Regular Expression
149
+ repo-exclude:
150
+
151
+ # Include repositories that match with a given Regular Expression
152
+ repo-include:
153
+
154
+ # 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.
155
+ repo-search:
156
+
157
+ # The username of the reviewers to be added on the pull request.
158
+ reviewers:
159
+
160
+ # Skip repositories which are forks.
161
+ skip-forks: false
162
+
163
+ # Skip pull request and directly push to the branch.
164
+ skip-pr: false
165
+
166
+ # Skip changes on specified repositories, the name is including the owner of repository in the format "ownerName/repoName".
167
+ skip-repo:
168
+
169
+ # 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.
170
+ ssh-auth: false
171
+
172
+ # Github team names of the reviewers, in format: 'org/team'
173
+ team-reviewers:
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ node "$(dirname "$0")/migration.js" --fix
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import{Logger as t}from"@aurodesignsystem/auro-library/scripts/utils/logger.mjs";import p from"node:fs";function r(){try{let i="wca analyze 'scripts/wca/*' --outFiles docs/api.md",a="package.json",c=JSON.parse(p.readFileSync(a,"utf8"));c.scripts["build:api"]=i,p.writeFileSync(a,`${JSON.stringify(c,null,2)}
2
+ `,"utf8"),t.success("build:api script updated in package.json")}catch(i){t.error(`Failed to update build:api script in package.json: ${i}`)}}r();
@@ -0,0 +1,164 @@
1
+ # The username of the assignees to be added on the pull request.
2
+ assignees:
3
+ - jyang81
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: migration/wca-script-update
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: "perf: add wca script for docs api"
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#38"
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: WCA Script Update"
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-button
119
+ # - AlaskaAirlines/auro-hyperlink
120
+ # - AlaskaAirlines/auro-table
121
+ # - AlaskaAirlines/auro-carousel
122
+ # - AlaskaAirlines/auro-popover
123
+ # - AlaskaAirlines/auro-alert
124
+ # - AlaskaAirlines/auro-accordion
125
+ # - AlaskaAirlines/auro-pane
126
+ # - AlaskaAirlines/auro-avatar
127
+ # - AlaskaAirlines/auro-datetime
128
+ # - AlaskaAirlines/auro-loader
129
+ # - AlaskaAirlines/auro-badge
130
+ # - AlaskaAirlines/auro-flightline
131
+ # - AlaskaAirlines/auro-card
132
+ # - AlaskaAirlines/auro-backtotop
133
+ # - AlaskaAirlines/auro-skeleton
134
+ # - AlaskaAirlines/auro-banner
135
+ # - AlaskaAirlines/auro-background
136
+ # - AlaskaAirlines/auro-sidenav
137
+ # - AlaskaAirlines/auro-dialog
138
+
139
+ # Exclude repositories that match with a given Regular Expression
140
+ repo-exclude:
141
+
142
+ # Include repositories that match with a given Regular Expression
143
+ repo-include:
144
+
145
+ # 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.
146
+ repo-search:
147
+
148
+ # The username of the reviewers to be added on the pull request.
149
+ reviewers:
150
+
151
+ # Skip repositories which are forks.
152
+ skip-forks: false
153
+
154
+ # Skip pull request and directly push to the branch.
155
+ skip-pr: false
156
+
157
+ # Skip changes on specified repositories, the name is including the owner of repository in the format "ownerName/repoName".
158
+ skip-repo:
159
+
160
+ # 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.
161
+ ssh-auth: false
162
+
163
+ # Github team names of the reviewers, in format: 'org/team'
164
+ team-reviewers:
@@ -0,0 +1,9 @@
1
+ #!/bin/bash
2
+
3
+ auro wca-setup
4
+ node "$(dirname "$0")/migration.js"
5
+ npm install
6
+ npm run build:api
7
+ npm run build:docs
8
+ npm run build
9
+
package/package.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@aurodesignsystem-dev/auro-cli",
3
+ "version": "0.0.0-pr71.0",
4
+ "description": "A cli tool to support the Auro Design System",
5
+ "scripts": {
6
+ "lint": "biome check --fix --no-errors-on-unmatched",
7
+ "prepare": "husky",
8
+ "test": "echo \"Notice: no tests available\" && exit 0",
9
+ "dev": "tsc && npm run copy-files && npm run bundle -- --watch --dev",
10
+ "build": "tsc && npm run copy-files && npm run bundle",
11
+ "build:dev": "tsc && npm run copy-files && npm run bundle -- --dev",
12
+ "copy-files": "copyfiles -f -u 1 \"src/migrations/**/*.{yml,sh}\" dist/ && tsc-alias",
13
+ "bundle": "node esbuild.config.js",
14
+ "auro-internal": "node ./dist/auro-cli.js"
15
+ },
16
+ "license": "Apache-2.0",
17
+ "type": "module",
18
+ "lint-staged": {
19
+ "*": [
20
+ "biome check --fix --no-errors-on-unmatched"
21
+ ]
22
+ },
23
+ "bin": {
24
+ "auro": "dist/auro-cli.js"
25
+ },
26
+ "exports": {
27
+ ".": "./dist/auro-cli.js"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "CHANGELOG.md",
32
+ "README.md",
33
+ "LICENSE",
34
+ "NOTICE"
35
+ ],
36
+ "imports": {
37
+ "#configs/*": "./src/configs/*",
38
+ "#commands/*": "./src/commands/*",
39
+ "#scripts/*": "./src/scripts/*",
40
+ "#utils/*": "./src/utils/*"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "engines": {
46
+ "node": ">=18"
47
+ },
48
+ "keywords": [
49
+ "alaska airlines",
50
+ "auro",
51
+ "design system",
52
+ "web components"
53
+ ],
54
+ "dependencies": {
55
+ "@actions/github": "^6.0.0",
56
+ "@aurodesignsystem/auro-library": "^4.4.1",
57
+ "@babel/preset-env": "^7.27.1",
58
+ "@open-wc/dev-server-hmr": "^0.2.0",
59
+ "@rollup/plugin-terser": "^0.4.4",
60
+ "@rollup/plugin-typescript": "^12.1.2",
61
+ "@web/dev-server": "^0.4.6",
62
+ "chalk": "^5.4.1",
63
+ "commander": "^13.1.0",
64
+ "figlet": "^1.8.1",
65
+ "glob": "^11.0.2",
66
+ "gradient-string": "^3.0.0",
67
+ "inquirer": "^12.6.0",
68
+ "ora": "^8.2.0",
69
+ "rollup-plugin-dts": "^6.2.1",
70
+ "rollup-plugin-scss-lit": "^2.1.0",
71
+ "simple-git": "^3.27.0",
72
+ "table": "^6.9.0",
73
+ "typescript": "^5.8.3",
74
+ "web-component-analyzer": "^2.0.0"
75
+ },
76
+ "devDependencies": {
77
+ "@aurodesignsystem/auro-config": "^1.0.1",
78
+ "@biomejs/biome": "1.9.4",
79
+ "@commitlint/cli": "^19.8.0",
80
+ "@commitlint/config-conventional": "^19.8.0",
81
+ "@semantic-release/changelog": "^6.0.3",
82
+ "@semantic-release/git": "^10.0.1",
83
+ "@semantic-release/npm": "^12.0.1",
84
+ "@types/node": "^22.15.3",
85
+ "copyfiles": "^2.4.1",
86
+ "esbuild": "^0.25.3",
87
+ "husky": "^9.1.7",
88
+ "lint-staged": "^15.5.1",
89
+ "semantic-release": "^24.2.3",
90
+ "tsc-alias": "^1.8.15"
91
+ }
92
+ }