https://github.com/sophiecollard/jsonpath-demo
Demo of the sophiecollard/jsonpath Elm package
https://github.com/sophiecollard/jsonpath-demo
Last synced: 4 months ago
JSON representation
Demo of the sophiecollard/jsonpath Elm package
- Host: GitHub
- URL: https://github.com/sophiecollard/jsonpath-demo
- Owner: sophiecollard
- License: apache-2.0
- Created: 2024-12-26T14:23:27.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-12-28T20:44:21.000Z (5 months ago)
- Last Synced: 2025-01-02T15:51:00.585Z (5 months ago)
- Language: Elm
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSONPath Demo
Demo of the [`sophiecollard/jsonpath` Elm package](https://github.com/sophiecollard/jsonpath).
## Build
### Development
Build the application with:
```sh
elm make src/Main.elm --output elm.js
```### Production
Build the application with:
```sh
elm make src/Main.elm --output elm.js --optimize
```Minify the resulting `elm.js` file with:
```sh
uglifyjs elm.js -o elm.min.js
```(The above command requires installing uglify via `npm install -g uglify-js`.)
Finally, compress the resulting `elm.min.js` file with:
```sh
gzip -k elm.min.js
```Upload the resulting `elm.min.js.gz` to a DigitalOcean space. Don't forget to enable the CDN feature on the bucket and to configure the object metadata to include the following headers:
* `Content-Type: application/javascript`
* `Content-Encoding: gzip`