Skip to content

Commit

Permalink
Done with webserver and build
Browse files Browse the repository at this point in the history
  • Loading branch information
theoomoregbee committed Jul 17, 2016
1 parent 84981f6 commit 15d606f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions angular-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
* @param input
*/
$scope.update=function (input) {
//input.geneated_count=$scope.selected.length;
//input.generated_count=$scope.selected.length;
$scope.selected.push(angular.copy(input));
$scope.input="";
$scope.hasError=false;
Expand Down Expand Up @@ -238,8 +238,8 @@
};

angular.module('angular-tag',[])
.directive('tagMe', directive)
.directive('focusMe',directive_focus)
.directive('tagMe', [directive])
.directive('focusMe',[directive_focus])

}());

4 changes: 2 additions & 2 deletions example.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta charset="UTF-8">
<title>Tag Test</title>
<script src="bower_components/angular/angular.js"></script>
<script src="angular-tag.js"></script>
<link rel="stylesheet" href="angular-tag.css">
<script src="min/angular-tag.min.js"></script>
<link rel="stylesheet" href="min/angular-tag.min.css">
</link>

<script >
Expand Down
14 changes: 8 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ var webserver = require('gulp-webserver');


gulp.task('webserver', function() {
gulp.src('/')
gulp.src('.')
.pipe(webserver({
livereload: true,
directoryListing: true,
open: true
open: true,
port:8081
}));
});

Expand Down Expand Up @@ -76,9 +77,10 @@ gulp.task('clean-css', function () {



gulp.task('watch', ['webserver'], function(){
gulp.watch('*/*.js', ['build-js']);
gulp.watch('*/*.css', ['build-css']);
gulp.task('watch', function(){
gulp.watch('*.js', ['build-js']);
gulp.watch('*.css', ['build-css']);
gulp.watch('**/*.html', ['webserver']);
});

gulp.task("serve",['watch']);
gulp.task("serve",['watch','webserver']);

0 comments on commit 15d606f

Please sign in to comment.