Commit Graph

93 Commits

Author SHA1 Message Date
Tom Payne
12a6d6b43f Read provides from Closure Library 2013-04-06 14:23:56 +02:00
Tom Payne
f8ea6fefd3 Merge pull request #486 from twpayne/build-py-pep8
Make build.py PEP8 compliant again
2013-04-06 05:22:43 -07:00
Tom Payne
8bf14f8f98 Make build.py PEP8 compliant again 2013-04-06 14:08:56 +02:00
Tom Payne
4520d81153 Don't lint examples/loader.js 2013-04-05 20:20:13 +02:00
ahocevar
d61b70f696 Merge pull request #444 from ahocevar/jsdoc
Enabling Markdown and other JSDoc improvements. r=@marcjansen,@Turbo87
2013-04-05 09:41:27 -07:00
Tom Payne
5a2f7f44d4 Merge pull request #448 from kalbermattenm/windows_paths
Windows installation support
2013-04-05 08:57:28 -07:00
Michael Kalbermatten
b9c804d3b3 Windows tests and checkdeps function 2013-04-05 17:25:32 +02:00
ahocevar
6c5377eebe Creating a resources folder for use by examples and API docs 2013-04-04 15:18:15 +02:00
ahocevar
e042c5701a Enabling Markdown and other JSDoc improvements
This change enables GitHub flavored markdown for APIdoc
comments. The code example in map.js shows how to use markdown
for code snippets. doc/index.md is now included again as start
page for the docs. Everything in the doc/tutorials directory
will also be added to the docs as tutorial. As an example, I
moved the ol3.md file with the architecture to the tutorials
directory.

Currently properties and methods annotated with @inheritDoc
or @override won't be documented at all. This is a known issue,
so I added a custom JSDoc plugin with a hack to avoid this.
2013-04-04 11:53:12 +02:00
Tom Payne
fe78b49e28 Add logging messages for downloading proj4js 2013-04-02 16:29:11 +02:00
Tom Payne
15b7bb1cdb Add logging messages to indicate when a download is in progress 2013-04-02 16:28:42 +02:00
Tom Payne
69d42f0f94 Download Plovr into build directory
This means that all build artefacts except for the examples are in
build.
2013-04-02 16:16:45 +02:00
Éric Lemoine
b87fcbb4c4 Move hosted examples loader our of build dir
The build dir is now empty, and therefore unexisting for Git.
2013-03-29 16:17:38 +01:00
Éric Lemoine
b40aafc696 Tests requireall.js generated in build dir 2013-03-29 16:05:56 +01:00
Éric Lemoine
5019f9378c Move Plovr json files in specific dir 2013-03-29 16:00:13 +01:00
Éric Lemoine
15ae6832d4 Remove unneeded test in build.py 2013-03-29 11:34:39 +01:00
Éric Lemoine
4428fe0f5a Examples json and combined.js files in build dir 2013-03-29 11:33:28 +01:00
Tom Payne
c13c7a7208 Only use glsl-unit if it is available 2013-03-27 17:53:25 +01:00
Tom Payne
a32c69c8ff Merge pull request #442 from twpayne/fix-types-js-dependency
Fix build/src/external/src/types.js dependency
2013-03-27 09:35:46 -07:00
Tom Payne
13a2848665 Fix build/src/external/src/types.js dependency
The dependencies for build/src/external/src/types.js were wrong, which
meant that build/src/external/src/types.js would always be rebuilt,
which meant that almost everything else would be rebuilt too.
2013-03-27 17:17:04 +01:00
Tom Payne
8c5b778595 Don't attempt to install PhantomJS on Windows
Instead, assume that phantomjs.exe is already in the user's path. It can
also be overridden on the build.py command line:

  build.py PHANTOMJS=path/to/phantomjs

or with an environment variable:

  set PHANTOMJS=path/to/phantomjs
  build.py
