https://github.com/rofrol/elm-code-editor
Elm code editor - embeddable
https://github.com/rofrol/elm-code-editor
Last synced: 11 months ago
JSON representation
Elm code editor - embeddable
- Host: GitHub
- URL: https://github.com/rofrol/elm-code-editor
- Owner: rofrol
- Created: 2017-03-23T11:02:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-17T17:36:19.000Z (about 9 years ago)
- Last Synced: 2025-08-17T20:59:34.872Z (12 months ago)
- Language: Elm
- Homepage:
- Size: 73.2 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elm code editor
## How to run
To set up on your own computer, you will need `git`, `elm-0.18`, `node.js`, `yarnpkg`.
Also web browser with support of [Object.assign](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) for loading `env.js`. There is also [polyfill](https://github.com/sindresorhus/object-assign).
Simply clone the repository and:
```bash
$ git clone https://github.com/rofrol/elm-navigation-example.git
$ cd elm-navigation-example
$ yarn
$ cp .env.example .env
$ ./tools/build-dev.sh
$ ./tools/server.js
```
In another terminal run:
```bash
$ ./tools/browsersync.js
```
Then navigate your browser to [http://localhost:8000](http://localhost:8000).
## Configuration
Based on https://12factor.net/config
```bash
cp .env.example .env
./tools/generate-env.js
```
You will get `dist/js/env.js` which is loaded to elm through flags.
## Linter elm make - don't compile twice
https://gist.github.com/rofrol/98e8a788b3866493f53ad25f38563675