@yaakapp/cli 0.2.1 → 0.2.2

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/README.md ADDED
@@ -0,0 +1,39 @@
1
+
2
+ # Yaak CLI (`yaakcli`)
3
+
4
+ This is the CLI for developing [Yaak](https://yaak.app) plugins.
5
+
6
+ ## Installation
7
+
8
+ ```shell
9
+ npm install -g @yaakapp/cli
10
+ ```
11
+
12
+ ## Commands
13
+
14
+ ```
15
+ $ yaakcli --help
16
+
17
+ Generate, build, and debug plugins for Yaak, the most intuitive desktop API client
18
+
19
+ Usage:
20
+ yaakcli [flags]
21
+ yaakcli [command]
22
+
23
+ Available Commands:
24
+ build Transpile code into a runnable plugin bundle
25
+ completion Generate the autocompletion script for the specified shell
26
+ dev Build plugin bundle continuously when the filesystem changes
27
+ generate Generate a "Hello World" Yaak plugin
28
+ help Help about any command
29
+ login Login to Yaak via web browser
30
+ logout Sign out of the Yaak CLI
31
+ publish Publish a Yaak plugin version to the plugin registry
32
+ whoami Print the current logged-in user's info
33
+
34
+ Flags:
35
+ -h, --help help for yaakcli
36
+ --version Source directory to read from
37
+
38
+ Use "yaakcli [command] --help" for more information about a command.
39
+ ```
package/package.json CHANGED
@@ -1,22 +1,23 @@
1
1
  {
2
2
  "name": "@yaakapp/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "main": "./index.js",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/mountain-loop/yaak-cli.git"
8
8
  },
9
9
  "scripts": {
10
- "postinstall": "node ./install.js"
10
+ "postinstall": "node ./install.js",
11
+ "prepublishOnly": "node ./prepublish.js"
11
12
  },
12
13
  "bin": {
13
14
  "yaakcli": "bin/cli.js"
14
15
  },
15
16
  "optionalDependencies": {
16
- "@yaakapp/cli-darwin-x64": "0.2.1",
17
- "@yaakapp/cli-darwin-arm64": "0.2.1",
18
- "@yaakapp/cli-linux-arm64": "0.2.1",
19
- "@yaakapp/cli-linux-x64": "0.2.1",
20
- "@yaakapp/cli-win32-x64": "0.2.1"
17
+ "@yaakapp/cli-darwin-x64": "0.2.2",
18
+ "@yaakapp/cli-darwin-arm64": "0.2.2",
19
+ "@yaakapp/cli-linux-arm64": "0.2.2",
20
+ "@yaakapp/cli-linux-x64": "0.2.2",
21
+ "@yaakapp/cli-win32-x64": "0.2.2"
21
22
  }
22
23
  }
package/prepublish.js ADDED
@@ -0,0 +1,6 @@
1
+ const fs = require("fs");
2
+ const path = require("path");
3
+
4
+ const readme = path.join(__dirname, '..', '..', 'README.md');
5
+
6
+ fs.copyFileSync(readme, path.join(__dirname, "README.md"))