diff --git a/bower.json b/bower.json index 8442892..47997b5 100644 --- a/bower.json +++ b/bower.json @@ -1,23 +1,24 @@ { - "name": "dat.gui", - "version": "0.0.0", - "description": "Attempt at revamping dat.gui with Polymer.", - "keywords": [ - "gui" - ], - "authors": [ - "George Michael Brower" - ], - "license": "MIT", - "private": true, - "main": "gui.html", - "ignore": [ - "**/.*", - "node_modules", - "tests", - "docs" - ], - "dependencies": { - "polymer": "Polymer/polymer#>=0.4.0" - } + "name": "dat.gui", + "version": "0.0.0", + "description": "Attempt at revamping dat.gui with Polymer.", + "keywords": [ + "gui" + ], + "authors": [ + "George Michael Brower" + ], + "license": "MIT", + "private": true, + "main": "dat-gui.html", + "ignore": [ + "**/.*", + "node_modules", + "tests", + "docs" + ], + "dependencies": { + "polymer": "Polymer/polymer#>=0.4.0", + "platform": "Polymer/platform#>=0.4.0" + } } diff --git a/build/dat-gui.html b/build/dat-gui.html index eaffc09..cd99885 100644 --- a/build/dat-gui.html +++ b/build/dat-gui.html @@ -1,8 +1,4 @@ - + - \ No newline at end of file + diff --git a/build/dat-gui.js b/build/dat-gui.js index 86a807f..447ac2b 100644 --- a/build/dat-gui.js +++ b/build/dat-gui.js @@ -1,8 +1,4 @@ -document.write(['', +document.write(['', '', '', '', '', -'',].join("\n")) \ No newline at end of file +'', +'',].join("\n")) \ No newline at end of file diff --git a/build/gui.shim.js b/build/gui.shim.js new file mode 100644 index 0000000..123c7d6 --- /dev/null +++ b/build/gui.shim.js @@ -0,0 +1 @@ +!function(t){"use strict";var n=function(){this.vars={}};n.ready=function(t){t()},n.prototype.var=function(t,n){return this.vars[t]=n,i},n.prototype.add=function(){return i};var r=function(){return this},i={on:r};t.Gui=n}(this); \ No newline at end of file diff --git a/dat-gui.html b/dat-gui.html index b3789b4..17f4b7e 100644 --- a/dat-gui.html +++ b/dat-gui.html @@ -1,6 +1,4 @@ - - - + @@ -12,4 +10,4 @@ - \ No newline at end of file + diff --git a/examples/index.html b/examples/index.html index d12db1f..8a22c48 100644 --- a/examples/index.html +++ b/examples/index.html @@ -5,8 +5,11 @@ dat-gui kitchen sink - + + diff --git a/gulpfile.js b/gulpfile.js index 09b008b..aa02834 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -74,6 +74,7 @@ gulp.task( 'build', [ 'vulcanize' ], function() { gulp.task( 'vulcanize', [ 'css' ], function() { return gulp.src( 'dat-gui.html' ) + .pipe( $.insert.prepend( '"\n' ) ) .pipe( $.vulcanize( { dest: 'build', inline: true, diff --git a/index.html b/index.html index d9bc894..4eef2d1 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,7 @@ Saving

Basic Usage

Download the minified library and include it in your html.

-
<script src="dat-gui.js"></script>
+
<script src="gui.js"></script>
 

Create controllers by adding objects and their properties. dat-gui chooses a controller based on the variable's initial value.

var gui = new Gui();
@@ -186,7 +186,7 @@ Gui.register( 'dat-gui-number', function( value ) {
 
$ bower install gui-three
 

Include the source for the third-party controllers after dat-gui.

-
<script src="dat-gui.js"></script>
+
<script src="gui.js"></script>
 <script src="gui-three.js"></script>