Skip to content

Commit

Permalink
Updated build process, added material design, added flexbox
Browse files Browse the repository at this point in the history
  • Loading branch information
tomascordero committed Jan 15, 2019
1 parent d91f01f commit a99d42d
Show file tree
Hide file tree
Showing 48 changed files with 15,359 additions and 609 deletions.
2,248 changes: 1,981 additions & 267 deletions dist/smart-app-banner.css

Large diffs are not rendered by default.

94 changes: 48 additions & 46 deletions dist/smart-app-banner.js

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions gulpfile.js
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']);
292 changes: 0 additions & 292 deletions index.css

This file was deleted.

4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ SmartBanner.prototype = {
'<div>' + this.options.author + '</div>' +
'<span>' + inStore + '</span>' +
'</div>' +
'<a href="' + link + '" class="smartbanner-button">' +
'<span class="smartbanner-button-text">' + this.options.button + '</span>' +
'<a href="' + link + '" class="smartbanner-button btn blue">' +
'<span class="smartbanner-button-text ">' + this.options.button + '</span>' +
'</a>' +
'</div>';

Expand Down
Loading

0 comments on commit a99d42d

Please sign in to comment.