Merge pull request #1972 from hypothesis/browserify
Browserify ALL THE THINGS
Showing
... | ... | @@ -4,14 +4,17 @@ |
"version": "0.0.0", | ||
"description": "The Internet, peer reviewed.", | ||
"dependencies": { | ||
"coffee-script": "1.7.1", | ||
"browserify": "^9.0.3", | ||
"browserify-shim": "^3.8.3", | ||
"clean-css": "2.2.2", | ||
"coffee-script": "1.7.1", | ||
"coffeeify": "^1.0.0", | ||
"uglify-js": "2.4.14" | ||
}, | ||
"devDependencies": { | ||
"karma": "^0.12.17", | ||
"karma-browserify": "^3.0.3", | ||
"karma-cli": "0.0.4", | ||
"karma-coffee-preprocessor": "^0.2.1", | ||
"karma-mocha": "^0.1.4", | ||
"karma-ng-html2js-preprocessor": "^0.1.0", | ||
"karma-phantomjs-launcher": "^0.1.4", | ||
... | ... | @@ -32,5 +35,29 @@ |
"bugs": { | ||
"url": "https://github.com/hypothesis/h/issues" | ||
}, | ||
"homepage": "https://github.com/hypothesis/h" | ||
"homepage": "https://github.com/hypothesis/h", | ||
"browserify": { | ||
"transform": ["coffeeify", "browserify-shim"] | ||
}, | ||
"browser": { | ||
"jquery": "./h/static/scripts/vendor/jquery.js", | ||
"annotator": "./h/static/scripts/vendor/annotator.js", | ||
"angular": "./h/static/scripts/vendor/angular.js", | ||
"angular-mock": "./h/static/scripts/vendor/angular-mocks.js" | ||
}, | ||
"browserify-shim": { | ||
"jquery": "global:jQuery", | ||
"annotator": "global:Annotator", | ||
"angular": "global:angular", | ||
"angular-mock": "global:angular.mock", | ||
"./h/static/scripts/vendor/jschannel.js": "Channel", | ||
"./h/static/scripts/vendor/page_text_mapper_core.js": "PageTextMapperCore", | ||
"./h/static/scripts/vendor/dom_text_matcher.js": { | ||
"exports": "DomTextMatcher", | ||
"depends": [ | ||
"./h/static/scripts/vendor/diff_match_patch_uncompressed.js", | ||
"./h/static/scripts/vendor/text_match_engines.js" | ||
] | ||
} | ||
} | ||
} |
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment