Skip to content

Commit fe51fe6

Browse files
Minify grammars and themes (#121)
1 parent 6d73510 commit fe51fe6

File tree

301 files changed

+318
-370916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+318
-370916
lines changed

meta/minify-grammars-and-themes.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
GRAMMARS_DIR="$(realpath $(dirname "$0")/../resources/grammars)"
5+
6+
echo "Minifying grammars in $GRAMMARS_DIR"
7+
8+
for grammar in "$GRAMMARS_DIR"/*.json; do
9+
jq -c . "$grammar" > "$grammar.tmp" && mv "$grammar.tmp" "$grammar"
10+
done
11+
12+
THEMES_DIR="$(realpath $(dirname "$0")/../resources/themes)"
13+
14+
echo "Minifying themes in $THEMES_DIR"
15+
16+
for theme in "$THEMES_DIR"/*.json; do
17+
jq -c . "$theme" > "$theme.tmp" && mv "$theme.tmp" "$theme"
18+
done

resources/grammars/abap.json

Lines changed: 1 addition & 386 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)