forked from kudago/smart-app-banner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated build process, added material design, added flexbox
- Loading branch information
1 parent
d91f01f
commit a99d42d
Showing
48 changed files
with
15,359 additions
and
609 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
var gulp = require('gulp'); | ||
var sourcemaps = require('gulp-sourcemaps'); | ||
var rename = require('gulp-rename'); | ||
var sass = require('gulp-sass'); | ||
var browserSync = require('browser-sync').create(); | ||
var autoprefixer = require('gulp-autoprefixer'); | ||
var watch = require('gulp-watch'); | ||
// var postcss = require('gulp-postcss'); | ||
|
||
gulp.task('sass', function() { | ||
return gulp.src("./sass/index.scss") | ||
.pipe(sass().on('error', sass.logError)) | ||
.pipe(autoprefixer({ | ||
browsers: ['last 3 versions'], | ||
cascade: false | ||
})) | ||
.pipe(sourcemaps.write('.')) | ||
.pipe(rename('smart-app-banner.css')) | ||
.pipe(gulp.dest('./dist')) | ||
.pipe(browserSync.stream()); | ||
}); | ||
gulp.task('watch:sass', function() { | ||
gulp.watch("./resources/sass/**/*.scss", ['sass']); | ||
}); | ||
gulp.task('serve', ['sass'], function() { | ||
|
||
browserSync.init({ | ||
server: { | ||
baseDir: "./test", | ||
routes: { | ||
"/dist": "dist" | ||
} | ||
} | ||
}); | ||
|
||
gulp.watch("./sass/**/*.scss", ['sass']); | ||
// gulp.watch("./index.js").on('change', browserSync.reload); | ||
|
||
}); | ||
gulp.task('default', ['sass', 'watch:sass']); |
This file contains 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
Oops, something went wrong.