turf-playground is a project designed to let you play around and learn turf in the browser without worrying about setting up the boilerplate code to get started.
turf-playground is built as a simple AngularJS app. It uses Browserify for building the compiled JS actually used by the site. Also:
- Dox for parsing comments in the turf code to generate the example code library
- Terrarium for running editor code and instrumentation
- ACE editor - the in-browser code editor
Run the server using npm start
turf-playground uses Browserify, so after changes are made to the app/
code, you must run npm run build
. This also reparses the JSDocs to build the turf examples library. The build script should always be run before the site is pushed.
If a library can't be used via require
(due to the library's structure), the best option is to stick it in public/vendor and explicitly load the script in index.html