rename gui.html and gui.js to dat-gui.html and dat-gui.js

This commit is contained in:
Doug Fritz 2014-09-10 15:51:48 -07:00
parent 29e2f5b99e
commit e2bf2c4578
9 changed files with 14 additions and 27 deletions

View File

@ -10,6 +10,7 @@
],
"license": "MIT",
"private": true,
"main": "gui.html",
"ignore": [
"**/.*",
"node_modules",

0
build/gui.html → build/dat-gui.html Executable file → Normal file
View File

0
build/gui.js → build/dat-gui.js Executable file → Normal file
View File

View File

@ -1 +0,0 @@
!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);

View File

@ -6,7 +6,7 @@
<title>dat-gui</title>
<script src="build/gui.js"></script>
<script src="build/dat-gui.js"></script>
<link rel="stylesheet" href="docs/style.css">
</style>

View File

@ -4,22 +4,9 @@
<meta charset="utf-8">
<title>dat-gui kitchen sink</title>
<<<<<<< HEAD
<script src="../build/gui.js"></script>
<!-- <link rel="import" href="../gui.html"> -->
||||||| merged common ancestors
<script src="../build/gui.js"></script>
<!-- <link rel="import" href="../gui.html"> -->
=======
<!-- // <script src="../build/gui.js"></script> -->
<link rel="import" href="../gui.html">
>>>>>>> 8d86460ebde6d3dda4dec6e7783f0223fca59d00
<!--<script src="../build/dat-gui.js"></script>-->
<link rel="import" href="../dat-gui.html">
<meta name="viewport" content="width=device-width, user-scalable=no">

View File

@ -7,9 +7,9 @@ var gulp = require( 'gulp' ),
$ = require( 'gulp-load-plugins' )();
var paths = {
build: [ 'elements/**/*.styl', 'elements/**/*.html', 'elements/**/*.js' , 'gui.html' ],
build: [ 'elements/**/*.styl', 'elements/**/*.html', 'elements/**/*.js' , 'dat-gui.html' ],
lint: [ 'gulpfile.js', 'elements/**/*.js' ],
test: [ 'build/gui.js', 'tests/*.js' ],
test: [ 'build/dat-gui.js', 'tests/*.js' ],
clean: [ 'build/*', '**/*.css' ],
docs: [ 'README.md', 'docs/*' ],
shim: [ 'elements/shim.js' ]
@ -61,19 +61,19 @@ gulp.task( 'browser', [], function() {
gulp.task( 'build', [ 'vulcanize' ], function() {
return gulp.src( 'build/gui.html' )
return gulp.src( 'build/dat-gui.html' )
.pipe( $.replace( /\\/g, '\\\\' ) )
.pipe( $.replace( /'/g, '\\\'' ) )
.pipe( $.replace( /^(.*)$/gm, '\'$1\',' ) )
.pipe( $.insert.wrap( 'document.write([', '].join("\\n"))' ) )
.pipe( $.rename( 'gui.js' ) )
.pipe( $.rename( 'dat-gui.js' ) )
.pipe( gulp.dest( 'build' ) );
} );
gulp.task( 'vulcanize', [ 'css' ], function() {
return gulp.src( 'gui.html' )
return gulp.src( 'dat-gui.html' )
.pipe( $.vulcanize( {
dest: 'build',
inline: true,

View File

@ -6,7 +6,7 @@
<title>dat-gui</title>
<script src="build/gui.js"></script>
<script src="build/dat-gui.js"></script>
<link rel="stylesheet" href="docs/style.css">
</style>
@ -25,7 +25,7 @@
<a href="#saving"> Saving </a></p>
<h3 id="basic-usage">Basic Usage</h3>
<p>Download the <a href="todo">minified library</a> and include it in your html.</p>
<pre><code class="lang-html">&lt;script src=&quot;gui.js&quot;&gt;&lt;/script&gt;
<pre><code class="lang-html">&lt;script src=&quot;dat-gui.js&quot;&gt;&lt;/script&gt;
</code></pre>
<p>Create controllers by adding objects and their properties. dat-gui chooses a controller based on the variable&#39;s initial value.</p>
<pre><code class="lang-javascript">var gui = new Gui();
@ -186,7 +186,7 @@ Gui.register( &#39;dat-gui-number&#39;, function( value ) {
<pre><code class="lang-sh">$ bower install gui-three
</code></pre>
<p>Include the source for the third-party controllers after dat-gui.</p>
<pre><code class="lang-html">&lt;script src=&quot;gui.js&quot;&gt;&lt;/script&gt;
<pre><code class="lang-html">&lt;script src=&quot;dat-gui.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;gui-three.js&quot;&gt;&lt;/script&gt;
</code></pre>
</div>