This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create a Browsersync instance | |
| var bs = require("browser-sync").create(); | |
| // Listen to change events on HTML and reload | |
| bs.watch("src/*.html").on("change", bs.reload); | |
| bs.watch("src/scripts/*.js").on("change", bs.reload); | |
| // Provide a callback to capture ALL events to CSS | |
| // files - then filter for 'change' and reload all | |
| // css files on the page. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| 'use strict'; | |
| angular.module('todoApp') | |
| .directive('enterPressed', function() { | |
| return { | |
| restrict: 'A', | |
| scope: { | |
| enterPressed: '&' | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Gulp 4 | |
| var gulp = require('gulp'); | |
| var using = require('gulp-using'); | |
| var grep = require('gulp-grep'); | |
| var changed = require('gulp-changed'); | |
| var del = require('del'); | |
| var coffee = require('gulp-coffee'); | |
| var less = require('gulp-less'); | |
| var coffeelint = require('gulp-coffeelint'); | |
| var sourcemaps = require('gulp-sourcemaps'); |