language: node_js
node_js:
- - "0.10"
+ - "6"
sudo: false # Use container-based architecture
script: >
<div id="graph"></div>
<div id="mocha"></div>
- <!-- Polyfills for PhantomJS -->
- <script src="../node_modules/babel-core/browser-polyfill.js"></script>
-
<!-- Mocha -->
<script src="../node_modules/mocha/mocha.js"></script>
<script src="../node_modules/chai/chai.js"></script>
<div id="graph"></div>
<div id="mocha"></div>
- <!-- Polyfills for PhantomJS -->
- <script src="../node_modules/babel-core/browser-polyfill.js"></script>
-
<!-- Mocha -->
<script src="../node_modules/mocha/mocha.js"></script>
<script src="../node_modules/chai/chai.js"></script>
import Dygraph from '../../src/dygraph';
import Util from './Util';
+import 'core-js/es6/promise';
+
function dygraphPromise(div, data, opts) {
return new Promise((resolve, reject) => {
const g = new Dygraph(div, data, opts);
},
"pre-commit": [
"tests-ok"
- ]
+ ],
+ "dependencies": {
+ "core-js": "^2.4.1"
+ }
}
# Create dist/dygraph.tmp.js.map
cat dist/dygraph.tmp.js | exorcist --base . dist/dygraph.tmp.js.map > /dev/null
-header='/*! @license Copyright 2014 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */'
+header='/*! @license Copyright 2017 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */'
# Create dist/dygraph.js.min{,.map}
uglifyjs --compress --mangle \
*/
+// Polyfills
+import 'core-js/es6/symbol';
+import 'core-js/fn/symbol/iterator';
+
import DygraphLayout from './dygraph-layout';
import DygraphCanvasRenderer from './dygraph-canvas';
import DygraphOptions from './dygraph-options';