Browse Source

Normalize handling of es6-promise

Steven Silvester 8 years ago
parent
commit
2bf4e056ce

+ 1 - 1
examples/app/index.js

@@ -4,7 +4,7 @@
 var JupyterLab = require('@jupyterlab/application').JupyterLab;
 
 // ES6 Promise polyfill
-require('es6-promise').polyfill();
+require('es6-promise/auto');
 
 require('font-awesome/css/font-awesome.min.css');
 require('@jupyterlab/default-theme/style/index.css');

+ 1 - 1
examples/app/package.json

@@ -33,7 +33,7 @@
     "@jupyterlab/shortcuts-extension": "^0.1.1",
     "@jupyterlab/terminal-extension": "^0.1.1",
     "@jupyterlab/tooltip-extension": "^0.1.1",
-    "es6-promise": "^3.1.2",
+    "es6-promise": "^4.1.0",
     "font-awesome": "^4.6.3"
   },
   "devDependencies": {

+ 2 - 1
examples/console/package.json

@@ -12,7 +12,8 @@
     "@jupyterlab/rendermime": "^0.1.1",
     "@jupyterlab/services": "^0.40.1",
     "@phosphor/commands": "^0.1.5",
-    "@phosphor/widgets": "^0.3.0"
+    "@phosphor/widgets": "^0.3.0",
+    "es6-promise": "^4.1.0"
   },
   "devDependencies": {
     "css-loader": "^0.23.1",

+ 2 - 0
examples/console/src/index.ts

@@ -1,6 +1,8 @@
 // Copyright (c) Jupyter Development Team.
 // Distributed under the terms of the Modified BSD License.
 
+import 'es6-promise/auto';  // polyfill Promise on IE
+
 import {
   CommandRegistry
 } from '@phosphor/commands';

+ 1 - 0
examples/filebrowser/package.json

@@ -16,6 +16,7 @@
     "@jupyterlab/services": "^0.40.1",
     "@phosphor/commands": "^0.1.5",
     "@phosphor/widgets": "^0.3.0",
+    "es6-promise": "^4.1.0",
     "webpack": "^2.2.1"
   },
   "devDependencies": {

+ 2 - 0
examples/filebrowser/src/index.ts

@@ -1,6 +1,8 @@
 // Copyright (c) Jupyter Development Team.
 // Distributed under the terms of the Modified BSD License.
 
+import 'es6-promise/auto';  // polyfill Promise on IE
+
 import {
   CommandRegistry
 } from '@phosphor/commands';

+ 3 - 2
examples/notebook/package.json

@@ -8,14 +8,15 @@
   "dependencies": {
     "@jupyterlab/apputils": "^0.1.1",
     "@jupyterlab/codemirror": "^0.1.1",
+    "@jupyterlab/default-theme": "^0.1.1",
     "@jupyterlab/docmanager": "^0.1.1",
     "@jupyterlab/docregistry": "^0.1.1",
     "@jupyterlab/notebook": "^0.1.1",
     "@jupyterlab/rendermime": "^0.1.1",
-    "@jupyterlab/default-theme": "^0.1.1",
     "@jupyterlab/services": "^0.40.1",
     "@phosphor/commands": "^0.1.5",
-    "@phosphor/widgets": "^0.3.0"
+    "@phosphor/widgets": "^0.3.0",
+    "es6-promise": "^4.1.0"
   },
   "devDependencies": {
     "css-loader": "^0.23.1",

+ 2 - 0
examples/notebook/src/index.ts

@@ -1,6 +1,8 @@
 // Copyright (c) Jupyter Development Team.
 // Distributed under the terms of the Modified BSD License.
 
+import 'es6-promise/auto';  // polyfill Promise on IE
+
 import {
   CommandRegistry
 } from '@phosphor/commands';

+ 1 - 0
examples/terminal/package.json

@@ -10,6 +10,7 @@
     "@jupyterlab/services": "^0.40.1",
     "@jupyterlab/terminal": "^0.1.1",
     "@phosphor/widgets": "^0.3.0",
+    "es6-promise": "^4.1.0",
     "webpack": "^2.2.1"
   },
   "devDependencies": {

+ 2 - 0
examples/terminal/src/index.ts

@@ -1,6 +1,8 @@
 // Copyright (c) Jupyter Development Team.
 // Distributed under the terms of the Modified BSD License.
 
+import 'es6-promise/auto';  // polyfill Promise on IE
+
 import {
   DockPanel, Widget
 } from '@phosphor/widgets';

+ 1 - 1
jupyterlab/package.json

@@ -35,7 +35,7 @@
     "@jupyterlab/shortcuts-extension": "^0.1.1",
     "@jupyterlab/terminal-extension": "^0.1.1",
     "@jupyterlab/tooltip-extension": "^0.1.1",
-    "es6-promise": "^4.0.5",
+    "es6-promise": "^4.1.0",
     "font-awesome": "^4.6.3"
   },
   "devDependencies": {

+ 1 - 1
package.json

@@ -21,8 +21,8 @@
     "test:chrome": "lerna run test:chrome --stream --scope \"@jupyterlab/test-*\"",
     "test:firefox": "lerna run test:firefox --stream --scope \"@jupyterlab/test-*\"",
     "test:ie": "lerna run test:ie --concurrency 1 --stream --scope \"@jupyterlab/test-*\"",
-    "package:update": "lerna exec --scope \"@jupyterlab/!(test-|main)*\" -- node ../../scripts/package-update.js",
     "publish": "npm update && npm install && npm run clean && npm run build && lerna publish -m \"Publish\"",
+    "update:dependency": "node scripts/update-dependency.js",
     "watch": "cd jupyterlab && npm run watch"
   }
 }