Skip to content

Commit c702c58

Browse files
authored
Merge pull request #98 from tsoding/minify-json
Minify schedule.json in production
2 parents 1da662a + f110c66 commit c702c58

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dist/main.css: dist scss/main.scss
2222
$(SASS) --no-source-map scss/main.scss dist/main.css
2323

2424
dist/schedule.json: dist json/schedule.json
25-
cp json/schedule.json dist/schedule.json
25+
jq -c . json/schedule.json > dist/schedule.json
2626

2727
dist:
2828
mkdir -p dist

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Deployed in https://tsoding.github.io/schedule/
1414
- [coreutils]
1515
- [inotifywatch]
1616
- [python]
17+
- [jq]
1718

1819
## Quick Start
1920

@@ -34,3 +35,4 @@ $ <browser> http://localhost:8080/dist/
3435
[coreutils]: https://www.gnu.org/software/coreutils/coreutils.html
3536
[inotifywatch]: https://github.com/rvoicilas/inotify-tools
3637
[python]: https://www.python.org/
38+
[jq]: https://stedolan.github.io/jq/

default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
with import <nixos> {}; {
22
schedule-devenv = stdenv.mkDerivation {
33
name = "schedule-devenv";
4-
buildInputs = [ nodejs gnumake python inotify-tools ];
4+
buildInputs = [ nodejs gnumake python inotify-tools jq ];
55
};
66
}

0 commit comments

Comments
 (0)