Commit Graph

21 Commits

Author SHA1 Message Date
Grant Nestor
7e3e9f31aa Add es6-promise polyfill to webpack config 2016-09-21 11:12:33 -07:00
Grant Nestor
a9ccff38cd Use absolute path for output.path and remove output.publicPath 2016-08-15 12:29:22 -07:00
Grant Nestor
78f8a42658 Define webpack publicPath
Silent source map warnings in Chrome DevTool: `Source map
http://localhost:8888/static/notebook/js/built/main.min.js.map points
to the files missing from the workspace:
[webpack:///./notebook/static/notebook/js/main.js]`
2016-08-12 13:29:45 -07:00
Grant Nestor
961b1c0ba0 Use webpack "inline-source-map"
> We switched to inline-source-map in JupyterLab because it was
misbehaving:
https://github.com/jupyter/jupyterlab/blob/master/jupyterlab/webpack.con
f.js#L20

https://github.com/jupyter/notebook/issues/1668#issuecomment-238640610
2016-08-12 13:28:53 -07:00
Steven Silvester
d223e96fe1 Switch to xterm for the terminal emulator 2016-07-05 09:09:01 -05:00
Steven Silvester
a58cb91219 Allow for a bare 'codemirror' import 2016-06-16 07:34:56 -05:00
Steven Silvester
8966a1c61f Avoid bundling CodeMirror due to relative imports 2016-06-16 06:52:46 -05:00
Steven Silvester
6205ba9a21 Unify handling of CodeMirror
Load codemirror as a script tag

Load codemirror synchronously

More cleanup of codemirror handling

Make the config more succinct

Reinstate mode/meta
2016-06-15 09:10:20 -05:00
Steven Silvester
523756a491 Fix handling of default cm modes 2016-05-25 20:20:40 -05:00
Steven Silvester
01ffff73dd Unify the codemirror imports 2016-05-25 08:31:34 -05:00
Matthias Bussonnier
12b48343cb dynamic sourcemaps 2016-04-21 18:00:17 +02:00
Matthias Bussonnier
ab85f165c7 Create shortcut editor for the notebook
1) finish the step allowing the use of es6

  - this include some tweak to web pack configuration to speed up
    recompile in watch mode (in particular cache sourcemaps).
  - enable eslint (error only), on obvious mistakes.
  - setup babel to compile to es5 as a target.

2) Make the test pass under Casper that does not always have
`Function.prototype.bind` defined, which we cannot patch only in the
tests.

3) Write an actual shortcut editor that list and allow to modify most of
the command mode shortcut.

The logic to persist the shortcuts is a bit tricky as there are default
keyboard shortcuts, and so when you "unbind" them you need to re-unbind
them at next startup. This does not work for a few shortcut for
technical reasons: `<Esc>`, `<Shift>`, as well as `<Ctrl-Shift-P>` and `<F>`
which register asynchronously, so are not detected as "default"
shortcuts.
2016-04-21 18:00:17 +02:00
Matthias Bussonnier
1096410fcf Try es6 and add a few features for shortcut editor. 2016-04-14 16:49:35 +02:00
Thomas Kluyver
c6fe4db8e8 Don't use arrow functions in webpack js config
The => syntax doesn't work on the version of Node currently packaged in
Ubuntu - which is admittedly two years old, but it's what the
development install instructions point people to.
2016-02-24 13:58:07 +00:00
Jonathan Frederic
e64f1f9dc2 Dynamically set base url 2016-02-22 07:30:56 -08:00
Jonathan Frederic
b0fb5df3ad Add source maps, chunks, and remove previous build tool 2016-02-22 07:30:56 -08:00
Jonathan Frederic
18edcd3fb4 Allow old style imports, but deprecate them 2016-02-22 07:30:56 -08:00
Jonathan Frederic
c4c16a76b8 Disallow dynamic loading of jquery and friends
Because it is a very bad idea.  Don't  do it.  Seriously!
2016-02-22 07:30:55 -08:00
Jonathan Frederic
d340a794fc Compile services/contents 2016-02-22 07:30:55 -08:00
Jonathan Frederic
e409dd1a2c Install webpack and configure scripts for execution of webpack 2016-02-22 07:30:55 -08:00
Jonathan Frederic
e32adbe912 Add base webpack config 2016-02-22 07:30:55 -08:00