Skip to content

Commit f3fb4e0

Browse files
committed
chore(gulpfile, package, bower): added gulp tasks and updated packages
1 parent d342b33 commit f3fb4e0

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
.DS_Store
21
*.log
32
node_modules
43
components
54
bower_components
65
nbproject
76
.idea
87
.tmp
9-
demo.js

bower.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"bootstrap-select": ">=1.6"
2323
},
2424
"devDependencies": {
25+
"bootstrap": ">=3.0.0",
2526
"angular-mocks": "~1.3.0"
2627
}
2728
}

gulpfile.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
var path = require('path');
2+
var gulp = require('gulp');
3+
var connect = require('gulp-connect');
4+
5+
var paths = {
6+
src: 'src',
7+
dist: 'dist',
8+
demo: 'demo',
9+
test: 'test',
10+
scripts: path.join('src', '**', '*.js'),
11+
};
12+
13+
var files = {
14+
demo: path.join(paths.demo, '**', '*'),
15+
};
16+
17+
gulp.task('watch:demo', function () {
18+
gulp.watch(files.demo, function () {
19+
gulp.src(files.demo).pipe(connect.reload());
20+
});
21+
});
22+
23+
gulp.task('serve', ['watch:demo'], function () {
24+
connect.server({ livereload: true });
25+
});
26+

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
"version": "0.0.4",
44
"description": "Directive to wrap bootstrap-select",
55
"devDependencies": {
6-
"grunt-karma": "~0.4.5",
7-
"grunt-contrib-uglify": "~0.2.2",
6+
"dgeni": "^0.4.1",
7+
"grunt-contrib-clean": "~0.5.0",
88
"grunt-contrib-copy": "~0.4.1",
9-
"grunt-contrib-clean": "~0.5.0"
9+
"grunt-contrib-uglify": "~0.2.2",
10+
"grunt-karma": "~0.4.5",
11+
"gulp": "^3.8.10",
12+
"gulp-connect": "^2.2.0",
13+
"gulp-util": "^3.0.1"
1014
},
1115
"scripts": {
1216
"test": "grunt"

0 commit comments

Comments
 (0)