Commit Graph

110 Commits

Author SHA1 Message Date
Tim Schaub
48130670ca Create separate target for linting generated files
This allows us to ignore specific error codes (e.g. LINE_TOO_LONG) for externs, exports, types, etc. (any auto-generated files).
2013-06-25 10:43:27 -06:00
Tim Schaub
bb980abe8c And the proper syntax 2013-06-11 16:53:55 -06:00
Tim Schaub
9726be64c6 More useful detail in log messages
One line per missing require.  Include line number of last use.  Include proper syntax for adding requires.
2013-06-11 16:42:39 -06:00
Frédéric Junod
55b3cbaf17 Merge pull request #552 from fredj/deviceorientation
Add ol.DeviceOrientation
2013-06-11 02:09:38 -07:00
Tim Schaub
2964cc922c Test dependencies in a common place 2013-06-10 09:19:02 -06:00
Frederic Junod
448e300a03 Add ol.DeviceOrientation 2013-06-07 16:16:02 +02:00
Tom Payne
e744a1b6e9 Enable all gjslint errors 2013-05-28 16:01:34 +02:00
Éric Lemoine
7a71f107cb Export and externalize Control.setMap 2013-05-10 10:24:11 +02:00
ahocevar
ae5d1cee1e Merge pull request #527 from ahocevar/jsdoc-filtered
Only document the exported API, not every symbol. r=@elemoint
2013-04-10 06:28:25 -07:00
Éric Lemoine
4e4d22b4e2 Target "check" depends on ol-all.js 2013-04-10 09:15:15 +02:00
ahocevar
2fd185c966 Only document the exported API, not every symbol
There is more work to be done, because this filters out more
than desired, and we don't have events documented yet.
2013-04-10 01:44:40 +02:00
ahocevar
97f7eb3db3 Re-adding accidently removed line
This brings back the previous way to copy the data directory,
as suggested by @elemoine.
2013-04-09 13:22:04 +02:00
ahocevar
696fc8c4f7 Copying data folder to hosted examples directory
We need to copy all of the examples directory, because we need
the data subdirectory.
2013-04-09 10:52:21 +02:00
Tom Payne
9d38b21831 Check for whitespace errors in jsdoc files 2013-04-08 13:40:13 +02:00
Tom Payne
7b2c2369ae Check for whitespace errors in lint 2013-04-08 13:25:01 +02:00
Tom Payne
1d5431226e Use objectliterals.jsdoc instead of objectliterals.exports 2013-04-07 18:00:11 +02:00
Tom Payne
1e8a47be13 Speed up requirements checking 2013-04-06 14:28:12 +02:00
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