Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
7728bed
Init
buunguyen Apr 13, 2015
d23101f
Gulp build
buunguyen Apr 13, 2015
22f7cb1
Done gulp & restructuring
buunguyen Apr 14, 2015
2fad2b0
Add package.json & update bower.json
buunguyen Apr 15, 2015
c6bddd2
Stub out plugins from optimized build
buunguyen Apr 15, 2015
e3b770d
Rename output files
buunguyen Apr 15, 2015
b7d051f
Update dist files
buunguyen Apr 15, 2015
5d46432
Improve build script: separate optimized and non-optimized build
buunguyen Apr 17, 2015
447a414
Remove inline RequireJS lib, link via Bower instead
buunguyen Apr 17, 2015
f8586ba
Fix up incorrect and collided names in global scope
buunguyen Apr 17, 2015
27fc444
'dist' package
buunguyen Apr 17, 2015
a64f4ab
Update bower.json
buunguyen Apr 17, 2015
600bcb5
Merge branch 'master' of https://github.com/hpcc-systems/Visualization
buunguyen Apr 17, 2015
d7a078c
Improve build script, fix up demos in test.html (use Bower, self-cont…
buunguyen Apr 17, 2015
cd25fd7
Update build artifacts
buunguyen Apr 18, 2015
f811976
Merge branch 'master' of https://github.com/hpcc-systems/Visualization
buunguyen Apr 18, 2015
d9e65f5
Update bower.json
buunguyen Apr 18, 2015
8e1e9a1
Init
buunguyen Apr 13, 2015
642f56c
Gulp build
buunguyen Apr 13, 2015
788eea0
Done gulp & restructuring
buunguyen Apr 14, 2015
0fef082
Add package.json & update bower.json
buunguyen Apr 15, 2015
24076c4
Stub out plugins from optimized build
buunguyen Apr 15, 2015
7cc4ab1
Rename output files
buunguyen Apr 15, 2015
72e371f
Update dist files
buunguyen Apr 15, 2015
7d3c9f6
Improve build script: separate optimized and non-optimized build
buunguyen Apr 17, 2015
cc4f244
Remove inline RequireJS lib, link via Bower instead
buunguyen Apr 17, 2015
675c8ee
'dist' package
buunguyen Apr 17, 2015
111cbae
Update bower.json
buunguyen Apr 17, 2015
0af35c1
Improve build script, fix up demos in test.html (use Bower, self-cont…
buunguyen Apr 17, 2015
900959f
Update build artifacts
buunguyen Apr 18, 2015
5576036
Update bower.json
buunguyen Apr 18, 2015
5420fd2
Develop Mode Fixes
Apr 18, 2015
3554367
Fix up incorrect and collided names in global scope
buunguyen Apr 17, 2015
f8f870f
Merge branch 'DEV_FIX' of https://github.com/GordonSmith/Visualization
buunguyen Apr 18, 2015
bca54ac
Merge branch 'UMD_FIX' of https://github.com/GordonSmith/Visualization
buunguyen Apr 18, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
bower_components
build.txt
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,16 @@ None of this would would be possible without the great work of others. The widg
While widgets/src also includes wrappers for CDN hosted visualizations:
* [Google Maps](https://developers.google.com/maps/)
* [Google Charts](https://developers.google.com/chart/)


# TODO

- [x] Avoid embedding source of externa libs, declare via bower.json
- [x] Gulp build for "legacy" and optimized (single files) mode
- [x] Fix up incorrect/collided names in global scope (non-AMD usage)
- [x] Fix helloworld.html & test.html to use built artifacts, not source
- [x] Demos should use its own config.js and bower.json
- [ ] Include map files in optimized build
- [ ] Lazy load data files (countries.js etc.)
- [ ] Handle goog! stuff in optimize build
- [ ] Handle dynamic google map (lazy load?)
38 changes: 38 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "viz",
"version": "0.0.1",
"description": "Common visualization components",
"keywords": [
"visualization"
],
"main": [
"dist/optimized/viz.min.css",
"dist/optimized/viz.min.js"
],
"ignore": [
".gitignore",
"viz",
"package.json",
"demos",
"gulpfile.js",
"rjs.noop.js"
],
"dependencies": {
"requirejs": "2.1.17",
"requirejs-plugins": "1.0.3",
"require-css": "0.1.8",
"c3": "0.4.9",
"colorbrewer": "1.0.0",
"d3": "3.5.0",
"dagre": "0.7.1",
"font-awesome": "4.3.0",
"lodash": "3.0.0",
"topojson": "1.6.18",
"crossfilter": "[email protected]:square/crossfilter.git",
"d3-cloud": "[email protected]:jasondavies/d3-cloud.git"
},
"license": "Apache",
"authors": [
"HPCC Systems"
]
}
8 changes: 0 additions & 8 deletions build.sh

This file was deleted.

13 changes: 4 additions & 9 deletions demos/HelloWorld.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@
<html>
<head>
<meta charset="utf-8">
<script src="../widgets/lib/requirejs/require.js"></script>
<script src="../widgets/config.js"></script>
<script>
requirejs.config({
baseUrl: "../widgets"
});
</script>
<script src="../bower_components/requirejs/require.js"></script>
<script src="./config.js"></script>
</head>
<body>
<div id="helloWorld" style="width:100%; height:100vh">
</div>
<script>
require(["src/common/TextBox"], function (TextBox) {
require(["viz/common/TextBox"], function (TextBox) {
var helloWorld = new TextBox()
.target("helloWorld")
.text("Hello\nWorld!")
Expand All @@ -23,4 +18,4 @@
});
</script>
</body>
</html>
</html>
29 changes: 29 additions & 0 deletions demos/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "viz-demos",
"version": "0.0.1",
"description": "Demos of Viz framework",
"keywords": [
"visualization"
],
"dependencies": {
"c3": "0.4.9",
"colorbrewer": "1.0.0",
"crossfilter": "[email protected]:square/crossfilter.git",
"d3": "3.5.0",
"dagre": "0.7.1",
"font-awesome": "4.3.0",
"topojson": "1.6.18",
"d3-cloud": "[email protected]:jasondavies/d3-cloud.git",
"require-css": "~0.1.8",
"text": "~2.0.14",
"requirejs-plugins": "~1.0.3",
"requirejs": "~2.1.17"
},
"license": "Apache",
"authors": [
"HPCC Systems"
],
"resolutions": {
"lodash": "3.0.0"
}
}
34 changes: 34 additions & 0 deletions demos/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
require.config({
baseUrl: ".",
paths: {
'async': '../bower_components/requirejs-plugins/src/async',
'css': '../bower_components/require-css/css',
'text': '../bower_components/text/text',
'goog': '../bower_components/requirejs-plugins/src/goog',
'propertyParser': '../bower_components/requirejs-plugins/src/propertyParser',

'lodash': '../bower_components/lodash/dist/lodash',
'graphlib': '../bower_components/graphlib/dist/graphlib.core',
'd3-cloud': '../bower_components/d3-cloud',
'topojson': '../bower_components/topojson',
'font-awesome': '../bower_components/font-awesome',
'dagre/dagre': '../bower_components/dagre/dist/dagre.core',
'colorbrewer': '../bower_components/colorbrewer'
},
packages: [
{
name: 'd3',
location: '../bower_components/d3',
main: 'd3'
},
{
name: 'c3',
location: '../bower_components/c3',
main: 'c3'
},
{
name: 'viz',
location: '../viz'
}
]
});
Loading