Commit a8813198 authored by Sean Hammond's avatar Sean Hammond Committed by GitHub

Merge pull request #223 from hypothesis/use-katex-from-npm

Replace vendored KaTeX with package from npm
parents cca619e9 7463568e
...@@ -3465,6 +3465,12 @@ ...@@ -3465,6 +3465,12 @@
"resolved": "https://registry.npmjs.org/karma-sinon/-/karma-sinon-1.0.5.tgz", "resolved": "https://registry.npmjs.org/karma-sinon/-/karma-sinon-1.0.5.tgz",
"dev": true "dev": true
}, },
"katex": {
"version": "0.1.1",
"from": "katex@0.1.1",
"resolved": "https://registry.npmjs.org/katex/-/katex-0.1.1.tgz",
"dev": true
},
"kew": { "kew": {
"version": "0.7.0", "version": "0.7.0",
"from": "kew@>=0.7.0 <0.8.0", "from": "kew@>=0.7.0 <0.8.0",
......
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
"karma-mocha-reporter": "^2.0.4", "karma-mocha-reporter": "^2.0.4",
"karma-phantomjs-launcher": "^1.0.1", "karma-phantomjs-launcher": "^1.0.1",
"karma-sinon": "^1.0.5", "karma-sinon": "^1.0.5",
"katex": "^0.1.1",
"lodash.debounce": "^4.0.3", "lodash.debounce": "^4.0.3",
"lodash.get": "^4.3.0", "lodash.get": "^4.3.0",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
...@@ -118,8 +119,7 @@ ...@@ -118,8 +119,7 @@
}, },
"browser": { "browser": {
"annotator": "./src/annotator/vendor/annotator.js", "annotator": "./src/annotator/vendor/annotator.js",
"hammerjs": "./node_modules/hammerjs/hammer.js", "hammerjs": "./node_modules/hammerjs/hammer.js"
"katex": "./src/sidebar/vendor/katex.js"
}, },
"browserify-shim": { "browserify-shim": {
"annotator": { "annotator": {
......
...@@ -38,6 +38,5 @@ module.exports = { ...@@ -38,6 +38,5 @@ module.exports = {
// when including the bundle in another project. // when including the bundle in another project.
noParseModules: [ noParseModules: [
'jquery', 'jquery',
'katex',
], ],
}; };
...@@ -57,7 +57,6 @@ module.exports = function(config) { ...@@ -57,7 +57,6 @@ module.exports = function(config) {
browserify: { browserify: {
debug: true, debug: true,
extensions: ['.coffee'], extensions: ['.coffee'],
noParse: [require.resolve('./sidebar/vendor/katex')],
configure: function (bundle) { configure: function (bundle) {
bundle.plugin('proxyquire-universal'); bundle.plugin('proxyquire-universal');
}, },
...@@ -65,7 +64,7 @@ module.exports = function(config) { ...@@ -65,7 +64,7 @@ module.exports = function(config) {
transform: [ transform: [
'coffeeify', 'coffeeify',
istanbul({ istanbul({
ignore: ['**/node_modules/**', '**/katex.js', '**/*.html', '**/*.svg'], ignore: ['**/node_modules/**', '**/*.html', '**/*.svg'],
// There is an outstanding bug with karma-coverage and istanbul // There is an outstanding bug with karma-coverage and istanbul
// in regards to doing source mapping and transpiling CoffeeScript. // in regards to doing source mapping and transpiling CoffeeScript.
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment