Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.DS_Store | ||
build/ | ||
node_modules | ||
npm-debug.log |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build/*.zip | ||
test/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
# d3-gridding | ||
creates various grid partitions and overlays for d3 charts | ||
|
||
Creates various grid partitions and overlays for d3 charts. | ||
|
||
## Installing | ||
|
||
If you use NPM, `npm install d3-gridding`. Otherwise, download the [latest release](https://github.com/romsson/d3-gridding/releases/latest). | ||
|
||
## API Reference | ||
|
||
<a href="#foo" name="foo">#</a> <b>gridding</b>() | ||
|
||
Computes the answer to the ultimate question of life, the universe, and everything. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {default as gridding} from "./src/gridding"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "d3-gridding", | ||
"version": "0.0.1", | ||
"description": "creates various grid partitions and overlays for d3 charts", | ||
"keywords": [ | ||
"d3", | ||
"d3-module" | ||
], | ||
"license": "BSD-3-Clause", | ||
"main": "build/d3-gridding.js", | ||
"jsnext:main": "index", | ||
"homepage": "https://github.com/romsson/d3-gridding", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/romsson/d3-gridding.git" | ||
}, | ||
"scripts": { | ||
"pretest": "rm -rf build && mkdir build && rollup -f umd -n d3 -o build/d3-gridding.js -- index.js", | ||
"test": "tape 'test/**/*-test.js'", | ||
"prepublish": "npm run test && uglifyjs build/d3-gridding.js -c -m -o build/d3-gridding.min.js", | ||
"postpublish": "zip -j build/d3-gridding.zip -- LICENSE README.md build/d3-gridding.js build/d3-gridding.min.js" | ||
}, | ||
"devDependencies": { | ||
"rollup": "0.27", | ||
"tape": "4", | ||
"uglify-js": "2" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function() { | ||
return 42; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var tape = require("tape"), | ||
gridding = require("../"); | ||
|
||
tape("gridding() returns the answer to the ultimate question of life, the universe, and everything.", function(test) { | ||
test.equal(gridding.gridding(), 42); | ||
test.end(); | ||
}); |