Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Jan 19, 2021
1 parent 9285e4d commit 22386f4
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 27 deletions.
28 changes: 6 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@

### Installation

If you have installed nodejs, you can install it via npm

```bash
npm install @axetroy/go-cli-boilerplate -g
```

If you are using Linux/macOS. you can install it with the following command:

```shell
Expand All @@ -31,28 +37,6 @@ Or

Download the executable file for your platform at [release page](https://github.com/axetroy/go-cli-boilerplate/releases)

Then set the environment variable.

eg, the executable file is in the `~/bin` directory.

```bash
# ~/.bash_profile
export PATH="$PATH:$HOME/bin"
```

then, try it out.

```bash
go-cli-boilerplate --help
```

Finally, to use Deno correctly, you also need to set environment variables

```bash
# ~/.bash_profile
export PATH="$PATH:$HOME/.deno/bin"
```

### Build from source code

Make sure you have `[email protected]` installed.
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions npm/bin/go-cli-boilerplate
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

throw new Error("go-cli-boilerplate command line did not install correctly. reinstall without '--ignore-scripts' flag");
3 changes: 0 additions & 3 deletions npm/bin/whatchanged

This file was deleted.

Empty file added npm/download/.gitkeep
Empty file.
5 changes: 3 additions & 2 deletions npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
"README.md",
"CHANGELOG.md",
"LICENSE",
"bin/boilerplate",
"scripts/postinstall.js"
"bin/go-cli-boilerplate",
"scripts/postinstall.js",
"download/.gitkeep"
],
"license": "MIT",
"name": "@axetroy/go-cli-boilerplate",
Expand Down

0 comments on commit 22386f4

Please sign in to comment.