Webpack dev server (#902)

* Initial webpack config. Moving to ES6 modules. Some module cleanup.

* WIP

* WIP

* Removing commented out code.

* Removing old deps.

* Removing the build script (used for testing).

* Working tests.

* Switching to node api over cli.

* Updating per comments. Still need to fix server.js to properly run the selenium tests.

* Cleaning up the config.

* More cleanup.

* Bringing back server.js for selenium tests.

* Bringing back old dependencies.

* Adding back eslint rules for webpack config. Final cleanup for webpack config.

* Pointing to correct pre-existing module versions. Adding some extra logic to server.js to ensure it gets transpiled properly.

* Getting make build to work again. Updating package.json with some shortcut scripts.

* Resolving conflict.

* Reverting back to commonjs modules.

* Removing extra spaces in babelrc
This commit is contained in:
Ryan Randall
2017-09-26 14:16:35 -04:00
committed by Kevin Barabash
parent eaef0127c5
commit fbffdc5fc7
32 changed files with 154 additions and 59 deletions

View File

@@ -1,7 +1,7 @@
/* eslint no-console:0 */
/* global katex */
const splitAtDelimiters = require("./splitAtDelimiters");
import splitAtDelimiters from "./splitAtDelimiters";
const splitWithDelimiters = function(text, delimiters) {
let data = [{type: "text", data: text}];
@@ -99,4 +99,5 @@ const renderMathInElement = function(elem, options) {
renderElem(elem, optionsCopy);
};
module.exports = renderMathInElement;
export default renderMathInElement;

View File

@@ -99,4 +99,4 @@ const splitAtDelimiters = function(startData, leftDelim, rightDelim, display) {
return finalData;
};
module.exports = splitAtDelimiters;
export default splitAtDelimiters;

View File

@@ -1,4 +1,4 @@
const katexReplaceWithTex = require('./katex2tex');
import katexReplaceWithTex from './katex2tex';
// Global copy handler to modify behavior on .katex elements.
document.addEventListener('copy', function(event) {

View File

@@ -49,4 +49,4 @@ export const katexReplaceWithTex = function(fragment,
return fragment;
};
module.exports = katexReplaceWithTex;
export default katexReplaceWithTex;