Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #544 from olefredrik/feature/autoprefixer
Browse files Browse the repository at this point in the history
Feature/autoprefixer
  • Loading branch information
olefredrik committed Nov 7, 2015
2 parents 1768670 + d41a9b5 commit ad9e2ac
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 47 deletions.
17 changes: 16 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,20 @@ module.exports = function (grunt) {

},

postcss: {
options: {
map: true,
processors: [
require('pixrem')(), // add fallbacks for rem units
require('autoprefixer')({browsers: 'last 2 versions'}), // add vendor prefixes
require('cssnano')() // minify the result
]
},
dist: {
src: 'assets/stylesheets/foundation.css'
}
},

browserSync: {
dev: {
bsFiles: {
Expand All @@ -190,6 +204,7 @@ module.exports = function (grunt) {
});

grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-postcss');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
Expand All @@ -199,7 +214,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-browser-sync');

grunt.registerTask('package', ['compress:main']);
grunt.registerTask('build', ['copy', 'string-replace:fontawesome', 'sass', 'concat', 'uglify']);
grunt.registerTask('build', ['copy', 'string-replace:fontawesome', 'sass', 'postcss', 'concat', 'uglify']);
grunt.registerTask('browser-sync', ['browserSync', 'watch']);
grunt.registerTask('default', ['watch']);
};
94 changes: 49 additions & 45 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,51 @@
{
"name": "foundationpress",
"title": "FoundationPress",
"version": "1.6.0",
"description": "FoundationPress is a WordPress starter theme based on Foundation 5 by Zurb",
"keywords": [
"FoundationPress",
"WordPress",
"starter theme",
"Foundation",
"semantic",
"mobile first",
"customizable",
"responsive"
],
"homepage": "http://foundationpress.olefredrik.com/",
"bugs": "https://github.com/olefredrik/FoundationPress/issues",
"license": "MIT",
"main": "Gruntfile.js",
"repository": {
"type": "git",
"url": "https://github.com/olefredrik/FoundationPress.git"
},
"devDependencies": {
"bower": "~1.6.4",
"grunt": "~0.4.5",
"grunt-browser-sync": "^2.1.3",
"grunt-cli": "^0.1.13",
"grunt-contrib-compress": "~0.14.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-uglify": "~0.2.7",
"grunt-contrib-watch": "~0.5.3",
"grunt-sass": "~1.1.0",
"grunt-string-replace": "~0.2.7",
"node-sass": "~3.4.1",
"time-grunt": "~1.1.0"
},
"scripts": {
"build": "grunt build",
"grunt": "grunt",
"postinstall": "bower install && grunt build",
"watch": "grunt watch",
"browsersync": "grunt browser-sync",
"package": "grunt package"
}
"name": "foundationpress",
"title": "FoundationPress",
"version": "1.7.0",
"description": "FoundationPress is a WordPress starter theme based on Foundation 5 by Zurb",
"keywords": [
"FoundationPress",
"WordPress",
"starter theme",
"Foundation",
"semantic",
"mobile first",
"customizable",
"responsive"
],
"homepage": "http://foundationpress.olefredrik.com/",
"bugs": "https://github.com/olefredrik/FoundationPress/issues",
"license": "MIT",
"main": "Gruntfile.js",
"repository": {
"type": "git",
"url": "https://github.com/olefredrik/FoundationPress.git"
},
"devDependencies": {
"autoprefixer": "^6.1.0",
"bower": "~1.6.4",
"cssnano": "^3.3.2",
"grunt": "~0.4.5",
"grunt-browser-sync": "^2.1.3",
"grunt-cli": "^0.1.13",
"grunt-contrib-compress": "~0.14.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-uglify": "~0.2.7",
"grunt-contrib-watch": "~0.5.3",
"grunt-postcss": "^0.7.1",
"grunt-sass": "~1.1.0",
"grunt-string-replace": "~0.2.7",
"node-sass": "~3.4.1",
"pixrem": "^3.0.0",
"time-grunt": "~1.1.0"
},
"scripts": {
"build": "grunt build",
"grunt": "grunt",
"postinstall": "bower install && grunt build",
"watch": "grunt watch",
"browsersync": "grunt browser-sync",
"package": "grunt package"
}
}
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme Name: FoundationPress
Theme URI: http://foundationpress.olefredrik.com
Github Theme URI: https://github.com/olefredrik/FoundationPress
Description: FoundationPress is a WordPress starter theme based on Foundation 5 by Zurb
Version: 1.6.0
Version: 1.7.0
Author: Ole Fredrik Lie
Author URI: http://olefredrik.com/
Expand Down

0 comments on commit ad9e2ac

Please sign in to comment.