update to use sinan or rebar to build/test
This commit is contained in:
parent
e18322779e
commit
a2929c3108
3 changed files with 25 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@ ebin/
|
||||||
deps/
|
deps/
|
||||||
*.orig
|
*.orig
|
||||||
/.eunit
|
/.eunit
|
||||||
|
_build/
|
||||||
|
|
|
@ -6,7 +6,7 @@ copyright 2011, 2012 alisdair sullivan
|
||||||
|
|
||||||
jsx is released under the terms of the [MIT][MIT] license
|
jsx is released under the terms of the [MIT][MIT] license
|
||||||
|
|
||||||
jsx uses [rebar][rebar] for it's build chain
|
jsx uses [sinan][sinan] or [rebar][rebar] for it's build chain
|
||||||
|
|
||||||
[](http://travis-ci.org/talentdeficit/jsx)
|
[](http://travis-ci.org/talentdeficit/jsx)
|
||||||
|
|
||||||
|
@ -30,18 +30,27 @@ jsx uses [rebar][rebar] for it's build chain
|
||||||
|
|
||||||
## <a name="quickstart">quickstart</a> ##
|
## <a name="quickstart">quickstart</a> ##
|
||||||
|
|
||||||
to build the library
|
to build the library
|
||||||
|
|
||||||
|
```bash
|
||||||
|
tanga:jsx alisdair$ sinan build
|
||||||
|
```
|
||||||
|
or
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
tanga:jsx alisdair$ rebar compile
|
tanga:jsx alisdair$ rebar compile
|
||||||
==> jsx (compile)
|
```
|
||||||
Compiled src/jsx_verify.erl
|
|
||||||
Compiled src/jsx_utils.erl
|
to run tests
|
||||||
Compiled src/jsx_to_term.erl
|
|
||||||
Compiled src/jsx_to_json.erl
|
```bash
|
||||||
Compiled src/jsx.erl
|
tanga:jsx alisdair$ sinan -r tests eunit
|
||||||
Compiled src/jsx_encoder.erl
|
```
|
||||||
Compiled src/jsx_decoder.erl
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```bash
|
||||||
|
tanga:jsx alisdair$ rebar eunit
|
||||||
```
|
```
|
||||||
|
|
||||||
to convert a utf8 binary containing a json string into an erlang term
|
to convert a utf8 binary containing a json string into an erlang term
|
||||||
|
@ -367,5 +376,6 @@ jsx wouldn't be what it is without the contributions of paul davis, lloyd hilaie
|
||||||
[yajl]: http://lloyd.github.com/yajl
|
[yajl]: http://lloyd.github.com/yajl
|
||||||
[MIT]: http://www.opensource.org/licenses/mit-license.html
|
[MIT]: http://www.opensource.org/licenses/mit-license.html
|
||||||
[rebar]: https://github.com/basho/rebar
|
[rebar]: https://github.com/basho/rebar
|
||||||
|
[sinan]: https://github.com/erlware/sinan
|
||||||
[meck]: https://github.com/eproxus/meck
|
[meck]: https://github.com/eproxus/meck
|
||||||
[rfc4627]: http://tools.ietf.org/html/rfc4627[html4-non-html-data]: http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.2
|
[rfc4627]: http://tools.ietf.org/html/rfc4627[html4-non-html-data]: http://www.w3.org/TR/html4/appendix/notes.html#h-B.3.2
|
||||||
|
|
4
sinan.config
Normal file
4
sinan.config
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{project_name, jsx}.
|
||||||
|
{project_vsn, "1.2.1"}.
|
||||||
|
|
||||||
|
{compile_args, [{release, tests}], [{d, 'TEST'}]}.
|
Loading…
Add table
Add a link
Reference in a new issue