carto/package.json
javi 2e00705b64 adds support for browserify
this pr also changes some code to make compatible with the browser. It exposes the global variable "carto"
One of the problems is mapnik reference, the module is not read to work with browserify since it loads modules dynamically. It does not make sense to make it compatible since mapnik-reference is not going to be used so people must to set the reference needed before parse/render:

carto.tree.Reference.setData(reference)
2014-12-04 16:29:20 +01:00

58 lines
1.2 KiB
JSON

{
"name": "carto",
"version": "0.14.0",
"description": "Mapnik Stylesheet Compiler",
"url": "https://github.com/mapbox/carto",
"repository": {
"type": "git",
"url": "http://github.com/mapbox/carto.git"
},
"author": {
"name": "Mapbox",
"url": "http://mapbox.com/",
"email": "info@mapbox.com"
},
"keywords": [
"mapnik",
"maps",
"css",
"stylesheets"
],
"contributors": [
"Tom MacWright <macwright@gmail.com>",
"Konstantin Käfer",
"Alexis Sellier <self@cloudhead.net>"
],
"licenses": [
{
"type": "Apache"
}
],
"bin": {
"carto": "./bin/carto"
},
"man": "./man/carto.1",
"main": "./lib/carto/index",
"engines": {
"node": ">=0.4.x"
},
"dependencies": {
"underscore": "~1.6.0",
"mapnik-reference": "~6.0.2",
"optimist": "~0.6.0"
},
"devDependencies": {
"mocha": "1.12.x",
"jshint": "0.2.x",
"sax": "0.1.x",
"istanbul": "~0.2.14",
"coveralls": "~2.10.1",
"browserify": "~7.0.0"
},
"scripts": {
"pretest": "npm install",
"test": "mocha -R spec",
"coverage": "istanbul cover ./node_modules/.bin/_mocha && coveralls < ./coverage/lcov.info"
}
}