@mainqueueio/playground 0.1.1 โ 0.1.3-next.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.
- package/LICENSE +21 -0
- package/dist/index.js +7 -0
- package/package.json +24 -2
- package/.bun-version +0 -1
- package/.codebeatignore +0 -12
- package/.github/CODEOWNERS +0 -15
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -27
- package/.github/workflows/lint.yml +0 -23
- package/.github/workflows/release.yml +0 -46
- package/.github/workflows/semantic.yml +0 -40
- package/.github/workflows/stale.yml +0 -53
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -0
- package/.nvmrc +0 -1
- package/.release-it.json +0 -67
- package/Brewfile +0 -1
- package/CHANGELOG.md +0 -13
- package/build.ts +0 -5
- package/bun.lock +0 -838
- package/bunfig.toml +0 -9
- package/commitlint.config.js +0 -3
- package/src/index.spec.ts +0 -25
- package/src/index.ts +0 -8
- package/tsconfig.json +0 -28
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 MainQueueIO
|
|
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/dist/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mainqueueio/playground",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3-next.0",
|
|
4
4
|
"author": "diegocuehdz",
|
|
5
5
|
"description": "MainQueue's playground project for checking deploys, registries, and other things.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"packageManager": "bun@1.2.8",
|
|
8
8
|
"module": "src/index.ts",
|
|
9
9
|
"type": "module",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/MainQueueIO/",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/MainQueueIO/playground.git"
|
|
17
|
+
},
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public",
|
|
20
|
+
"registry": "https://registry.npmjs.org"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"bun",
|
|
24
|
+
"typescript",
|
|
25
|
+
"playground",
|
|
26
|
+
"npm",
|
|
27
|
+
"jsr",
|
|
28
|
+
"github-packages",
|
|
29
|
+
"registry"
|
|
30
|
+
],
|
|
10
31
|
"scripts": {
|
|
11
32
|
"husky:prepare": "is-ci || husky",
|
|
12
33
|
"lint": "bun test",
|
|
@@ -14,7 +35,8 @@
|
|
|
14
35
|
"test:watch": "echo 'test & watch for changes is supported by bun, please run $bun test --watch'",
|
|
15
36
|
"test:coverage": "echo 'test with coverage is supported by bun, please run $bun test --coverage'",
|
|
16
37
|
"release:ci": "release-it --ci",
|
|
17
|
-
"release:local": "release-it"
|
|
38
|
+
"release:local": "release-it",
|
|
39
|
+
"release:ci:canary": "release-it --ci --config .release-it-canary.json --preRelease=next --release-version"
|
|
18
40
|
},
|
|
19
41
|
"devDependencies": {
|
|
20
42
|
"@commitlint/cli": "^19.8.0",
|
package/.bun-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.2.8
|
package/.codebeatignore
DELETED
package/.github/CODEOWNERS
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# The code owners will appear as the default reviewers in every PR.
|
|
2
|
-
|
|
3
|
-
# More information about this file at: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
|
|
4
|
-
|
|
5
|
-
# Default code owners
|
|
6
|
-
|
|
7
|
-
* @diegocuehdz
|
|
8
|
-
|
|
9
|
-
# Only super-priviledge users should be able to edit this file
|
|
10
|
-
|
|
11
|
-
/.github/workflows/\*\* @MainQueueIO/admins
|
|
12
|
-
|
|
13
|
-
# Prevent mods to this file (Codeowners)
|
|
14
|
-
|
|
15
|
-
/.github/CODEOWNERS @MainQueueIO/admins
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
## Description
|
|
2
|
-
|
|
3
|
-
<-- Add a description of your changes !-->
|
|
4
|
-
|
|
5
|
-
## Change summary per file, functionality or module
|
|
6
|
-
|
|
7
|
-
<-- List or group the changes that you made !-->
|
|
8
|
-
|
|
9
|
-
## Issue list that the PR addresses
|
|
10
|
-
|
|
11
|
-
- [Issue Number](https://github.com/MainQueueIO/playground/issues)
|
|
12
|
-
|
|
13
|
-
## Checklist
|
|
14
|
-
|
|
15
|
-
- [ ] The project compiled correctly
|
|
16
|
-
- [ ] The documentation was updated
|
|
17
|
-
- [ ] Unit tests were added successfully
|
|
18
|
-
|
|
19
|
-
## Notes
|
|
20
|
-
|
|
21
|
-
<-- Add any additional notes !-->
|
|
22
|
-
|
|
23
|
-
## ScreenShots (If required)
|
|
24
|
-
|
|
25
|
-
| Before | After |
|
|
26
|
-
| ------ | ------ |
|
|
27
|
-
| Screen | Screen |
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: "[PR] Lint & Format Code"
|
|
2
|
-
on:
|
|
3
|
-
pull_request:
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
run-linters:
|
|
7
|
-
name: Run linters
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
|
|
10
|
-
steps:
|
|
11
|
-
- name: Check out Git repository
|
|
12
|
-
uses: actions/checkout@v4
|
|
13
|
-
|
|
14
|
-
- name: Set up Bun
|
|
15
|
-
uses: oven-sh/setup-bun@v2
|
|
16
|
-
with:
|
|
17
|
-
bun-version-file: ".bun-version"
|
|
18
|
-
|
|
19
|
-
- name: Install Deps via Bun
|
|
20
|
-
run: bun install
|
|
21
|
-
|
|
22
|
-
- name: Run linters
|
|
23
|
-
run: bun test # TBD: Replace with the actual command to run linters after creating linting repo
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
name: "[Release] Release"
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
release:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- name: Checkout Repository
|
|
12
|
-
uses: actions/checkout@v4.2.2
|
|
13
|
-
|
|
14
|
-
- name: Initialize Git user
|
|
15
|
-
run: |
|
|
16
|
-
git config --global user.email "bot@mainqueue.io"
|
|
17
|
-
git config --global user.name "MainQueue.io Bot"
|
|
18
|
-
|
|
19
|
-
- name: Setup Node.js
|
|
20
|
-
uses: actions/setup-node@v4
|
|
21
|
-
with:
|
|
22
|
-
node-version-file: ".nvmrc"
|
|
23
|
-
registry-url: https://registry.npmjs.org/
|
|
24
|
-
|
|
25
|
-
- name: Setup Bun.js
|
|
26
|
-
uses: oven-sh/setup-bun@v2
|
|
27
|
-
with:
|
|
28
|
-
bun-version-file: ".bun-version"
|
|
29
|
-
|
|
30
|
-
- name: Install the dependancies
|
|
31
|
-
run: bun install
|
|
32
|
-
|
|
33
|
-
- name: Authenticate with NPM
|
|
34
|
-
run: |
|
|
35
|
-
echo "//registry.npmjs.org/:_authToken=${{ secrets.ORG_MQIO_NPM_TOKEN }}" > ~/.npmrc
|
|
36
|
-
|
|
37
|
-
- name: Build dist files with tsc
|
|
38
|
-
run: bun run build.ts
|
|
39
|
-
|
|
40
|
-
- name: Create Release
|
|
41
|
-
run: |
|
|
42
|
-
bun release:ci
|
|
43
|
-
env:
|
|
44
|
-
NODE_AUTH_TOKEN: ${{ secrets.ORG_MQIO_NPM_TOKEN }}
|
|
45
|
-
NPM_TOKEN: ${{ secrets.ORG_MQIO_NPM_TOKEN }}
|
|
46
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
name: "[PR] Semantic Pull Request"
|
|
2
|
-
on:
|
|
3
|
-
pull_request:
|
|
4
|
-
types:
|
|
5
|
-
- opened
|
|
6
|
-
- edited
|
|
7
|
-
- synchronize
|
|
8
|
-
- reopened
|
|
9
|
-
- labeled
|
|
10
|
-
- unlabeled
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
check-pullrequest-label:
|
|
14
|
-
name: Check for labeled PR
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
steps:
|
|
17
|
-
- name: Platform label
|
|
18
|
-
uses: agilepathway/label-checker@v1.6.65
|
|
19
|
-
with:
|
|
20
|
-
any_of: ci,config,deps,npm,jsr,github-packages
|
|
21
|
-
none_of: "@:"
|
|
22
|
-
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
23
|
-
|
|
24
|
-
check-pullrequest-title:
|
|
25
|
-
name: Check for semantic PR title
|
|
26
|
-
runs-on: ubuntu-latest
|
|
27
|
-
steps:
|
|
28
|
-
- uses: amannn/action-semantic-pull-request@v5.5.3
|
|
29
|
-
env:
|
|
30
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
31
|
-
with:
|
|
32
|
-
wip: true
|
|
33
|
-
validateSingleCommit: true
|
|
34
|
-
scopes: |
|
|
35
|
-
ci
|
|
36
|
-
config
|
|
37
|
-
deps
|
|
38
|
-
npm
|
|
39
|
-
jsr
|
|
40
|
-
github-packages
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
name: "[Cron] Close stale elements"
|
|
2
|
-
on:
|
|
3
|
-
workflow_dispatch:
|
|
4
|
-
schedule:
|
|
5
|
-
- cron: "0 0 * * *"
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
close-stale-issues-and-prs:
|
|
9
|
-
name: Close stale issues and PRs
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
permissions:
|
|
12
|
-
issues: write
|
|
13
|
-
pull-requests: write
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/stale@v9
|
|
16
|
-
with:
|
|
17
|
-
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
18
|
-
|
|
19
|
-
# Issues cron logic
|
|
20
|
-
days-before-issue-stale: 20
|
|
21
|
-
days-before-issue-close: 10
|
|
22
|
-
stale-issue-label: "stale"
|
|
23
|
-
stale-issue-message: "This issue has been marked as stale because it hasn't had any activity for 20 days. If this is still active, please comment on the issue and it will be marked as active again."
|
|
24
|
-
close-issue-message: "This issue has been closed because it has not had any activity for 30 days. Re-open it if you still want/need to work on it."
|
|
25
|
-
exempt-issue-labels: "skip-cron-ci"
|
|
26
|
-
|
|
27
|
-
# PR cron logic
|
|
28
|
-
days-before-pr-stale: 20
|
|
29
|
-
days-before-pr-close: 10
|
|
30
|
-
stale-pr-label: "stale"
|
|
31
|
-
stale-pr-message: "This PR has been marked as stale because it hasn't had any activity for 20 days. If this PR is still active, please comment on the PR or push new changes and it will be marked as active again."
|
|
32
|
-
close-pr-message: "This PR has been closed because it has not had any activity for 30 days. Either create a new PR or re-open this one."
|
|
33
|
-
exempt-pr-labels: "skip-cron-ci"
|
|
34
|
-
|
|
35
|
-
close-stale-branches: # here are what each param does https://github.com/beatlabs/delete-old-branches-action/blob/master/action.yml
|
|
36
|
-
name: Close stale branches
|
|
37
|
-
runs-on: ubuntu-latest
|
|
38
|
-
steps:
|
|
39
|
-
- name: Checkout repository
|
|
40
|
-
uses: actions/checkout@v4
|
|
41
|
-
- name: Run delete-old-branches-action
|
|
42
|
-
uses: beatlabs/delete-old-branches-action@v0.0.10
|
|
43
|
-
with:
|
|
44
|
-
repo_token: ${{ github.token }}
|
|
45
|
-
date: '2 months ago'
|
|
46
|
-
delete_tags: false
|
|
47
|
-
minimum_tags: false
|
|
48
|
-
default_branches: main,develop,master
|
|
49
|
-
#extra_protected_branch_regex: master.*|main|develop|^release.*$
|
|
50
|
-
#extra_protected_tag_regex: '^v.*'
|
|
51
|
-
exclude_open_pr_branches: true
|
|
52
|
-
dry_run: false #move this to false to actually delete branches after being sure
|
|
53
|
-
|
package/.husky/commit-msg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
bunx --no -- commitlint --edit $1
|
package/.husky/pre-commit
DELETED
|
File without changes
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
22.14.0
|
package/.release-it.json
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"git": {
|
|
3
|
-
"commitMessage": "chore: release v${version}",
|
|
4
|
-
"requireBranch": "main"
|
|
5
|
-
},
|
|
6
|
-
"github": {
|
|
7
|
-
"release": true,
|
|
8
|
-
"releaseName": "v${version}",
|
|
9
|
-
"autoGenerate": true,
|
|
10
|
-
"tokenRef": "GITHUB_TOKEN",
|
|
11
|
-
"comments": {
|
|
12
|
-
"submit": true,
|
|
13
|
-
"issue": ":rocket: _This issue has been resolved in version ${version}. See [${releaseName}](${releaseUrl}) for release notes._",
|
|
14
|
-
"pr": ":rocket: _This pull request is included in version ${version}. See [${releaseName}](${releaseUrl}) for release notes._"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"npm": {
|
|
18
|
-
"publish": true,
|
|
19
|
-
"skipChecks": true,
|
|
20
|
-
"publishArgs": [
|
|
21
|
-
"--access=public"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"plugins": {
|
|
25
|
-
"@release-it/conventional-changelog": {
|
|
26
|
-
"infile": "CHANGELOG.md",
|
|
27
|
-
"header": "# Changelog",
|
|
28
|
-
"preset": {
|
|
29
|
-
"name": "conventionalcommits",
|
|
30
|
-
"types": [
|
|
31
|
-
{
|
|
32
|
-
"section": "๐ New Features",
|
|
33
|
-
"type": "feat"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"section": "๐ Bug Fixes",
|
|
37
|
-
"type": "fix"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"section": "๐ฆ Miscellaneous tasks",
|
|
41
|
-
"type": "chore"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"section": "๐ Documentation",
|
|
45
|
-
"type": "docs"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"section": "๐ Code improvements",
|
|
49
|
-
"type": "style"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"section": "โป๏ธ Refactors",
|
|
53
|
-
"type": "refactor"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"section": "๐๏ธ Performance upgrades",
|
|
57
|
-
"type": "perf"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"section": "๐งช Tests",
|
|
61
|
-
"type": "test"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
package/Brewfile
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
brew "oven-sh/bun/bun"
|
package/CHANGELOG.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 0.1.1 (2025-04-07)
|
|
4
|
-
|
|
5
|
-
### ๐ Bug Fixes
|
|
6
|
-
|
|
7
|
-
* **ci:** activate NPM publish ([4fe09a2](https://github.com/MainQueueIO/playground/commit/4fe09a2fe547e6aa7f0b907b8daddb0e438ea7ce))
|
|
8
|
-
|
|
9
|
-
## 0.1.0 (2025-04-07)
|
|
10
|
-
|
|
11
|
-
### ๐ New Features
|
|
12
|
-
|
|
13
|
-
* initial commit ([e84b3c2](https://github.com/MainQueueIO/playground/commit/e84b3c22f67d12f77a76089c74aef8e72e73145a))
|