Skip to content

Commit

Permalink
chore(gulpfile, package, bower): added gulp tasks and updated packages
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoneto committed Nov 15, 2014
1 parent d342b33 commit f3fb4e0
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
.DS_Store
*.log
node_modules
components
bower_components
nbproject
.idea
.tmp
demo.js
1 change: 1 addition & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"bootstrap-select": ">=1.6"
},
"devDependencies": {
"bootstrap": ">=3.0.0",
"angular-mocks": "~1.3.0"
}
}
26 changes: 26 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
var path = require('path');
var gulp = require('gulp');
var connect = require('gulp-connect');

var paths = {
src: 'src',
dist: 'dist',
demo: 'demo',
test: 'test',
scripts: path.join('src', '**', '*.js'),
};

var files = {
demo: path.join(paths.demo, '**', '*'),
};

gulp.task('watch:demo', function () {
gulp.watch(files.demo, function () {
gulp.src(files.demo).pipe(connect.reload());
});
});

gulp.task('serve', ['watch:demo'], function () {
connect.server({ livereload: true });
});

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
"version": "0.0.4",
"description": "Directive to wrap bootstrap-select",
"devDependencies": {
"grunt-karma": "~0.4.5",
"grunt-contrib-uglify": "~0.2.2",
"dgeni": "^0.4.1",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-clean": "~0.5.0"
"grunt-contrib-uglify": "~0.2.2",
"grunt-karma": "~0.4.5",
"gulp": "^3.8.10",
"gulp-connect": "^2.2.0",
"gulp-util": "^3.0.1"
},
"scripts": {
"test": "grunt"
Expand Down

0 comments on commit f3fb4e0

Please sign in to comment.