cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mura...@apache.org
Subject cordova-registry-web git commit: Use gulp-serve instead of browser-sync
Date Mon, 20 Jul 2015 17:39:10 GMT
Repository: cordova-registry-web
Updated Branches:
  refs/heads/master 676d5b796 -> aefa1cc71


Use gulp-serve instead of browser-sync


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/aefa1cc7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/aefa1cc7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/aefa1cc7

Branch: refs/heads/master
Commit: aefa1cc71c125cb12d8938cfd532a60593b1f21f
Parents: 676d5b7
Author: Murat Sutunc <sutunc@gmail.com>
Authored: Thu Jul 16 23:04:03 2015 -0700
Committer: Murat Sutunc <sutunc@gmail.com>
Committed: Thu Jul 16 23:18:04 2015 -0700

----------------------------------------------------------------------
 npm-search/Gulpfile.js  | 19 +++----------------
 npm-search/package.json | 12 ++++++------
 2 files changed, 9 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/aefa1cc7/npm-search/Gulpfile.js
----------------------------------------------------------------------
diff --git a/npm-search/Gulpfile.js b/npm-search/Gulpfile.js
index 66d850f..6839165 100644
--- a/npm-search/Gulpfile.js
+++ b/npm-search/Gulpfile.js
@@ -9,8 +9,8 @@ var gulp       = require('gulp'),
     reactify   = require('reactify'),
     uglify     = require('gulp-uglify'),
     gulpif     = require('gulp-if'),
-    browserSync = require('browser-sync'),
-    envify      = require('envify');
+    serve      = require('gulp-serve'),
+    envify     = require('envify');
 
 gulp.task('styles', function () {
     gulp.src(['src/css/base.css', 'src/css/flexboxgrid.css'])
@@ -59,19 +59,6 @@ gulp.task('dev', ['build'], function () {
     gulp.watch('src/etc/**', ['etc']);
 });
 
-gulp.task('serve', ['dev'], function() {
-  browserSync({
-    server: {
-      baseDir: './build'
-    },
-    files: [
-      './build/*.html',
-      './build/img/**',
-      './build/css/*.css',
-      './build/js/*.js',
-      './build/etc/**'
-    ]
-  });
-});
+gulp.task('serve', ['dev'], serve('build'));
 
 gulp.task('build', [ 'styles', 'scripts', 'images', 'html', 'etc' ]);

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/aefa1cc7/npm-search/package.json
----------------------------------------------------------------------
diff --git a/npm-search/package.json b/npm-search/package.json
index c7b4caa..34fd6ba 100644
--- a/npm-search/package.json
+++ b/npm-search/package.json
@@ -18,21 +18,21 @@
   "homepage": "https://github.com/apache/cordova-registry-web",
   "devDependencies": {
     "browserify": "^10.2.4",
+    "classnames": "^2.1.2",
+    "envify": "^3.4.0",
     "gulp": "^3.9.0",
     "gulp-concat": "^2.5.2",
-    "gulp-imagemin": "^2.2.1",
-    "gulp-util": "^3.0.5",
     "gulp-if": "^1.2.5",
+    "gulp-imagemin": "^2.2.1",
+    "gulp-serve": "^1.0.0",
     "gulp-uglify": "^1.2.0",
+    "gulp-util": "^3.0.5",
     "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",
-    "yargs": "^3.12.0",
-    "browser-sync": "^2.7.13",
-    "envify": "^3.4.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


Mime
View raw message