Commit f78adf7e authored by S Anand's avatar S Anand
Browse files

ENH: add ES6 module support

parent 7cf80214
Pipeline #93548 passed with stage
in 2 minutes and 15 seconds
# Change log # Change log
- `0.17.2`:
- Expose ES6 modules in `modules.js`. Allows `require('g1')` in node
- `0.17.1`: - `0.17.1`:
- [$.template](docs/template.md) exposes variables `$node` (the source node) - [$.template](docs/template.md) exposes variables `$node` (the source node)
and `$data` (its `data-` attributes) and `$data` (its `data-` attributes)
......
{ {
"name": "g1", "name": "g1",
"version": "0.17.1", "version": "0.17.2",
"description": "Gramex 1.x interaction library", "description": "Gramex 1.x interaction library",
"license": "MIT", "license": "MIT",
"author": "S Anand <s.anand@gramener.com>", "author": "S Anand <s.anand@gramener.com>",
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
"d3": "4", "d3": "4",
"d3-scale-chromatic": "1", "d3-scale-chromatic": "1",
"deepmerge": "2", "deepmerge": "2",
"eclint": "2",
"es6-promise": "4", "es6-promise": "4",
"eslint": "4", "eslint": "4",
"events-polyfill": "2", "events-polyfill": "2",
......
/* globals $, _ */
export function ajaxchain(request, $self, requests, responses) { export function ajaxchain(request, $self, requests, responses) {
$self = $self || $('<div>') $self = $self || $('<div>')
requests = requests || [] requests = requests || []
......
/* globals d3 */
import { scale } from './scale.js' import { scale } from './scale.js'
import { parseSvg } from './parsetransform.js' import { parseSvg } from './parsetransform.js'
export { sanddance } export { sanddance }
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment