You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ni...@apache.org on 2015/06/27 02:18:47 UTC

[1/2] cordova-registry-web git commit: Add support for uglify

Repository: cordova-registry-web
Updated Branches:
  refs/heads/master b95626a89 -> 63c85a103


Add support for uglify


Project: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/commit/bf6e0597
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/bf6e0597
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/bf6e0597

Branch: refs/heads/master
Commit: bf6e0597e0b89523a9a5d8c1b368dd9a0eede996
Parents: b95626a
Author: Nikhil Khandelwal <ni...@microsoft.com>
Authored: Thu Jun 25 14:28:53 2015 -0700
Committer: Nikhil Khandelwal <ni...@microsoft.com>
Committed: Thu Jun 25 14:28:53 2015 -0700

----------------------------------------------------------------------
 npm-search/Gulpfile.js  | 8 ++++++--
 npm-search/package.json | 5 ++++-
 2 files changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/bf6e0597/npm-search/Gulpfile.js
----------------------------------------------------------------------
diff --git a/npm-search/Gulpfile.js b/npm-search/Gulpfile.js
index 33c7888..5408b1a 100644
--- a/npm-search/Gulpfile.js
+++ b/npm-search/Gulpfile.js
@@ -6,7 +6,9 @@ var gulp       = require('gulp'),
     source     = require('vinyl-source-stream'),
     browserify = require('browserify'),
     argv       = require('yargs').argv,
