Skip to content

Commit

Permalink
removed imported sass and moved it to NPM import
Browse files Browse the repository at this point in the history
  • Loading branch information
tomascordero committed Jan 24, 2019
1 parent 2ea0e01 commit abe7855
Show file tree
Hide file tree
Showing 45 changed files with 30 additions and 6,205 deletions.
1 change: 1 addition & 0 deletions dist/smart-app-banner.min.css

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var watch = require('gulp-watch');

gulp.task('sass', function() {
return gulp.src("./sass/index.scss")
.pipe(sass().on('error', sass.logError))
.pipe(sass({includePaths: ["./node_modules/materialize-css/sass"]}).on('error', sass.logError))
.pipe(autoprefixer({
browsers: ['last 3 versions'],
cascade: false
Expand All @@ -19,6 +19,18 @@ gulp.task('sass', function() {
.pipe(gulp.dest('./dist'))
.pipe(browserSync.stream());
});
gulp.task('sass:minify', function(){
return gulp.src("./sass/index.scss")
.pipe(sass({includePaths: ["./node_modules/materialize-css/sass"], outputStyle: "compressed"}).on('error', sass.logError))
.pipe(autoprefixer({
browsers: ['last 3 versions'],
cascade: false
}))
.pipe(rename('smart-app-banner.min.css'))
.pipe(gulp.dest('./dist'))
.pipe(browserSync.stream());
});
gulp.task('build:prod', ['sass:minify', 'sass']);
gulp.task('watch:sass', function() {
gulp.watch("./resources/sass/**/*.scss", ['sass']);
});
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Smart banner for Android or iOS",
"main": "index.js",
"scripts": {
"build": "browserify index.js -s SmartBanner | ccjs - > dist/smart-app-banner.js | gulp sass",
"build": "browserify index.js -s SmartBanner | ccjs - > dist/smart-app-banner.js | gulp build:prod",
"test": "gulp serve",
"lint": "eslint index.js"
},
Expand Down Expand Up @@ -54,6 +54,7 @@
"gulp-autoprefixer": "^6.0.0",
"gulp-notify": "^3.2.0",
"gulp-sass": "^4.0.2",
"gulp-sourcemaps": "^2.6.4"
"gulp-sourcemaps": "^2.6.4",
"materialize-css": "^1.0.0-rc.2"
}
}
55 changes: 0 additions & 55 deletions sass/components/_badges.scss

This file was deleted.

Loading

0 comments on commit abe7855

Please sign in to comment.