Skip to content
Jsonnet - The data templating language
Branch: master
Clone or download
sbarzowski [Website] Fix emscripten settings, so demo doesn't crash in Firefox
Fixes #633
Also fixes #621, because I wasn't able to run it otherwise.
Latest commit c323f5c Apr 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
benchmarks
case_studies Fix typo in TEMPLATE (#505) Apr 25, 2018
cmd move fmt stuff out of libjsonnet.h Oct 18, 2018
core CMake: add {,SO}VERSION properties for libjsonnet.so Mar 27, 2019
cpp Less dynamic casts (2nd phase, gc heap) (#533) Jun 24, 2018
doc [Website] Fix emscripten settings, so demo doesn't crash in Firefox Apr 19, 2019
editors Remove Vim syntax file since it has been moved to google/vim-jsonnet.… Oct 1, 2015
examples Mixin example (#597) Jan 24, 2019
gc_stress Fix fmt tests Feb 24, 2018
include Bump version to -0.12.1 (pypi only) Dec 19, 2018
java_comparison New website Apr 14, 2018
perf_tests Add another realistic benchmark May 8, 2018
python Support for jpathdir in python bindings (#584) Dec 13, 2018
stdlib Change sort algorithm Mar 7, 2019
test_cmd Bump version to -0.12.1 (pypi only) Dec 19, 2018
test_suite Change sort algorithm Mar 7, 2019
third_party Add LICENSE Dec 19, 2018
tools move fmt stuff out of libjsonnet.h Oct 18, 2018
vs2017 adding a VS2017 solution and adapting JsonnetJsonValue to be compatib… Aug 22, 2017
.clang-format Reformat code (and add make target to do so) Aug 2, 2017
.gitattributes
.gitignore Add js-yaml Apr 16, 2018
.travis.yml std.parseJson - a builtin for parsing json (#553) Dec 13, 2018
CMakeLists.txt CMake: Add USE_SYSTEM_GTEST option (default to OFF). Feb 26, 2019
CMakeLists.txt.in CMake build and test. (#303) Oct 11, 2017
CONTRIBUTING
Dockerfile Changed to use multi-stage docker build Jul 18, 2018
LICENSE Initial commit Aug 6, 2014
MANIFEST.in fix MANIFEST.in Dec 19, 2018
Makefile [Website] Fix emscripten settings, so demo doesn't crash in Firefox Apr 19, 2019
README.md move fmt stuff out of libjsonnet.h Oct 18, 2018
WORKSPACE CMake build and test. (#303) Oct 11, 2017
gmock.BUILD Fix Bazel tests Nov 17, 2016
setup.py std.parseJson - a builtin for parsing json (#553) Dec 13, 2018
tests.sh Some UX improvements to commandline tool + cmdline tests Nov 4, 2017

README.md

Jsonnet - The data templating language

Build Status

For an introduction to Jsonnet and documentation, visit our website.

Visit our discussion forum.

Building Jsonnet

You can use either GCC or Clang to build Jsonnet. Note that on recent versions of macOS, /usr/bin/gcc and /usr/bin/g++ are actually Clang, so there is no difference.

Makefile

To build Jsonnet with GCC, run:

make

To build Jsonnet with Clang, run:

make CC=clang CXX=clang++

To run the output binary, run:

./jsonnet

Bazel

Bazel builds are also supported. Install Bazel if it is not installed already. Then, run the following command to build with GCC:

bazel build -c opt //cmd:jsonnet

To build with Clang, use one of these two options:

env CC=clang CXX=clang++ bazel build -c opt //cmd:jsonnet

# OR

bazel build -c opt --action_env=CC=clang --action_env=CXX=clang++ //cmd:jsonnet

This builds the jsonnet target defined in cmd/BUILD. To launch the output binary, run:

bazel-bin/cmd/jsonnet

Cmake

cmake . -Bbuild
cmake --build build --target run_tests

Contributing

See the contributing page on our website.

Developing Jsonnet

Running tests

TODO

Locally serving the website

TODO

You can’t perform that action at this time.