2013-03-27 16:44:44 +01:00
Tom Payne
59f5484cde Rename hostexamples to host-examples 2013-03-25 12:25:37 +01:00
Tom Payne
731fcd3d17 Move shader support code into ol.webgl 2013-03-23 18:29:26 +01:00
Tom Payne
4ec8bf2360 Configure Travis to build shaders with glsl-unit 2013-03-23 18:20:34 +01:00
Tom Payne
c48df12a33 Add infrastructure for glsl-unit 2013-03-23 17:45:44 +01:00
Bruno Binet
f395064721 Pep8ify build.py
Thanks a lot autopep8!
2013-03-21 16:38:48 +01:00
Tim Schaub
462659a9fc Use index.html instead of example-list.html
The original decision to avoid index.html was because it only works with a build step.  Since we've all accepted a build step, the more sensible name is index.html.  Without this change, every hosted example has a link to http://openlayers.github.com/ol3/master/examples/example-list.html which 404s.
2013-03-19 12:17:00 -06:00
Tim Schaub
956c31b59d Lint in build.py 2013-03-18 23:40:40 -06:00
Tim Schaub
d9380d0260 Copy social links script for hosted examples 2013-03-18 23:35:26 -06:00
Bruno Binet
07fb27db2c Merge pull request #370 from bbinet/fix-missing-requires
Fix check for missing goog.require directives
2013-03-18 08:16:43 -07:00
Marc Jansen
b43f25971b Use correct singular/plural of noun. 2013-03-15 09:35:33 +01:00
Bruno Binet
28155a4147 Fix check for missing goog.require directives
Take this example:
```
goog.require('ol.projection.addCommonProjections');

ol.projection.addCommonProjections();
```

Without this patch, the build_check_requires_timestamp target would report
that ``ol.projection`` is missing.
This is because ``ol.projection.addCommonProjections();`` would match both
``ol.projection.addCommonProjections and ``ol.projection`` provide
directives.
2013-03-14 15:22:00 +01:00
Bruno Binet
1eabd7f4e6 Fix check for unused goog.require directives 2013-03-14 11:30:05 +01:00
Tobias Bieniek
89ab68cde7 Replaced jasmine testing framework by mocha, expect.js and sinon
as discussed in #319
2013-03-13 04:32:43 +01:00
Tom Payne
a6395cd2f5 Merge pull request #312 from twpayne/speed-up-precommit
precommit target is too slow
2013-03-11 06:47:16 -07:00
Frederic Junod
6d90a9987d Add (incomplete) bootstrap.js externs 2013-03-11 12:54:13 +01:00
Tom Payne
df6af7cafa Replace precommit with separate check and integration-test targets 2013-03-11 12:21:13 +01:00
Frédéric Junod
7be0203cbe Merge pull request #341 from fredj/jquery-examples
Add jquery 1.7.2 and adapt examples externs
2013-03-11 04:09:42 -07:00
Tom Payne
3934dbbcaf Clean up fixme target
Correct regular expression
Use single quotes consistently
Use format strings
Correct grammar
2013-03-11 10:48:32 +01:00
Frederic Junod
35ef1c82e6 Add jquery 1.7.2 and adapt examples externs
Add jquery and update the externs for the examples (code from @bartvde).
The lib is saved into the repository to be able to run the examples
and the check-examples target offline.
2013-03-11 09:56:02 +01:00
Éric Lemoine
bbc8249e28 Check the examples in raw mode as well 2013-03-07 10:33:40 +01:00
Éric Lemoine
74b8fea679 Extent hostexamples target to copy ol and closure 2013-03-06 20:32:06 +01:00
Tom Payne
388eac3838 Merge pull request #293 from twpayne/fix-293
Build error
2013-03-06 07:56:23 -08:00
Tom Payne
220beb5177 Simple and whitespace builds use internal, not external, source 2013-03-06 16:00:15 +01:00
Frederic Junod
2b238c68c7 Add Font Awesome 3.0.2 2013-03-06 15:20:25 +01:00
Frederic Junod
a8ec0c95a0 Fix hostexamples target
Add missing bootstrap dir and examples.css
2013-03-06 15:19:47 +01:00
Tom Payne
bcea43dcd6 Don't lint Bootstrap JavaScript 2013-03-06 15:19:47 +01:00
Tom Payne
3b29ec610b Merge pull request #280 from twpayne/check-requires-in-comments-fixes
Improve comment parsing when checking for requires
2013-03-05 03:05:52 -08:00
Tom Payne
254a96e036 Improve comment parsing when checking for requires 2013-03-05 11:51:53 +01:00
Éric Lemoine
82c2fc19a1 Check the examples against whitespace build first
This is to produce stack traces that are easier to understand when an example fails to load.
2013-03-05 11:37:30 +01:00