Skip to content

Commit 5fcb03e

Browse files
committed
- rm travis, move build to GH actions, add info about release on readme, change linguist to jsonnet
1 parent 4ad0b81 commit 5fcb03e

File tree

5 files changed

+28
-14
lines changed

5 files changed

+28
-14
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
*.jsn linguist-language=cpp
1+
*.jsn linguist-language=jsonnet

.github/workflows/tests.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on: [push]
2+
name: tests
3+
jobs:
4+
tests:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: checkout
8+
uses: actions/checkout@v2
9+
with:
10+
submodules: "recursive"
11+
- name: pip
12+
run: |
13+
pip install codecov
14+
pip install coverage
15+
- name: test
16+
run: |
17+
coverage run jsn.py -i example.jsn -o test.json -I import_dir
18+
codecov

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

readme.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jsn can be used directly in python as a dictionary, or it can be converted to js
99

1010
If you are using hand edited json in any projects currently, jsn will easily integrate into your existing workflow and improve efficiency and reliability.
1111

12-
1312
# Features
13+
1414
- Includes / file import.
1515
- Inheritance (hierarchicle and multiple).
1616
- Environment style scoped variables.
@@ -61,13 +61,19 @@ import jsn
6161
json_dict = jsn.loads(open("jsn_file.jsn", "r").read())
6262
```
6363

64+
# Releases
65+
66+
You can install `jsn` as a binary release found along with this repository [here](https://github.com/polymonster/jsn/releases)
67+
6468
## Example .jsn
6569

66-
```c++
70+
```jsonnet
6771
import import.jsn
6872
import test.jsn
6973
{
70-
// sytax highlights quite nicely in most editors with c or c++ syntax
74+
// sytax highlights quite nicely in most editors with c or c++ syntax
75+
// jsonnet highlights nicely in GitHub
76+
// TextMate grammar included for visual studio, vscode or other compatible editors
7177
7278
// allow comments
7379

0 commit comments

Comments
 (0)