AMD / jamjs support requested
Hello,
I'm using Highcharts quite extensively. Recently i managed to get this library working with require.js and more specifically with jamjs.
First question : are you guys planning to support AMD loading of your library ?
Personally, to simulate the jamjs/require.js package i use this setup
- copy the content of the highcharts js folder to the root of the highcharts folder, get rig of the examples and other directories.
Add a package.json file with this content
{
"name": "hightcharts",
"version": "2.3.5-jam.1",
"description": "Highcharts JS is a JavaScript charting library based on SVG and VML rendering.",
"homepage": "http://www.highcharts.com/",
"main": "hightcharts.js"
"jam": {
"main": "hightcharts.js"
}
}
For jamjs,
- In my main package.json file, i added a dependency to highcharts
"highcharts": "*"
then the shim
"shim": {
"highcharts": {
"exports": "highcharts",
"deps": [ "jquery"]
}
}
And this is working fine...
Second question, Would it be possible to have Highcharts being included in the jamjs packages ?
This last question would be very appreciated if it could be handle as i won't have to manually update my require.config.js file
today i have to add the following code to require.config.js, which break the concept of jamjs...
javascript
{
"name": "highcharts",
"location": "lib/highcharts",
"main": "highcharts.js"
},
Many thanks for your help
-
Hi Michael,
Is this something you can use? http://jamjs.org/packages/#/details/highcharts