mirror of
https://github.com/aljazceru/gitpear.git
synced 2025-12-17 14:14:22 +01:00
20
Readme.md
20
Readme.md
@@ -11,21 +11,31 @@ To enable clone or fetch or pull using `git <clone|fetch|pull> pear:<public key>
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
It is necessary for corresponding binaries to be in `$PATH`, thus gitpear needs to be installed globally
|
It is necessary for corresponding binaries to be in `$PATH`, thus gitpear needs to be installed globally.
|
||||||
|
NOTE: application home directory will be created in `~/.gitpear` - this may require `sudo`.
|
||||||
|
|
||||||
### From remote
|
### From npm
|
||||||
```sh
|
```sh
|
||||||
npm install -g git@github.com:dzdidi/gitpear.git
|
npm install -g gitpear
|
||||||
```
|
```
|
||||||
|
|
||||||
### From local
|
### From git
|
||||||
```sh
|
```sh
|
||||||
git clone git@github.com:dzdidi/gitpear.git
|
git clone git@github.com:dzdidi/gitpear.git
|
||||||
cd gitpear
|
cd gitpear
|
||||||
|
npm install
|
||||||
npm link
|
npm link
|
||||||
```
|
```
|
||||||
|
|
||||||
NOTE: application home directory will be created in `~/.gitpear` - this may require `sudo`
|
### From git + Nix
|
||||||
|
```sh
|
||||||
|
git clone git@github.com:dzdidi/gitpear.git
|
||||||
|
cd gitpear
|
||||||
|
npm install
|
||||||
|
npm nix
|
||||||
|
```
|
||||||
|
|
||||||
|
See `./result` - for binaries build by nix. To make the available add to path by running `PATH="${PATH:+${PATH}:}${PWD}/result/bin/"`
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
||||||
|
|||||||
4
bin/nix.sh
Executable file
4
bin/nix.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
rm -rf result
|
||||||
|
nix build '.#'
|
||||||
@@ -7,6 +7,7 @@
|
|||||||
"types": "tsc src/*.js --declaration --allowJs --emitDeclarationOnly --outDir types --target es2015",
|
"types": "tsc src/*.js --declaration --allowJs --emitDeclarationOnly --outDir types --target es2015",
|
||||||
"lint": "standard --fix",
|
"lint": "standard --fix",
|
||||||
"preinstall": "./bin/preinstall.sh",
|
"preinstall": "./bin/preinstall.sh",
|
||||||
|
"nix": "./bin/nix.sh",
|
||||||
"pretest": "tar xzf test_home.tar.gz -C . "
|
"pretest": "tar xzf test_home.tar.gz -C . "
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
Reference in New Issue
Block a user