gulp


gulp server not running on any port


Hey guys i am new to angularJs so i am learning. i have used xampp before on port 8080 and now when i set up a gulp server it says that it started successfully but nothing appeared on browser. tried to change port but didnt work. what did i do wrong? here is my gulpfile.js
var gulp = require('gulp'),
connect = require('gulp-connect'),
historyApiFallback = require('connect-history-api-fallback');
//Development Web Server
gulp.task('server', function(){
connect.server({
root: './app',
hostname: 'localhost',
port: 2020,
liverload: true,
middleware: function(connect, opt){
return [ historyApiFallback ];
}
});
});
var stylus = require('gulp-stylus'),
nib = require('nib');
//Preprocess Stylus files to CSS and reload changes
gulp.task('css', function(){
gulp.src('./app/stylesheets/main.styl')
.pipe(stylus({use: nib()}))
.pipe(gulp.dest('./app/stylesheets'))
.pipe(connect.reload());
});
//Reload the browser on HTML changes
gulp.task('html', function(){
gulp.src('./app/**/*.html')
.pipe(connect.reload());
});
//watch code changes and to run related tasks
gulp.task('watch' , function(){
gulp.watch(['./app/**/*.html'],['html']);
gulp.watch(['./app/stylesheets/**/*.styl'],['css']);
});
gulp.task('default', ['server', 'watch']);

Related Links

How can I make build variables available to all JS files in gulp?
Gulp not installed globally?
gulp-useref deep folders error
use gulp+browserify+reactify, can't emit exit when got a ReactifyError
gulp-browserstack and gulp-cucumber don't seem to play nicely together
Gulp - Babel - EcmaScript-6 - Redux / Unhandled stream error in pipe
Delete all files using gulp except once that match pattern
Gulp task 'inject:vendor' does not inject Bower dependencies
Why do you open a gulp src pipe when you use gulp-watch?
Atom action performed on save
Gulp BrowserSync not working with SCSS
run gulp-clean-css options in gulp-inline
Is it possible to run gulp tasks after linting?
How to male a snapshot/dump from gulp installation and settings?
My browsersync server refreshes the page but with old content
Iterate a JSON object in Jade using gulp-data?

Categories

HOME
actionscript-3
classification
algolia
sql-server-2014
pyspark
customization
openacc
grpc
conceptual
magento-1.9.2.1
azure-resource-manager
pandoc
xss
msbi
checkpoint
jshell
richtextbox
install
cdn
google-api-oauth
box-api
xmlhttprequest
aggregate
nsoperation
filehelpers
datazen-server
opengraph
screen-scraping
onclicklistener
oracle-golden-gate
ps
waterfall
chartist.js
pydub
android-cursorloader
gulp-jshint
android-6.0-marshmallow
hierarchical-data
kundera
vtd-xml
key-bindings
pymunk
var
java-5
piranha-cms
serialversionuid
jcs
sharpdevelop
photoshop-script
typewriter
group
huawei
portaudio
mate-desktop
normalisation
boost-bind
phpdesigner
custom-build-step
google-finance-api
kramdown
producer-consumer
taverna
eaaccessory
web-standards
transparentproxy
tidesdk
mathics
information-hiding
agent-based-modeling
webshim
power-management
acrofields
xml-validation
grape-api
zend-db-table
pyxplot
removeall
wordbreaker
nx
vline
quit
php-gettext
nsscrollview
scsf
scriptmanager
isgl3d
designated-initializer
moss2007-security
cryptolicensing
cpack
marathontesting
cinder
s60
virtual-destructor
simultaneous
pkcs#7
manuals
script-tag

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App