Skip to content

Commit f03e9b7

Browse files
authored
chore: init trunk (#67)
1 parent ecb1b02 commit f03e9b7

26 files changed

+396
-351
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+7-13
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,28 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
4+
title: ""
55
labels: bug
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

10-
**Describe the bug**
11-
A clear and concise description of what the bug is.
9+
**Describe the bug** A clear and concise description of what the bug is.
1210

13-
**To Reproduce**
14-
Steps to reproduce the behavior:
11+
**To Reproduce** Steps to reproduce the behavior:
1512

1613
1. Go to '...'
1714
2. Click on '....'
1815
3. Scroll down to '....'
1916
4. See error
2017

21-
**Expected behavior**
22-
A clear and concise description of what you expected to happen.
18+
**Expected behavior** A clear and concise description of what you expected to happen.
2319

24-
**Screenshots**
25-
If applicable, add screenshots to help explain your problem.
20+
**Screenshots** If applicable, add screenshots to help explain your problem.
2621

2722
**Environment**
2823

2924
- OS: [e.g. macOS, Windows, Ubuntu]
3025
- Language [e.g. AssemblyScript, Go]
3126
- Version [e.g. v0.xx]
3227

33-
**Additional context**
34-
Add any other context about the problem here.
28+
**Additional context** Add any other context about the problem here.
+9-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

10-
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
**Is your feature request related to a problem? Please describe.** A clear and concise description
10+
of what the problem is. Ex. I'm always frustrated when [...]
1211

13-
**Describe the solution you'd like**
14-
A clear and concise description of what you want to happen.
12+
**Describe the solution you'd like** A clear and concise description of what you want to happen.
1513

16-
**Describe alternatives you've considered**
17-
A clear and concise description of any alternative solutions or features you've considered.
14+
**Describe alternatives you've considered** A clear and concise description of any alternative
15+
solutions or features you've considered.
1816

19-
**Additional context**
20-
Add any other context or screenshots about the feature request here.
17+
**Additional context** Add any other context or screenshots about the feature request here.

.github/actionlint.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
self-hosted-runner:
2+
# Labels of self-hosted runner in array of string
3+
labels:
4+
- warp-ubuntu-latest-x64-2x

.github/pull_request_template.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ Please explain the changes you made here.
66

77
- [ ] Code compiles correctly and linting passes locally
88
- [ ] Tests added for new functionality, or regression tests for bug fixes added as applicable
9-
- [ ] For new features, etc., PR on [docs repo](https://github.com/hypermodeinc/docs) staged and linked here
9+
- [ ] For new features, etc., PR on [docs repo](https://github.com/hypermodeinc/docs) staged and
10+
linked here
1011

1112
**Instructions**
1213

13-
- The PR title should follow the [Conventional Commits](https://www.conventionalcommits.org/) syntax, leading with `fix:`, `feat:`, `chore:`, `ci:`, etc.
14-
- The description should briefly explain what the PR is about. In the case of a bugfix, describe or link to the bug.
14+
- The PR title should follow the [Conventional Commits](https://www.conventionalcommits.org/)
15+
syntax, leading with `fix:`, `feat:`, `chore:`, `ci:`, etc.
16+
- The description should briefly explain what the PR is about. In the case of a bugfix, describe or
17+
link to the bug.
1518
- In the checklist section, check the boxes in that are applicable, using `[x]` syntax.
16-
- If not applicable, remove the entire line. Only leave the box unchecked if you intend to come back and check the box later.
17-
- Delete the `Instructions` line and everything below it, to indicate you have read and are following these instructions. 🙂
19+
- If not applicable, remove the entire line. Only leave the box unchecked if you intend to come
20+
back and check the box later.
21+
- Delete the `Instructions` line and everything below it, to indicate you have read and are
22+
following these instructions. 🙂
1823

1924
Thank you for your contribution to the Modus project!

.github/workflows/ci-cli-lint.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: ci-cli-lint
2+
23
on:
34
pull_request:
45
types:
56
- opened
67
- synchronize
78
- reopened
89
- ready_for_review
10+
11+
permissions:
12+
contents: read
13+
914
jobs:
1015
lint:
1116
runs-on: ubuntu-latest

.github/workflows/release-cli.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
name: "Release CLI"
1+
name: Release CLI
2+
23
on:
34
push:
45
tags:
5-
- "v*"
6+
- v*
7+
68
permissions:
7-
contents: "write"
9+
contents: write
810
id-token: write
11+
912
jobs:
1013
release:
1114
# note: must use GitHub-hosted runner for publishing to NPM with --provenance flag
1215
runs-on: ubuntu-latest
1316
name: Release
1417
steps:
15-
- name: "Validate version"
18+
- name: Validate version
1619
if: ${{ !startsWith(github.ref_name, 'v') }}
17-
run: 'echo "Hyp CLI version must start with `v` && exit 1'
20+
run: echo "Hyp CLI version must start with `v` && exit 1
1821
- uses: actions/checkout@v4
1922
with:
2023
ref: "${{ github.ref_name }}"
@@ -27,15 +30,17 @@ jobs:
2730
uses: actions/setup-node@v4
2831
with:
2932
node-version: ">=22"
30-
registry-url: "https://registry.npmjs.org"
33+
registry-url: https://registry.npmjs.org
3134
- name: Prepare Release
3235
run: npm version ${{ steps.parse_cli_version.outputs.cli_version }} --no-git-tag-version
3336
- name: Install Dependencies
3437
run: npm ci
3538
- name: Build
3639
run: npm run build
3740
- name: Publish NPM Package
38-
run: npm publish --provenance --access public --tag ${{ steps.parse_cli_version.outputs.npm_tag }}
41+
run:
42+
npm publish --provenance --access public --tag ${{ steps.parse_cli_version.outputs.npm_tag
43+
}}
3944
env:
4045
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4146
- name: Create Release
@@ -56,7 +61,7 @@ jobs:
5661
with:
5762
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
5863
apiToken: ${{ secrets.CLOUDFLARE_TOKEN }}
59-
wranglerVersion: "3.83.0"
64+
wranglerVersion: 3.83.0
6065
preCommands: |
6166
cat install.sh
6267
command: |

.gitignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
oclif.manifest.json
99
tsconfig.tsbuildinfo
1010

11-
12-
1311
yarn.lock
1412
pnpm-lock.yaml
1513

@@ -25,4 +23,4 @@ oclif.manifest.json
2523
yarn.lock
2624
pnpm-lock.yaml
2725
bun.lockb
28-
rt/
26+
rt/

.prettierrc

-3
This file was deleted.

.trunk/.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*out
2+
*logs
3+
*actions
4+
*notifications
5+
*tools
6+
plugins
7+
user_trunk.yaml
8+
user.yaml
9+
tmp

.trunk/configs/.markdownlint.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"line-length": { "line_length": 150, "tables": false },
3+
"no-inline-html": false,
4+
"no-bare-urls": false,
5+
"no-space-in-emphasis": false,
6+
"no-emphasis-as-heading": false,
7+
"first-line-heading": false
8+
}

.trunk/configs/.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": false,
3+
"proseWrap": "always",
4+
"printWidth": 100,
5+
"singleQuote": false
6+
}

.trunk/configs/.shellcheckrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
enable=all
2+
source-path=SCRIPTDIR
3+
disable=SC2154
4+
5+
# If you're having issues with shellcheck following source, disable the errors via:
6+
# disable=SC1090
7+
# disable=SC1091

.trunk/configs/.yamllint.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
rules:
2+
quoted-strings:
3+
required: only-when-needed
4+
extra-allowed: ["{|}"]
5+
key-duplicates: {}
6+
octal-values:
7+
forbid-implicit-octal: true
File renamed without changes.

.trunk/trunk.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This file controls the behavior of Trunk: https://docs.trunk.io/cli
2+
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
3+
version: 0.1
4+
cli:
5+
version: 1.22.8
6+
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
7+
plugins:
8+
sources:
9+
- id: trunk
10+
ref: v1.6.6
11+
uri: https://github.com/trunk-io/plugins
12+
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
13+
runtimes:
14+
enabled:
15+
16+
17+
18+
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
19+
lint:
20+
enabled:
21+
22+
23+
24+
- git-diff-check
25+
26+
27+
28+
29+
30+
31+
32+
33+
actions:
34+
enabled:
35+
- trunk-announce
36+
- trunk-check-pre-push
37+
- trunk-fmt-pre-commit
38+
- trunk-upgrade-available

.vscode/extensions.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
{
2-
"recommendations": [
3-
"dbaeumer.vscode-eslint",
4-
"DavidAnson.vscode-markdownlint",
5-
"esbenp.prettier-vscode",
6-
"streetsidesoftware.code-spell-checker"
7-
]
2+
"recommendations": ["trunk.io"]
83
}

.vscode/launch.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
"name": "Execute Command",
1515
"skipFiles": ["<node_internals>/**"],
1616
"runtimeExecutable": "node",
17-
"runtimeArgs": [
18-
"--loader",
19-
"ts-node/esm",
20-
"--no-warnings=ExperimentalWarning"
21-
],
17+
"runtimeArgs": ["--loader", "ts-node/esm", "--no-warnings=ExperimentalWarning"],
2218
"program": "${workspaceFolder}/bin/dev.js",
2319
"args": ["hello", "world"]
2420
}

.vscode/settings.json

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
11
{
2-
"cSpell.flagWords": ["teh", "hte"],
32
"editor.formatOnSave": true,
4-
"files.insertFinalNewline": true,
5-
"files.trimFinalNewlines": true,
6-
"files.associations": {
7-
"CODEOWNERS": "plaintext",
8-
"LICENSE": "plaintext"
9-
},
10-
"[javascript]": {
11-
"editor.defaultFormatter": "esbenp.prettier-vscode"
12-
},
13-
"[json]": {
14-
"editor.defaultFormatter": "esbenp.prettier-vscode"
15-
},
16-
"[jsonc]": {
17-
"editor.defaultFormatter": "esbenp.prettier-vscode"
18-
},
19-
"[typescript]": {
20-
"editor.defaultFormatter": "esbenp.prettier-vscode"
21-
}
3+
"editor.defaultFormatter": "trunk.io",
4+
"editor.trimAutoWhitespace": true,
5+
"trunk.autoInit": false
226
}

0 commit comments

Comments
 (0)