From b0a559e1829214deeeda2b83c0157933df26ce66 Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Tue, 30 Aug 2011 16:25:07 -0700
Subject: [PATCH] This is needed for the build.

---
 browserid/static/relay/scripts/build.html | 21 +++++++++++++++++++++
 browserid/static/relay/scripts/build.js   |  8 ++++++++
 browserid/static/relay/scripts/clean.js   | 17 +++++++++++++++++
 browserid/static/relay/scripts/docs.js    |  6 ++++++
 4 files changed, 52 insertions(+)
 create mode 100644 browserid/static/relay/scripts/build.html
 create mode 100644 browserid/static/relay/scripts/build.js
 create mode 100644 browserid/static/relay/scripts/clean.js
 create mode 100644 browserid/static/relay/scripts/docs.js

diff --git a/browserid/static/relay/scripts/build.html b/browserid/static/relay/scripts/build.html
new file mode 100644
index 000000000..e11cf9d1e
--- /dev/null
+++ b/browserid/static/relay/scripts/build.html
@@ -0,0 +1,21 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+	"http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en">
+	<head>
+		<title>relay Build Page</title>
+	</head>
+	<body>
+	    <h1>relay Build Page</h1>
+		<p>This is a dummy page that loads your app so steal can
+		   get all the files.  
+		</p>
+		<p>If you built your app
+		   to depend on HTML in the page before DOMContent loaded or 
+		   onload, you can add the HTML here, or you can change the
+		   build.js script to point to a better html file.
+		</p>
+		<script type='text/javascript' 
+	    src='../../steal/steal.js?relay'>	 
+        </script>
+	</body>
+</html>
diff --git a/browserid/static/relay/scripts/build.js b/browserid/static/relay/scripts/build.js
new file mode 100644
index 000000000..7b6fa82d1
--- /dev/null
+++ b/browserid/static/relay/scripts/build.js
@@ -0,0 +1,8 @@
+
+load("steal/rhino/steal.js");
+steal.plugins('steal/build','steal/build/scripts','steal/build/styles',function() {
+	steal.build('../static/relay/scripts/build.html',{
+        to: '../static/relay',
+        compressor: 'concatOnly'
+    });
+});
diff --git a/browserid/static/relay/scripts/clean.js b/browserid/static/relay/scripts/clean.js
new file mode 100644
index 000000000..fc1cb75b3
--- /dev/null
+++ b/browserid/static/relay/scripts/clean.js
@@ -0,0 +1,17 @@
+//steal/js /web/browserid/browserid/static/dialog/dialog/scripts/compress.js
+
+load("steal/rhino/steal.js");
+steal.plugins('steal/clean',function(){
+	steal.clean('/web/browserid/browserid/static/relay/relay.html',{
+		indent_size: 1, 
+		indent_char: '\t', 
+		jslint : false,
+		ignore: /jquery\/jquery.js/,
+		predefined: {
+			steal: true, 
+			jQuery: true, 
+			$ : true,
+			window : true
+			}
+	});
+});
diff --git a/browserid/static/relay/scripts/docs.js b/browserid/static/relay/scripts/docs.js
new file mode 100644
index 000000000..e9f61d1bd
--- /dev/null
+++ b/browserid/static/relay/scripts/docs.js
@@ -0,0 +1,6 @@
+//js /web/browserid/browserid/static/dialog/dialog/scripts/doc.js
+
+load('steal/rhino/steal.js');
+steal.plugins("documentjs").then(function(){
+	DocumentJS('/web/browserid/browserid/static/dialog/dialog/dialog.html');
+});
\ No newline at end of file
-- 
GitLab