[Pkg-javascript-commits] [leaflet] 260/301: remove closure compiler instructions; close #2193

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 58b93f80b18b444c80ef9ef1e5efb2b978222ccb
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Fri Nov 15 16:35:25 2013 +0200

    remove closure compiler instructions; close #2193
---
 build/build.html | 22 +++-------------------
 build/build.js   |  6 ++++--
 build/deps.js    |  1 +
 3 files changed, 8 insertions(+), 21 deletions(-)

diff --git a/build/build.html b/build/build.html
index 9e5a233..f876582 100644
--- a/build/build.html
+++ b/build/build.html
@@ -86,21 +86,14 @@
 			<li><a href="http://nodejs.org/#download">Download and install Node</a></li>
 			<li>Run this in the command line:<br />
 			<pre><code>npm install -g jake
-npm install jshint
-npm install uglify-js</code></pre></li>
+npm install</code></pre></li>
 			<li>Run this command inside the Leaflet directory: <br /><input type="text" id="command2" />
 		</ol>
-		<h2>Building using Closure Compiler</h2>
-		<ol>
-			<li><a href="http://closure-compiler.googlecode.com/files/compiler-latest.zip">Download Closure Compiler</a>, extract it into <code>closure-compiler</code> directory</li>
-			<li>Run this command in the root Leaflet directory: <br /><input type="text" id="command" /></li>
-		</ol>
 	</div>
 
 	<script type="text/javascript">
 		var deplist = document.getElementById('deplist'),
-			commandInput = document.getElementById('command'),
-			commandInput2 = document.getElementById('command2');
+			commandInput = document.getElementById('command2');
 
 		document.getElementById('select-all').onclick = function() {
 			var checks = deplist.getElementsByTagName('input');
@@ -139,15 +132,7 @@ npm install uglify-js</code></pre></li>
 				}
 			}
 
-			var command = 'java -jar closure-compiler/compiler.jar ';
-			for (var src in files) {
-				command += '--js src/' + src + ' ';
-			}
-			command += '--js_output_file dist/leaflet-custom.js';
-
-			commandInput.value = command;
-
-			commandInput2.value = 'jake build[' + parseInt(compsStr, 2).toString(32) + ',custom]';
+			commandInput.value = 'jake build[' + parseInt(compsStr, 2).toString(32) + ',custom]';
 		}
 
 		function inputSelect() {
@@ -156,7 +141,6 @@ npm install uglify-js</code></pre></li>
 		};
 
 		commandInput.onclick = inputSelect;
-		commandInput2.onclick = inputSelect;
 
 		function onCheckboxChange() {
 			if (this.checked) {
diff --git a/build/build.js b/build/build.js
index f931b8a..cbb714d 100644
--- a/build/build.js
+++ b/build/build.js
@@ -22,16 +22,18 @@ function getFiles(compsBase32) {
 	for (var i in deps) {
 		if (comps) {
 			if (parseInt(comps.pop(), 2) === 1) {
-				console.log('\t* ' + i);
+				console.log(' * ' + i);
 				addFiles(deps[i].src);
 			} else {
-				console.log('\t  ' + i);
+				console.log('   ' + i);
 			}
 		} else {
 			addFiles(deps[i].src);
 		}
 	}
 
+	console.log('');
+
 	var files = [];
 
 	for (var src in memo) {
diff --git a/build/deps.js b/build/deps.js
index 5d33e3e..5e37e0e 100644
--- a/build/deps.js
+++ b/build/deps.js
@@ -231,6 +231,7 @@ var deps = {
 			'dom/PosAnimation.js',
 			'map/anim/Map.PanAnimation.js'
 			],
+		heading: 'Animation',
 		desc: 'Core panning animation support.'
 	},
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list