Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzik committed May 10, 2017
2 parents 2e3bf2a + 5fdab96 commit 87522f6
Show file tree
Hide file tree
Showing 29 changed files with 754 additions and 738 deletions.
630 changes: 630 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

26 changes: 16 additions & 10 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ module.exports = function(grunt) {
options: {
syntax: require('postcss-scss'),
processors: [
require('postcss-flexbugs-fixes')
require('postcss-flexbugs-fixes'),
require('postcss-line-height-px-to-unitless'),
require('postcss-gradient-transparency-fix')
]
},
src: 'sass/**/*.scss'
Expand All @@ -36,14 +38,14 @@ module.exports = function(grunt) {
options: {
processors: [
require('postcss-import'),
require('postcss-assets'),
require('postcss-color-rgba-fallback'),
require('postcss-easings'),
require('postcss-focus'),
require('postcss-assets'),
require('postcss-will-change'),
require('autoprefixer')({
cascade: true,
flexbox: false
}),
})
]
},
src: 'build/**/*.css'
Expand All @@ -53,8 +55,7 @@ module.exports = function(grunt) {
sass: {
options: {
style: 'expanded',
precision: 3,
sourcemap: 'none'
precision: 3
},
build: {
files: {
Expand All @@ -75,11 +76,16 @@ module.exports = function(grunt) {
}
},

shell: {
prettier: {
command: 'prettier --use-tabs --single-quote --parser=flow --write js/**/*.js'
}
},

concat: {
build: {
src: [
'bower_components/include-media-export/include-media.js',
'bower_components/js-cookie/src/js.cookie.js',
'bower_components/vanilla-fitvids/dist/fitvids.js',
'js/scripts.js'
],
Expand All @@ -97,8 +103,7 @@ module.exports = function(grunt) {

uglify: {
options: {
preserveComments: 'some',
sourceMap: false
preserveComments: 'some'
},
build: {
files: {
Expand Down Expand Up @@ -166,6 +171,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-imagemin');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
Expand All @@ -176,6 +182,6 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-postcss');

grunt.registerTask('default', ['clean', 'imagemin', 'sass', 'concat', 'postcss:css', 'watch']);
grunt.registerTask('build', ['clean', 'imagemin', 'csscomb', 'postcss:scss', 'sass', 'jshint', 'concat', 'uglify', 'postcss:css', 'csso']);
grunt.registerTask('build', ['clean', 'imagemin', 'csscomb', 'postcss:scss', 'sass', 'jshint', 'shell', 'concat', 'uglify', 'postcss:css', 'csso']);

};
Loading

0 comments on commit 87522f6

Please sign in to comment.