Commit Graph

137 Commits

Author SHA1 Message Date
Tim Schaub 91d6844ecd Install latest dependencies before building 2015-08-04 00:30:39 -06:00
Andreas Hocevar 80c4809aee Do not provide an AMD environment to ol.ext modules
This fixes issues with ol.source.Vector being unable to use ol.ext.rbush,
but it also means that potential future external modules without node
module loader support will not work. If we ever depend on such a module,
we can replace "var define;" with a minimal AMD define shim.
2015-07-17 18:07:39 +02:00
Tim Schaub 4549d2f7a8 Try multiple ports 2015-07-09 10:49:24 -06:00
Tim Schaub bfaac061c8 Provide a debug loader for the library 2015-07-09 10:16:15 -06:00
Tim Schaub 1b01efc08b Check for exports before define 2015-06-24 21:53:52 -06:00
bill-chadwick 51c8bcae57 Updates for building on Windows using Cygwin.
Tested on Windows 7.
2015-05-14 07:08:16 +01:00
Éric Lemoine 762bb0f055 More specific regex in serve.js
This is to be able to use the dev server (`npm start`) to serve the hosted examples (located in the `build/hosted/<branch>` dir after `make host-examples`).
2015-04-30 09:14:40 +02:00
Éric Lemoine 6a16920378 Use graceful-fs in place of fs
Change generate-requires.js to use the graceful-fs module instead of fs. This is to avoid EMFILE errors on OSX because the maximum number of file descriptors have been reached.
2015-04-29 13:27:25 +02:00
Éric Lemoine e40a51574b Fix test-coverage.js script
Fix test-coverage by only replacing the last occurence of `/src/` when deriving the instrumented file path from the original file path.
2015-04-29 12:00:06 +02:00
Éric Lemoine 4c2c21a5d6 Add Makefile 2015-04-26 20:20:59 +02:00
Tim Schaub c31ae25892 Replace non-breaking space (U+00A0) with regular space (U+0020) 2015-04-22 10:41:10 -06:00
Frederic Junod 288392c8a7 Remove externs/vbarray.js 2015-04-18 17:10:24 -06:00
Tim Schaub 2dd3fbf307 Renaming and docs for clarity 2015-04-17 16:09:43 -06:00
Tim Schaub bc1bde6a86 Index what the examples require 2015-04-17 16:03:55 -06:00
Marc Jansen fedceb9a05 Automatically add links to API-docs in examples
When we create the examples, we know exactly which specific `ol.…` symbols
we `goog.require(…)`. We can create links to the API documentation of these
symbols automatically.
2015-04-17 21:50:50 +02:00
Tim Schaub c5cf709c55 The common.js script makes a "common" object available 2015-04-17 09:49:53 -06:00
Tim Schaub 84f3bea766 Upgrade Metalsmith to get new concurrency option 2015-04-17 06:22:38 -06:00
Tim Schaub 89f5e711e6 Example sources in the examples dir 2015-04-17 06:22:38 -06:00
Tim Schaub 8fd2e9f79f Untangle resources and put built examples in the build dir 2015-04-17 06:22:38 -06:00
Tim Schaub 5dfa9e0a67 Merge pull request #3548 from tschaub/slimer-error
Write the error stack instead of the error itself.
2015-04-13 06:49:28 -06:00
Tim Schaub b9198f1f7b Write the stack instead of an error 2015-04-13 06:32:36 -06:00
Tim Schaub 8ddec98075 Rebuild examples when the sources change 2015-04-12 15:42:55 -06:00
Tim Schaub aaba58ceb0 Generate index.js when building examples 2015-04-12 15:42:48 -06:00
Tim Schaub 0789604e88 Merge pull request #3504 from tschaub/build-examples
Rework build-examples.js task.
2015-04-06 11:27:00 -06:00
Tim Schaub 121a83f19e Explicitly helper use instead of implicitly converting from markdown 2015-04-06 11:13:45 -06:00
Tim Schaub 3b96071096 Metadata names 2015-04-06 11:13:45 -06:00
Tim Schaub 30c04cf8ab Maintain resource list order (principle of least surprise) 2015-04-06 11:13:45 -06:00
Tim Schaub 75fcec15ec Simplify plugin
The augmentExamples just adds metadata to the example markup files.  If we also want to support example markdown files, we can use the metalsmith-markdown plugin before this one.
2015-04-06 11:13:32 -06:00
Tim Schaub 9f1e0f001a Proper lists for example resources 2015-04-06 09:18:32 -06:00
Tim Schaub 6d318dce78 Rework plugin 2015-04-06 09:18:28 -06:00
Tobias Sauerwein c36c67779e Merge pull request #3470 from tsauerwein/rendering-tests
Add rendering tests
2015-04-06 13:49:51 +02:00
Tim Schaub c265676f67 Avoid reading css and js files twice 2015-04-06 04:21:12 -06:00
Tim Schaub cdc4283cbf Use global metadata for ol version 2015-04-06 04:10:17 -06:00
Tim Schaub 8afb5698f1 Allow script to be run from anywhere 2015-04-06 04:09:46 -06:00
tsauerwein 8e0c21eb58 Add test-suite using SlimerJS 2015-04-04 17:30:38 +02:00
tsauerwein 921fd3ed3b Support generic ext. modules with browserify 2015-04-04 09:17:11 +02:00
Andreas Hocevar cd266f35ab Add verbatim template and throw error on invalid front-matter 2015-04-02 20:28:32 +02:00
Andreas Hocevar 78ce9de4af Better error reporting 2015-04-02 19:10:14 +02:00
Andreas Hocevar 4cce0f4936 Move documentation to the right place 2015-04-02 19:10:13 +02:00
Bart van den Eijnden 4ebceab51a Remove extra double quote when writing resources 2015-04-02 19:10:12 +02:00
Andreas Hocevar 6cc806f164 Add documentation for build-examples.js 2015-04-02 19:10:12 +02:00
Andreas Hocevar bc617e8135 Add support for additonal js and css resources 2015-04-02 19:10:12 +02:00
Andreas Hocevar ff1ee78ddd Build and parse examples from examples_src/ 2015-04-02 19:10:09 +02:00
Andreas Hocevar 1d940898b5 Add Task and template for building examples 2015-04-02 19:10:02 +02:00
Marc Jansen 245aec8eba Fix typos in doc-comments. 2015-04-02 09:45:25 +02:00
Marc Jansen 17ea9ecef5 Run the istanbul code-coverage via node script. 2015-04-02 09:16:43 +02:00
Marc Jansen 6a9c8f36f7 Refactor tasks/test.js to be more modular.
This way the main functionality of the script can be reused in the
tasks/test-coverage.js script, which has to run the testsuite as well.
2015-04-02 09:13:17 +02:00
Bart van den Eijnden 7c9795ba35 Integrate istanbul for test coverage 2015-04-02 08:57:53 +02:00
Andreas Hocevar 9462c2148d Listen on localhost to avoid phantomjs browsing 0.0.0.0 2015-03-17 14:39:00 +01:00
Andreas Hocevar 1b640870b1 Add css to dist directory 2015-03-06 11:20:01 +01:00