Skip to content

Instantly share code, notes, and snippets.

@migerh
Created September 22, 2016 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save migerh/3d1c3f540ba7d3d6b98fe0b9b6176bd2 to your computer and use it in GitHub Desktop.
Save migerh/3d1c3f540ba7d3d6b98fe0b9b6176bd2 to your computer and use it in GitHub Desktop.
JSXGraph import example
{
"presets": [
"es2015",
"stage-3"
],
"plugins": [
"transform-runtime"
]
}
import JXG from 'jsxgraph';
console.log(JXG.version);
{
"name": "jsxgraph-import-example",
"version": "1.0.0",
"description": "Simple example on how to import JSXGraph",
"main": "import.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
"dependencies": {
"babel-cli": "^6.14.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.14.0",
"babel-preset-stage-3": "^6.11.0",
"babel-register": "^6.14.0",
"jsxgraph": "^0.99.5"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment