Files
openlayers/package.json
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

53 lines
1.2 KiB
JSON

{
"name": "openlayers",
"version": "3.1.0-pre.3",
"description": "Build tools and sources for developing OpenLayers based mapping applications",
"keywords": [
"map",
"mapping",
"ol3"
],
"homepage": "http://openlayers.org/",
"scripts": {
"install": "node tasks/install.js",
"postinstall": "closure-util update",
"start": "node tasks/serve.js",
"test": "node tasks/test.js"
},
"main": "dist/ol.js",
"repository": {
"type": "git",
"url": "git://github.com/openlayers/ol3.git"
},
"license": "BSD",
"bugs": {
"url": "https://github.com/openlayers/ol3/issues"
},
"dependencies": {
"async": "0.9.0",
"closure-util": "1.2.0",
"fs-extra": "0.12.0",
"graceful-fs": "3.0.2",
"htmlparser2": "3.7.3",
"jsdoc": "3.3.0-alpha9",
"nomnom": "1.8.0",
"rbush": "1.3.4",
"temp": "0.8.1",
"walk": "2.3.4"
},
"devDependencies": {
"clean-css": "2.2.16",
"expect.js": "0.3.1",
"jquery": "2.1.1",
"jshint": "2.5.6",
"mocha": "1.21.5",
"mocha-phantomjs": "3.5.1",
"phantomjs": "1.9.10",
"proj4": "2.3.3",
"sinon": "1.10.3"
},
"ext": [
"rbush"
]
}