Commit Graph

81 Commits

Author SHA1 Message Date
Tim Schaub
7c6755d3ec Scripts for generating the package and legacy build 2018-07-17 14:48:17 -06:00
ahocevar
afec93ae62 Autogenerate src/ol/package.json from package.json 2018-07-08 22:51:51 +02:00
ahocevar
cd35c6731f Ignore node_modules everywhere
This allows users to use npm link directly from src/ol, without risiking
to commit the src/ol/node_modules directory.
2018-06-22 13:43:50 +02:00
Andreas Hocevar
e6036439f6 Generate index.js instead of ol.js 2018-02-08 19:51:27 +01:00
Andreas Hocevar
64258a1ac4 Add generate-ol task to create a full build
Creating the full build will also serve as type checker.
2018-02-08 19:51:27 +01:00
Marc Jansen
f36c557aca Ignore coverage output directory 2017-08-19 18:06:42 +02:00
Tim Schaub
02b2cdbd27 Remove unused tasks and update instructions 2017-08-16 13:45:13 -04:00
Frederic Junod
6530fbe6c3 Remove '*.pyc' from .{git,npm}ignore
Not needed since the removal of pake (see #95)
2015-12-02 14:07:37 +01:00
Tim Schaub
e2eba46d32 All build artifacts should be generated in the build directory 2015-04-20 07:02:38 -06:00
Frederic Junod
b4d64523e9 Add /examples/index.js to .gitignore
The file is created by tasks/build-examples.js
2015-04-20 14:13:50 +02:00
Tim Schaub
8fd2e9f79f Untangle resources and put built examples in the build dir 2015-04-17 06:22:38 -06:00
Andreas Hocevar
ff1ee78ddd Build and parse examples from examples_src/ 2015-04-02 19:10:09 +02:00
Marc Jansen
17ea9ecef5 Run the istanbul code-coverage via node script. 2015-04-02 09:16:43 +02:00
Bart van den Eijnden
7c9795ba35 Integrate istanbul for test coverage 2015-04-02 08:57:53 +02:00
Tim Schaub
3582445755 Add task for publishing to npm
This task publishes an existing tag to the npm registry.  To publish a new release, create a commit that updates the version number in package.json (e.g. to "3.1.0").  Then create a tag, push to GitHub, and run the publish task.  Assuming "openlayers" is the remote for the canonical repo, this would look like the following:

    git tag -a v3.1.0 -m "3.1.0"
    git push --tags openlayers
    ./tasks/publish.sh 3.1.0

The task creates a build for each of the `PROFILES` in `publish.sh` (these correspond to `.json` files in the `config` directory).  Builds are generated in the `dist` directory.  Our `package.json` specifies `dist/ol.js` as the "main" build.  So when people use a module loader to `require('openlayers')`, they get the full build.  It is also possible to load a debug build (e.g. `require('openlayers/dist/ol-debug')`), and we can publish additional builds by adding `config` files and updating `PROFILES` in `publish.sh`.

The `.npmignore` file determines what is *not* included in the package (note that `node_modules` are always ignored).  So if additional items are added to `.gitignore` that should not be included in the npm package, they need to go in `.npmignore` as well (ideally, we don't need to generate anything else outside of the `build` directory that doesn't belong in the package).
2014-12-19 17:45:48 -07:00
Tim Schaub
75fffd1f47 Making use of the closure-util package
This provides some initial development utilities for people using Node.

Instructions for installing:

    npm install

After pulling down the dependencies, you can start a developement server that provides the libraries (ol and Closure Library) in debug mode (not minified/compiled).  Run the dev server with the following:

    npm start

Currently, the example index page needs to be built with `build.py`.  After building that, you should be able to browse all static files, view the examples and run the tests.
2013-09-14 18:10:12 -06: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
7f85dfbf1c Git can now ignore the entire build dir 2013-03-29 16:32:43 +01:00
Éric Lemoine
35fc2882b4 .gitignore clean-up 2013-03-29 16:09:38 +01:00
Éric Lemoine
b40aafc696 Tests requireall.js generated in build dir 2013-03-29 16:05:56 +01:00
Éric Lemoine
4428fe0f5a Examples json and combined.js files in build dir 2013-03-29 11:33:28 +01:00
Tom Payne
c22b971b45 Sort .gitignore 2013-03-25 12:33:27 +01:00
Tom Payne
e196a9e68e Clone jsdoc into build/jsdoc 2013-03-25 12:28:04 +01:00
Tom Payne
4ec8bf2360 Configure Travis to build shaders with glsl-unit 2013-03-23 18:20:34 +01:00
Marc Jansen
3a863ddf3e Add a screenshot script for our examples.
This script is supposed to be executed via phantomjs. It will generate
screenshots of the html files in the directory specified by a commandline
option when these files are served through a webserver which can also be
specified. The screenshots will be saved in the passed directory.

Example usage:

    user@host:~/ol3/bin $ phantomjs example-screenshot.js \
                          http://localhost:8000/ol3/examples/ \
                          ../examples/

The above command will generate `*html.png` files in `tools/` for all html files
that are served through `http://localhost:8000/ol3/examples/`.

So if there is a file `my-humpty-example.html` inside of the relative folder
`../examples/` which is being served through the webserver so that
`http://localhost:8000/ol3/examples/my-humpty-example.html` is a valid and
reachable URL, this script will generate a screenshot and store it as
`../examples/my-humpty-example.html.png`.

The query string `?mode=raw` will be appended to the generated URL.

Known limitations:

As phantomjs doesn't support WebGL (see e.g.
https://github.com/ariya/phantomjs/wiki/Supported-Web-Standards and
http://code.google.com/p/phantomjs/issues/detail?id=273) This won't render
OpenLayers maps rendered through the webglrenderer.

In parts based upon this gist: https://gist.github.com/crazy4groovy/3160121
2013-03-13 15:50:55 +01:00
Tom Payne
4eebe5aaf2 Merge spec and src lint targets 2013-03-04 20:51:27 +01:00
Bruno Binet
88335da8de Ignore ol-simple.js and ol-whitespace.js generated files 2013-03-03 17:55:53 +01:00
Tom Payne
be48a30d6a Add target to download and install Proj4js 2013-02-18 14:44:14 +01:00
Tom Payne
9a3e090c2b Run tests on Windows 2013-02-12 16:07:34 +01:00
Éric Lemoine
f735a597fe Merge pull request #171 from elemoine/testdeps2
Use namespaces for tests
2013-01-31 02:02:33 -08:00
Éric Lemoine
b6ed5f2164 Use namespaces for tests
With this commit test files provide namespaces (using goog.provide). This fixes the issue reported by @bartvde where goog objects cannot be used in Jasmine "describe" functions. It also frees us from having to add script tags for the test files in test/ol.html.
2013-01-31 10:18:21 +01:00
Tom Payne
7d5cc39555 Detect unused goog.requires 2013-01-30 22:48:03 +01:00
Tom Payne
20e0557a4d No need to ignore /bin/*.pyc, refs #95 2013-01-07 15:41:26 +01:00
Marc Jansen
1670972a9e Ignore all *.pyc files. 2013-01-07 09:08:14 +01:00
Marc Jansen
dd566ba595 Ignore pake.pyc file. 2013-01-06 16:08:21 +01:00
Éric Lemoine
3e3b8d6f8b Use OpenLayers 2 examples index 2012-10-19 21:56:59 +02:00
Tom Payne
129578a515 Build examples index 2012-10-17 11:22:11 +02:00
Tom Payne
7cff23cf63 Remove stale .gitignore entry 2012-09-29 13:20:22 +02:00
Tom Payne
83a3306bb7 Only rebuild doc when source changes 2012-09-29 12:33:01 +02:00
Tom Payne
68209bc5ac Remove stray ignore 2012-09-29 11:51:53 +02:00
Tom Payne
b6c06f4760 Generate externs and typedefs 2012-09-28 21:55:48 +02:00
Tom Payne
da5ad0bf20 Minify CSS with Closure Stylesheets
See https://code.google.com/p/closure-stylesheets/
2012-09-28 14:16:25 +02:00
Éric Lemoine
896f5203db Change examples directory names to "examples" 2012-09-28 14:01:51 +02:00
Éric Lemoine
e3cef24f5f Change examples/demos structure 2012-09-28 13:33:05 +02:00
Tom Payne
74f87995c8 Build doc in build/gh-pages directory 2012-09-28 12:25:06 +02:00
Tom Payne
5ddbf17c8d Run lint on specs 2012-09-27 12:42:13 +02:00
Tom Payne
8ffdaad5f5 Only re-run lint when source files have changed 2012-09-27 09:36:55 +02:00
Tom Payne
546f1f4b9f Add initial exports and externs 2012-09-26 18:28:06 +02:00
Tom Payne
0eeae68ee9 Don't build demos with simple optimizations 2012-09-26 11:19:14 +02:00
ahocevar
86336b42e6 Ignoring index.html instead of debug.html 2012-09-25 19:47:26 +02:00