Update readme, makefile
This commit is contained in:
parent
ca61374654
commit
ebc6f8e9a6
6
Makefile
6
Makefile
@ -1,7 +1,9 @@
|
|||||||
.PHONY: jsonedit.phar
|
.PHONY: jsonedit.phar
|
||||||
jsonedit.phar:
|
jsonedit.phar: composer
|
||||||
echo "<?php return [ 'version' => \"v$(shell git describe --tags)\", 'builddate' => \"$(shell LC_ALL=C date)\" ];" > src/build.php \
|
echo "<?php return [ 'version' => \"v$(shell git describe --tags)\", 'builddate' => \"$(shell LC_ALL=C date)\" ];" > src/build.php \
|
||||||
&& box compile \
|
&& box compile \
|
||||||
&& rm src/build.php \
|
&& rm src/build.php \
|
||||||
&& mv bin/jsonedit.phar .
|
&& mv bin/jsonedit.phar .
|
||||||
|
.PHONY: composer
|
||||||
|
composer:
|
||||||
|
test -d vendor || composer install
|
||||||
|
15
README.md
15
README.md
@ -13,9 +13,8 @@ This is an editor for JSON files, that also supports YAML.
|
|||||||
- Makes use of Unicode glyphs in 16 magnificent colors!
|
- Makes use of Unicode glyphs in 16 magnificent colors!
|
||||||
- Handles array, objects and values
|
- Handles array, objects and values
|
||||||
- Folding of array and object keys
|
- Folding of array and object keys
|
||||||
- Core edit operations: insert, edit, delete
|
- Core edit operations: insert, edit, delete, duplicate
|
||||||
- A minimum of dependencies
|
- A minimum of dependencies
|
||||||
- ~300KB executable PHAR
|
|
||||||
|
|
||||||
![screenshot](./doc/screens/main.png)
|
![screenshot](./doc/screens/main.png)
|
||||||
|
|
||||||
@ -24,17 +23,17 @@ This is an editor for JSON files, that also supports YAML.
|
|||||||
The recommended way to install and run JSONEdit is by grabbing the PHAR from
|
The recommended way to install and run JSONEdit is by grabbing the PHAR from
|
||||||
the latest release:
|
the latest release:
|
||||||
|
|
||||||
- [https://dev.noccylabs.info/noccy/jsonedit/releases](https://dev.noccylabs.info/noccy/jsonedit/releases)
|
- [https://dev.noccylabs.info/jsonedit/jsonedit/releases](https://dev.noccylabs.info/jsonedit/jsonedit/releases)
|
||||||
|
|
||||||
You can also clone the respository and use [Box](https://box-project.github.io/box/)
|
You can also clone the respository and use [Box](https://box-project.github.io/box/)
|
||||||
to build the .phar yourself:
|
to build the .phar yourself. The recommended way of doing this is with the included
|
||||||
|
`Makefile` and GNU Make:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ git clone https://dev.noccylabs.info/noccy/jsonedit
|
$ git clone https://dev.noccylabs.info/jsonedit/jsonedit
|
||||||
$ cd jsonedit
|
$ cd jsonedit
|
||||||
$ composer install
|
$ make
|
||||||
$ box compile
|
$ mv jsonedit.phar ~/bin/jsonedit
|
||||||
$ mv bin/jsonedit.phar ~/bin/jsonedit
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Using
|
## Using
|
||||||
|
Loading…
Reference in New Issue
Block a user