@hypermode/hyp-cli
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -157,3 +157,3 @@ /* | ||
if (!confirmOverwrite) { | ||
this.log(chalk.yellow("Skipping ci-hyp.yml creation.")); | ||
this.log(chalk.yellow("Skipping ci-modus-build.yml creation.")); | ||
shouldCreateCIFile = false; | ||
@@ -164,3 +164,3 @@ } | ||
await fs.writeFile(ciHypFilePath, ciStr, { flag: "w" }); | ||
this.log(chalk.green("Successfully created ci-hyp.yml! ๐")); | ||
this.log(chalk.green("Modus CI workflow added to your project. Commit this change to initiate a deployment to Hypermode.")); | ||
} | ||
@@ -167,0 +167,0 @@ this.log(chalk.green("Linking complete! ๐")); |
@@ -1,1 +0,1 @@ | ||
export declare const ciStr = "\nname: ci-hypermode-functions\n\non:\n workflow_dispatch:\n pull_request:\n push:\n branches:\n - main\n\nenv:\n MODUS_DIR: \"\"\n\npermissions:\n contents: read\n\njobs:\n build:\n name: build\n runs-on: ubuntu-latest\n steps:\n - name: Checkout code\n uses: actions/checkout@v4\n\n - name: Locate directory with modus.json\n id: set-dir\n run: |\n MODUS_JSON=$(find $(pwd) -name 'modus.json' -print0 | xargs -0 -n1 echo)\n if [ -n \"$MODUS_JSON\" ]; then\n MODUS_DIR=$(dirname \"$MODUS_JSON\")\n echo \"MODUS_DIR=$MODUS_DIR\" >> $GITHUB_ENV\n else\n echo \"modus.json not found\"\n exit 1\n fi\n\n - name: Setup Node\n uses: actions/setup-node@v4\n with:\n node-version: \"22\"\n\n - name: Setup Go\n uses: actions/setup-go@v5\n\n - name: Setup TinyGo\n uses: acifani/setup-tinygo@v2\n with:\n tinygo-version: \"0.34.0\"\n\n - name: Build project\n run: npx -p @hypermode/modus-cli -y modus build\n working-directory: ${{ env.MODUS_DIR }}\n shell: bash\n\n - name: Publish GitHub artifact\n uses: actions/upload-artifact@v4\n with:\n name: build\n path: ${{ env.MODUS_DIR }}/build/*\n"; | ||
export declare const ciStr = "\nname: Build and publish Modus app\n\non:\n workflow_dispatch:\n pull_request:\n push:\n branches:\n - main\n\nenv:\n MODUS_DIR: \"\"\n\npermissions:\n contents: read\n\njobs:\n build:\n name: build\n runs-on: ubuntu-latest\n steps:\n - name: Checkout code\n uses: actions/checkout@v4\n\n - name: Locate directory with modus.json\n id: set-dir\n run: |\n MODUS_JSON=$(find $(pwd) -name 'modus.json' -print0 | xargs -0 -n1 echo)\n if [ -n \"$MODUS_JSON\" ]; then\n MODUS_DIR=$(dirname \"$MODUS_JSON\")\n echo \"MODUS_DIR=$MODUS_DIR\" >> $GITHUB_ENV\n else\n echo \"modus.json not found\"\n exit 1\n fi\n\n - name: Setup Node\n uses: actions/setup-node@v4\n with:\n node-version: \"22\"\n\n - name: Setup Go\n uses: actions/setup-go@v5\n\n - name: Setup TinyGo\n uses: acifani/setup-tinygo@v2\n with:\n tinygo-version: \"0.34.0\"\n\n - name: Build project\n run: npx -p @hypermode/modus-cli -y modus build\n working-directory: ${{ env.MODUS_DIR }}\n shell: bash\n\n - name: Publish GitHub artifact\n uses: actions/upload-artifact@v4\n with:\n name: build\n path: ${{ env.MODUS_DIR }}/build/*\n"; |
@@ -10,3 +10,3 @@ /* | ||
export const ciStr = ` | ||
name: ci-hypermode-functions | ||
name: Build and publish Modus app | ||
@@ -13,0 +13,0 @@ on: |
@@ -76,3 +76,3 @@ /* | ||
default: true, | ||
message: "A ci-hyp.yml file already exists. Would you like to overwrite it?", | ||
message: "A ci-modus-build.yml file already exists. Would you like to overwrite it?", | ||
}); | ||
@@ -103,3 +103,3 @@ } | ||
export function getCiHypFilePath() { | ||
return path.join(getGithubWorkflowDir(), "ci-hyp.yml"); | ||
return path.join(getGithubWorkflowDir(), "ci-modus-build.yml"); | ||
} | ||
@@ -106,0 +106,0 @@ export function getGitConfigFilePath() { |
@@ -100,3 +100,3 @@ { | ||
}, | ||
"version": "0.1.5" | ||
"version": "0.1.6" | ||
} |
{ | ||
"name": "@hypermode/hyp-cli", | ||
"description": "The Hypermode CLI", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"author": "Hypermode Inc.", | ||
@@ -17,2 +17,3 @@ "license": "Apache-2.0", | ||
"@oclif/core": "^4", | ||
"@scarf/scarf": "^1.4.0", | ||
"@sindresorhus/slugify": "^2.2.1", | ||
@@ -19,0 +20,0 @@ "chalk": "^5.3.0", |
@@ -1,72 +0,48 @@ | ||
# hyp | ||
<!-- markdownlint-disable first-line-heading --> | ||
<div align="center"> | ||
[![GitHub License](https://img.shields.io/github/license/hypermodeinc/hyp-cli)](https://github.com/hypermodeinc/hyp-cli?tab=Apache-2.0-1-ov-file#readme) | ||
[![chat](https://img.shields.io/discord/1267579648657850441)](https://discord.hypermode.com) | ||
[![GitHub Repo stars](https://img.shields.io/github/stars/hypermodeinc/hyp-cli)](https://github.com/hypermodeinc/hyp-cli/stargazers) | ||
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/hypermodeinc/hyp-cli)](https://github.com/hypermodeinc/hyp-cli/commits/main/) | ||
A new CLI for the Hypermode service | ||
</div> | ||
[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io) | ||
[![Version](https://img.shields.io/npm/v/hyp.svg)](https://npmjs.org/package/hyp) | ||
[![Downloads/week](https://img.shields.io/npm/dw/hyp.svg)](https://npmjs.org/package/hyp) | ||
<p align="center"> | ||
<a href="https://docs.hypermode.com/quickstart">Get Started</a> ยท | ||
<a href="https://docs.hypermode.com/hyp-cli">Docs</a> ยท | ||
<a href="https://discord.hypermode.com">Discord</a> | ||
<p> | ||
<!-- toc --> | ||
Hyp is the command line interface (CLI) for [Hypermode](https://hypermode.com). | ||
- [hyp](#hyp) | ||
- [Usage](#usage) | ||
- [Commands](#commands) | ||
<!-- tocstop --> | ||
## Quickstart | ||
## Usage | ||
Install the Hyp CLI | ||
<!-- usage --> | ||
```sh-session | ||
$ npm install -g @hypermode/hyp-cli | ||
$ hyp COMMAND | ||
running command... | ||
$ hyp (--version) | ||
@hypermode/hyp-cli/0.0.1-alpha.1 darwin-arm64 node-v22.9.0 | ||
$ hyp --help [COMMAND] | ||
USAGE | ||
$ hyp COMMAND | ||
... | ||
```bash | ||
npm install -g @hypermode/hyp-cli | ||
``` | ||
<!-- usagestop --> | ||
Initialize your Modus app | ||
## Commands | ||
<!-- commands --> | ||
- [`hyp login`](#hyp-login) | ||
- [`hyp logout`](#hyp-logout) | ||
- [`hyp org switch`](#hyp-org-switch) | ||
### `hyp login` | ||
Login to Hypermode Console | ||
```sh | ||
hyp login | ||
```bash | ||
modus new | ||
``` | ||
_See code: [src/commands/login/index.ts](https://github.com/hypermodeinc/hyp-cli/blob/v0.0.1-alpha.1/src/commands/login/index.ts)_ | ||
Run your app locally with fast refresh | ||
### `hyp logout` | ||
Logout of Hypermode Console in the CLI | ||
```sh | ||
hyp logout | ||
```bash | ||
modus dev | ||
``` | ||
_See code: [src/commands/logout/index.ts](https://github.com/hypermodeinc/hyp-cli/blob/v0.0.1-alpha.1/src/commands/logout/index.ts)_ | ||
Link your Modus app repo to Hypermode | ||
### `hyp org switch` | ||
Switch the current Hypermode organization | ||
```sh | ||
hyp org switch | ||
```bash | ||
hyp link | ||
``` | ||
_See code: [src/commands/org/switch.ts](https://github.com/hypermodeinc/hyp-cli/blob/v0.0.1-alpha.1/src/commands/org/switch.ts)_ | ||
## License | ||
<!-- commandsstop --> | ||
Hyp CLI is Copyright 2024 Hypermode Inc., and licensed under the terms of the Apache License, Version 2.0. | ||
See the [LICENSE](./LICENSE) file for a complete copy of the license. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94557
8
49
+ Added@scarf/scarf@^1.4.0
+ Added@scarf/scarf@1.4.0(transitive)