-    reactify   = require('reactify');
+    reactify   = require('reactify'),
+    uglify     = require('gulp-uglify'),
+    gulpif     = require('gulp-if');
 
 gulp.task('styles', function () {
     gulp.src(['assets/css/base.css', 'assets/css/flexboxgrid.css'])
@@ -22,6 +24,8 @@ gulp.task('scripts', function () {
         .on('error', gutil.log)
         .pipe(source('app.js'))
         .pipe(buffer())
+        .pipe(gulpif(!argv.debug, uglify())) // minify only if not debug build.
+        .on('error', gutil.log)
         .pipe(gulp.dest('./build/'));
 });
 
@@ -36,7 +40,7 @@ gulp.task('images', function () {
 gulp.task('dev', function () {
     gulp.run('build');
 
-    gulp.watch(['assets/js/**/*.js', 'assets/js/official-plugins.json'], [ 'scripts' ]);
+    gulp.watch(['assets/js/**/*.js', 'assets/js/*.json'], [ 'scripts' ]);
     gulp.watch('assets/css/**/*.css', [ 'styles' ]);
     gulp.watch('assets/img/**/*', [ 'images' ]);
 

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/bf6e0597/npm-search/package.json
----------------------------------------------------------------------
diff --git a/npm-search/package.json b/npm-search/package.json
index 1ca65a5..7cf0e28 100644
--- a/npm-search/package.json
+++ b/npm-search/package.json
@@ -22,12 +22,15 @@
     "gulp-concat": "^2.5.2",
     "gulp-imagemin": "^2.2.1",
     "gulp-util": "^3.0.5",
+    "gulp-if": "^1.2.5",
+    "gulp-uglify": "^1.2.0",
     "react": "^0.13.3",
     "react-tools": "^0.13.3",
     "reactify": "^1.1.1",
     "classnames": "^2.1.2",
     "vinyl-buffer": "^1.0.0",
-    "vinyl-source-stream": "^1.1.0"
+    "vinyl-source-stream": "^1.1.0",
+    "yargs": "^3.12.0"
   },
   "maintainers": [
     {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[2/2] cordova-registry-web git commit: Fix syntax error with if else in JSX. Fix the URL references for favicons

Posted by ni...@apache.org.
Fix syntax error with if else in JSX. Fix the URL references for favicons


Project: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/commit/63c85a10
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/63c85a10
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/63c85a10

Branch: refs/heads/master
Commit: 63c85a1037c36b0aeac30047f813e5c66dd9a532
Parents: bf6e059
Author: Nikhil Khandelwal <ni...@microsoft.com>
Authored: Fri Jun 26 10:22:09 2015 -0700
Committer: Nikhil Khandelwal <ni...@microsoft.com>
Committed: Fri Jun 26 10:22:09 2015 -0700

----------------------------------------------------------------------
 npm-search/assets/js/app.js |  5 ++++-
 npm-search/index.html       | 38 +++++++++++++++++++-------------------
 2 files changed, 23 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/63c85a10/npm-search/assets/js/app.js
----------------------------------------------------------------------
diff --git a/npm-search/assets/js/app.js b/npm-search/assets/js/app.js
index 2806958..f5aa49c 100644
--- a/npm-search/assets/js/app.js
+++ b/npm-search/assets/js/app.js
@@ -88,11 +88,14 @@ var SupportedPlatforms = React.createClass({
         if(otherPlatformsSupported.length > 0 && !this.state.moreClicked) {
             moreButton = <li className="clickable" onClick={this.onClick}>...</li>
         }
+        if (!this.state.moreClicked) {
+            otherPlatformsSupported = null;
+        }
         return (
             <ul className="supportedPlatforms">
                 {majorPlatformsSupported}
                 {moreButton}
-                { this.state.moreClicked ? {otherPlatformsSupported} : null }
+                {otherPlatformsSupported} 
             </ul>
         );
     }

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/63c85a10/npm-search/index.html
----------------------------------------------------------------------
diff --git a/npm-search/index.html b/npm-search/index.html
index 56b44ba..d300a4e 100644
--- a/npm-search/index.html
+++ b/npm-search/index.html
@@ -2,27 +2,27 @@
 <html>
   <head>
     <meta http-equiv='Content-type' content='text/html; charset=utf-8'>
-    <meta name='description' content='This website is to search the apache cordova plugins from npm. The plugins can be searched across titles, descriptions, authors, platforms and licenses. You can also view the download counts for each plugin. The page also displays platforms supported, version and last updated day for the cordova plugins.'>
-    <title>Cordova Search Website</title>
+    <meta name='description' content='This website is used to search the apache cordova plugins hosted on npm. The plugins can be searched across titles, descriptions, authors, platforms and licenses. You can also view the download counts for each plugin. The page also displays platforms supported, version and last updated day for the cordova plugins.'>
+    <title>Cordova Plugin NPM Search</title>
     <link rel="stylesheet" href="build/styles.css" />
-    <link rel="apple-touch-icon" sizes="57x57" href="/assets/img/apple-touch-icon-57x57.png">
-    <link rel="apple-touch-icon" sizes="60x60" href="/assets/img/apple-touch-icon-60x60.png">
-    <link rel="apple-touch-icon" sizes="72x72" href="/assets/img/apple-touch-icon-72x72.png">
-    <link rel="apple-touch-icon" sizes="76x76" href="/assets/img/apple-touch-icon-76x76.png">
-    <link rel="apple-touch-icon" sizes="114x114" href="/assets/img/apple-touch-icon-114x114.png">
-    <link rel="apple-touch-icon" sizes="120x120" href="/assets/img/apple-touch-icon-120x120.png">
-    <link rel="apple-touch-icon" sizes="144x144" href="/assets/img/apple-touch-icon-144x144.png">
-    <link rel="apple-touch-icon" sizes="152x152" href="/assets/img/apple-touch-icon-152x152.png">
-    <link rel="apple-touch-icon" sizes="180x180" href="/assets/img/apple-touch-icon-180x180.png">
-    <link rel="icon" type="image/png" href="/assets/img/favicon-32x32.png" sizes="32x32">
-    <link rel="icon" type="image/png" href="/assets/img/android-chrome-192x192.png" sizes="192x192">
-    <link rel="icon" type="image/png" href="/assets/img/favicon-96x96.png" sizes="96x96">
-    <link rel="icon" type="image/png" href="/assets/img/favicon-16x16.png" sizes="16x16">
-    <link rel="manifest" href="/assets/img/manifest.json">
-    <link rel="shortcut icon" href="/assets/img/favicon.ico">
+    <link rel="apple-touch-icon" sizes="57x57" href="assets/img/apple-touch-icon-57x57.png">
+    <link rel="apple-touch-icon" sizes="60x60" href="assets/img/apple-touch-icon-60x60.png">
+    <link rel="apple-touch-icon" sizes="72x72" href="assets/img/apple-touch-icon-72x72.png">
+    <link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-touch-icon-76x76.png">
+    <link rel="apple-touch-icon" sizes="114x114" href="assets/img/apple-touch-icon-114x114.png">
+    <link rel="apple-touch-icon" sizes="120x120" href="assets/img/apple-touch-icon-120x120.png">
+    <link rel="apple-touch-icon" sizes="144x144" href="assets/img/apple-touch-icon-144x144.png">
+    <link rel="apple-touch-icon" sizes="152x152" href="assets/img/apple-touch-icon-152x152.png">
+    <link rel="apple-touch-icon" sizes="180x180" href="assets/img/apple-touch-icon-180x180.png">
+    <link rel="icon" type="image/png" href="assets/img/favicon-32x32.png" sizes="32x32">
+    <link rel="icon" type="image/png" href="assets/img/android-chrome-192x192.png" sizes="192x192">
+    <link rel="icon" type="image/png" href="assets/img/favicon-96x96.png" sizes="96x96">
+    <link rel="icon" type="image/png" href="assets/img/favicon-16x16.png" sizes="16x16">
+    <link rel="manifest" href="assets/img/manifest.json">
+    <link rel="shortcut icon" href="assets/img/favicon.ico">
     <meta name="msapplication-TileColor" content="#da532c">
-    <meta name="msapplication-TileImage" content="/assets/img/mstile-144x144.png">
-    <meta name="msapplication-config" content="/assets/img/browserconfig.xml">
+    <meta name="msapplication-TileImage" content="assets/img/mstile-144x144.png">
+    <meta name="msapplication-config" content="assets/img/browserconfig.xml">
     <meta name="theme-color" content="#ffffff">
   </head>
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org