Commit Graph

512 Commits

Author SHA1 Message Date
Tim Schaub 84f3bea766 Upgrade Metalsmith to get new concurrency option 2015-04-17 06:22:38 -06:00
Frederic Junod 7909e7b079 Update proj4 version to 2.3.6 2015-04-15 08:58:07 +02:00
Tim Schaub 8ddec98075 Rebuild examples when the sources change 2015-04-12 15:42:55 -06:00
Tobias Sauerwein c36c67779e Merge pull request #3470 from tsauerwein/rendering-tests
Add rendering tests
2015-04-06 13:49:51 +02:00
Tobias Sauerwein 91b12c1d34 Merge pull request #3413 from tsauerwein/ext-browserify
Add support for generic external modules with Browserify
2015-04-06 13:25:45 +02:00
Éric Lemoine 2892e36d29 Update to closure-util 1.4.0 2015-04-04 22:46:07 +02: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 1d940898b5 Add Task and template for building examples 2015-04-02 19:10:02 +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
Bart van den Eijnden 96c670cebf Update package version to 3.4.0 2015-03-27 10:08:50 +01:00
Frederic Junod b6b8ae265c Update rbush to version 1.3.5 2015-03-09 16:03:09 +01:00
Andreas Hocevar 6854833fbd Update package version to 3.3.0 2015-03-03 22:27:25 +01:00
Tim Schaub 0ddae22661 Update package version to 3.2.1 2015-02-13 10:52:02 -07:00
Éric Lemoine 22b27cdb02 Update package version to 3.2.0 2015-02-06 11:12:59 +01:00
Frederic Junod c732538433 Update closure-util version 2015-01-19 10:42:33 +01:00
Tim Schaub 7dd322dd6f Update package version to 3.1.1 2014-12-23 11:29:04 -05:00
Tim Schaub dc7f60801a Update package version to 3.1.0 2014-12-22 14:32:35 -05: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 b7e0acf4fa Update pre-release version 2014-12-19 11:05:29 -07:00
Frederic Junod 7bc2081138 Update closure-util to v1.2.0 2014-12-09 11:55:09 +01:00
Tim Schaub 4785001548 Parse examples and build external modules on install 2014-10-23 15:57:10 -06:00
Tim Schaub 01b64bc655 General purpose task for building external modules 2014-10-23 13:40:31 -06:00
Tim Schaub 26006418a8 Package metadata 2014-10-14 14:32:58 -06:00
Tim Schaub dd665c7e9e New package name and updated dependencies 2014-10-14 14:32:58 -06:00
Tim Schaub edb28d6a47 A tiny bit more deterministic 2014-10-13 23:02:46 -06:00
Frederic Junod 04e7a81b1e Update closure-util to version 1.0.0 2014-10-06 13:42:34 +02:00
Tim Schaub c868e4bbdd Allow package to be published in npm registry
I've contacted the maintainer of the https://www.npmjs.org/package/openlayers package to see if we can take over ownership.  Until then, we can publish packages under the name 'ol'.
2014-09-29 22:27:27 -06:00
Frederic Junod 2eb9a4b72e Upgrade closure-library and closure-util version 2014-09-09 15:03:18 +02:00
Frederic Junod ad8cc3c1e0 Revert "snapshot"
This reverts commit 47fd7d8626.
2014-09-02 16:13:34 +02:00
Frederic Junod 47fd7d8626 snapshot 2014-09-02 16:11:31 +02:00
Tim Schaub bdfceaad06 Run closure-util install script after install
This needs to be run whenever our closure-util.json config changes.  It is harmless to run multiple times.
2014-08-08 11:08:37 -07:00
Tim Schaub 4de2520109 Add packages required to build the library to dependencies
This allows other packages to depend on the ol3 package and get the build tools (devDependencies are not installed when they are transitive dependencies).  The justification here is that the ol3 package becomes useful to other packages when you are able to run the build.js task.  For this task to run all of its dependencies must be available.
2014-07-14 14:19:24 -06:00
Tim Schaub 3e23da7c83 Minify CSS 2014-07-11 21:25:21 -06:00
Andreas Hocevar 90c745006d Update to use the documented Proj4js 2.2.x API 2014-07-09 15:33:12 +02:00
Andreas Hocevar 20e903f8d9 Add proj4 to package.json 2014-07-09 15:32:54 +02:00
Andreas Hocevar 3a0d0c7290 Remove transient jsdoc dependencies
alpha9 has the dependencies fixed again, so no need to keep taffydb and
underscore around.
2014-07-08 21:38:16 +02:00
Tim Schaub 93716fc7f0 Extend expect.js rather than modify the source 2014-07-06 12:40:03 -06:00
Tim Schaub 264a01cfd4 Add jquery as a dev dependency 2014-07-06 11:47:58 -06:00
Tim Schaub 8a3f1a8f34 Add mocha and mocha-phantomjs as dev dependencies 2014-07-06 11:40:08 -06:00
Tim Schaub 70cb7a4a0a Add sinon as a dev dependency 2014-07-06 11:21:01 -06:00
Tim Schaub b452e04e08 Add a task to run the tests once with PhantomJS
The test.js task starts the development server and runs the tests in PhantomJS.  As mentioned in the readme, when running the tests continuously during development, it is more convenient to start the dev server and visit the root of the test directory in your browser.

Later we can bring in Karma to drive PhantomJS and other browsers, but this simple "run once" task is useful for the CI job.
2014-07-05 19:42:30 -04:00
Éric Lemoine 2e541b43d1 Use closure-util 0.19.0 2014-07-03 14:17:01 +02:00
Frederic Junod d3234f1b6a Depends on closure-util version 0.18.0 2014-07-02 09:15:02 +02:00
Tim Schaub a8a035468b Allow cwd to be configured for build
By default, all paths in the build config (e.g. externs) are assumed to be relative to the ol3 repo root.  To make it so relative paths are resolved from a different directory, use the cwd option.

In addition, this change makes it so the `build.js` task can be run from another directory.
2014-06-29 15:02:47 -04:00
Tim Schaub 94f0513aa1 Update closure-util
The closure-util package works on Node 0.8, 0.10, and 0.11 (as of this writing), but it requires an updated version of npm to install on Node 0.8.  For the build to pass on Travis, we update npm before installing other dependencies.  For others who are installing the openlayers package, nothing special is required for Node 0.10 and above.  For users on Node 0.8, the openlayers package will only install with an updated version of npm.  This can be installed with npm itself.

    npm install -g npm # only needed on Node 0.8
2014-06-13 10:48:10 -07:00
Andreas Hocevar 28d4e5a6c9 Manually add jsdoc dependencies
Looks like there is a version mismatch with the taffydb and
underscore dependencies of jsdoc, so we add them here manually.
2014-06-11 12:06:02 +02:00
Tim Schaub be03ec5aa1 Update dependencies
* closure-util@0.12.0 - force inclusion of deps.js files when compiling
 * jshint@2.5.1 - various enhancements and fixes (https://github.com/jshint/jshint/compare/2.4.4...2.5.1)
 * walk@2.3.3 - directory exclusion fix
2014-05-21 12:08:46 -06:00
Tim Schaub 4c8ba1bac6 Remove PhantomJS as a global dependency 2014-05-14 00:03:58 -06:00