Created
September 22, 2016 17:24
-
-
Save migerh/3d1c3f540ba7d3d6b98fe0b9b6176bd2 to your computer and use it in GitHub Desktop.
JSXGraph import example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": [ | |
"es2015", | |
"stage-3" | |
], | |
"plugins": [ | |
"transform-runtime" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import JXG from 'jsxgraph'; | |
console.log(JXG.version); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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