git ssb

16+

cel / patchfoo



Commit 031b70f8c5d4ca4d8e54efea63f13a58509d4d48

%HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256

ssb-client is now included, even if --production is used for install
cel committed on 7/10/2020, 12:45:51 AM
Parent: a4d79eca377e0e9e8bda8b137d30bfdf40c852d1

Files changed

README.mdchanged
doc/install-guide.htmlchanged
README.mdView
@@ -81,25 +81,21 @@
8181
8282 ```sh
8383 git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo
8484 cd patchfoo
85-ssb-npm install \
86- --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 \
87- --branch %FlwIBeDR/liKcEvok7uF9o3e7Qib36aMj1orj3aiFVQ=.sha256
85 +ssb-npm install --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256
8886 npm start
8987 ```
9088
9189 #### as a ssb-server plugin
9290
9391 This is the traditional way to install and run patchfoo.
9492
95-Using `--production` skips installing `ssb-client`, which is not needed for plugin usage. If you want to also be able to run patchfoo as a standalone process, omit the `--production` option in the commands below, and add the extra `--branch` parameter as used above.
96-
9793 ```sh
9894 cd ~/.ssb/node_modules
9995 git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo
10096 cd patchfoo
101-ssb-npm install --production --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256
97 +ssb-npm install --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256
10298 node enable-plugin.js
10399 ```
104100
105101 ### Install via ssb-npm
@@ -121,19 +117,17 @@
121117
122118 Note: if you previously installed a patchfoo binary release, [ssb-]npm will not overwrite it. You must manually remove it (e.g. `rm ~/.local/bin/patchfoo`) before installing via ssb-npm.
123119
124120 ```sh
125-ssb-npm install -g patchfoo \
126- --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 \
127- --branch %FlwIBeDR/liKcEvok7uF9o3e7Qib36aMj1orj3aiFVQ=.sha256
121 +ssb-npm install -g patchfoo --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256
128122 ```
129123
130124 ### as a ssb-server plugin
131125
132126 This does a global ssb-npm install and then symlinks it into place and installs it with ssb-server as a plugin.
133127
134128 ```sh
135-ssb-npm install -g patchfoo --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256
129 +ssb-npm install -g patchfoo --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256
136130 dir=$(dirname $(realpath $(which patchfoo)))
137131 ln -s "$dir" ~/.ssb/node_modules/
138132 node "$dir/enable-plugin.js"
139133 ```
doc/install-guide.htmlView
@@ -41,11 +41,9 @@
4141 <h4>As a standalone program (ssb-client):</h4>
4242 <pre>
4343 git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo
4444 cd patchfoo
45-ssb-npm install \
46- --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 \
47- --branch %FlwIBeDR/liKcEvok7uF9o3e7Qib36aMj1orj3aiFVQ=.sha256
45 +ssb-npm install --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256
4846 npm start
4947 </pre>
5048
5149 <h4>or as a sbot plugin:</h4>
@@ -53,10 +51,9 @@
5351 mkdir ~/.ssb/node_modules
5452 cd ~/.ssb/node_modules
5553 git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo
5654 cd patchfoo
57-ssb-npm install --production \
58- --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256
55 +ssb-npm install --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256
5956 node enable-plugin.js
6057 </pre>
6158 <p>Restart ssb-server or Patchwork.</p>
6259 <p>Visit patchfoo at <a href="http://localhost:8027/">http://localhost:8027/</a>.</p>

Built with git-ssb-web