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

Gulp compass without config.rb
gulp-webserver: Default to index.html if available, else show directories
gulp-uglify notify on failing build
Declaring optional dependencies
gulp html minification error
Can an IIFE be added to a browserify bundle?
Gulp: Error Messages and Notifications with Plumber
Gulp - gulp-load-plugins not working
How to configure Gulp task to copy bower resources
gulp-jscs doesn't output anything when used in gulp-watch pipeline
ES6 project does not compile because modules not found
Gulp - can't set multiple relative destinations
Deploy a Yeoman Application With Gulp
Gulp-Inject Positions
Fail subsequent gulp tasks if first task fails
Why “gulp-jest” is failing with: “Please run node with the --harmony flag!”?

Categories

HOME
intellij-idea
qemu
weblogic
casting
jquery-plugins
data-modeling
thermal-printer
grid
country-codes
zabbix
doctrine2
promotions
ephesoft
rtc
jpql
aspectj
resharper
browsermob
react-select
infopath
brightway
orange
beacon
passbook
ajaxcontroltoolkit
ejb-3.1
smali
functional-dependencies
android-wear-2.0
boosting
bytebuffer
angular-schema-form
arp
log4net-configuration
ponylang
border-layout
stdin
gem-fury
mediastream
icu
definition
irr
result
rivets.js
androiddesignsupport
pyautogui
group
qt3d
toggleclass
joystick
class-design
jira-agile
cosign-api
syslog4j
android-xmlpullparser
database-administration
python-rq
paypal-subscriptions
skbio
methodology
markerspiderfier
skscene
biginsights
lytro
jsoncpp
vensim
eggplant
photogrammetry
jeet-grid
xmla
sony-xperia
esri-arc-engine
qxorm
dirname
disabled-control
xpand
smartxls
power-management
imaplib
mahara
ekevent
jfilechooser
randomaccessfile
scidb
infomaker
stringstream
reference-manual
cryptarithmetic-puzzle
socketasynceventargs
parsec
cryptolicensing
table-valued-parameters
database-agnostic
browser-state
qprocess
for-xml
mdd
morfik
file-icons
hotfix

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