Skip to content

Commit

Permalink
Cleanup (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint authored Nov 8, 2024
1 parent 108b49e commit b40e0d1
Show file tree
Hide file tree
Showing 29 changed files with 3,781 additions and 16,500 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ jobs:
name: Release Install Script
runs-on: warp-ubuntu-latest-x64-2x
steps:
- uses: actions/checkout@v4
with:
ref: "${{ github.ref_name }}"
- name: Push to R2 Bucket
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_TOKEN }}
wranglerVersion: "3.83.0"
preCommands: |
cat install.sh
command: |
r2 object put install/hyp.sh -f install.sh --content-type text/x-sh
- uses: actions/checkout@v4
with:
ref: "${{ github.ref_name }}"
- name: Push to R2 Bucket
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_TOKEN }}
wranglerVersion: "3.83.0"
preCommands: |
cat install.sh
command: |
r2 object put install/hyp.sh -f install.sh --content-type text/x-sh
8 changes: 0 additions & 8 deletions .mocharc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": false
}
1 change: 0 additions & 1 deletion .prettierrc.json

This file was deleted.

8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"DavidAnson.vscode-markdownlint",
"esbenp.prettier-vscode",
"streetsidesoftware.code-spell-checker"
]
}
6 changes: 5 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
"name": "Execute Command",
"skipFiles": ["<node_internals>/**"],
"runtimeExecutable": "node",
"runtimeArgs": ["--loader", "ts-node/esm", "--no-warnings=ExperimentalWarning"],
"runtimeArgs": [
"--loader",
"ts-node/esm",
"--no-warnings=ExperimentalWarning"
],
"program": "${workspaceFolder}/bin/dev.js",
"args": ["hello", "world"]
}
Expand Down
22 changes: 22 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"cSpell.flagWords": ["teh", "hte"],
"editor.formatOnSave": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.associations": {
"CODEOWNERS": "plaintext",
"LICENSE": "plaintext"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ A new CLI for the Hypermode service
[![Downloads/week](https://img.shields.io/npm/dw/hyp.svg)](https://npmjs.org/package/hyp)

<!-- toc -->
* [hyp](#hyp)
* [Usage](#usage)
* [Commands](#commands)

- [hyp](#hyp)
- [Usage](#usage)
- [Commands](#commands)
<!-- tocstop -->

## Usage

<!-- usage -->

```sh-session
$ npm install -g @hypermode/hyp-cli
$ hyp COMMAND
Expand All @@ -26,14 +28,16 @@ USAGE
$ hyp COMMAND
...
```

<!-- usagestop -->

## Commands

<!-- commands -->
* [`hyp login`](#hyp-login)
* [`hyp logout`](#hyp-logout)
* [`hyp org switch`](#hyp-org-switch)

- [`hyp login`](#hyp-login)
- [`hyp logout`](#hyp-logout)
- [`hyp org switch`](#hyp-org-switch)

### `hyp login`

Expand Down Expand Up @@ -64,4 +68,5 @@ hyp org switch
```

_See code: [src/commands/org/switch.ts](https://github.com/hypermodeinc/hyp-cli/blob/v0.0.1-alpha.1/src/commands/org/switch.ts)_

<!-- commandsstop -->
4 changes: 2 additions & 2 deletions bin/dev.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env -S node --loader ts-node/esm --no-warnings --disable-warning=ExperimentalWarning

import {execute} from '@oclif/core'
import { execute } from "@oclif/core";

await execute({development: true, dir: import.meta.url})
await execute({ development: true, dir: import.meta.url });
4 changes: 2 additions & 2 deletions bin/run.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node

import {execute} from '@oclif/core'
import { execute } from "@oclif/core";

await execute({dir: import.meta.url})
await execute({ dir: import.meta.url });
18 changes: 18 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": "0.2",
"language": "en",
"words": [
"acifani",
"commandsstop",
"Hypermode",
"hypermodeinc",
"oclif",
"pjson",
"postpack",
"sindresorhus",
"tinygo",
"tocstop",
"tseslint",
"usagestop"
]
}
3 changes: 1 addition & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import tseslint from "typescript-eslint";

export default tseslint.config({
extends: [eslint.configs.recommended, ...tseslint.configs.recommended],
files: ["**/*.ts"],

ignores: ["**/node_modules/**", "**/dist/**"],
ignores: ["node_modules/**", "dist/**"],
rules: {
"no-undef": "off",
"@typescript-eslint/no-explicit-any": "off",
Expand Down
Loading

0 comments on commit b40e0d1

Please sign in to comment.