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 #1024 from olefredrik/dependencies
Browse files Browse the repository at this point in the history
Dependencies
  • Loading branch information
olefredrik authored Aug 6, 2017
2 parents 89f6c92 + ac9109c commit b16cc95
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
**Please List the Following:**
* OS & version:
* Node version (node -v) [Node v4+ is required] :
* Foundation version (bower list) :
* FoundationPress version (see line 3 in package.json):
* Foundation version (see dependencies in package.json) :

**Include Test Case** (if applicable):
Give us a link to a CodePen or JSFiddle that recreates the issue.
Expand Down
8 changes: 0 additions & 8 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ COMPATIBILITY:
- "ie >= 9"
- "ios >= 7"

# UnCSS will use these settings
UNCSS_OPTIONS:
html:
- "**/*.html"
ignore:
- !!js/regexp .foundation-mq
- !!js/regexp ^\.is-.*

# Gulp will reference these paths when it copies files
PATHS:
# Path to dist folder
Expand Down
5 changes: 2 additions & 3 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const $ = plugins();
const PRODUCTION = !!(yargs.argv.production);

// Load settings from settings.yml
const { COMPATIBILITY, UNCSS_OPTIONS, PATHS } = loadConfig();
const { COMPATIBILITY, PATHS } = loadConfig();

function loadConfig() {
let ymlFile = fs.readFileSync('config.yml', 'utf8');
Expand Down Expand Up @@ -62,8 +62,7 @@ function sass() {
.pipe($.autoprefixer({
browsers: COMPATIBILITY
}))
// Comment in the pipe below to run UnCSS in production
//.pipe($.if(PRODUCTION, $.uncss(UNCSS_OPTIONS)))

.pipe($.if(PRODUCTION, $.cleanCss({ compatibility: 'ie9' })))
.pipe($.if(!PRODUCTION, $.sourcemaps.write()))
.pipe(gulp.dest(PATHS.dist + '/assets/css'))
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"title": "FoundationPress",
"version": "2.10.1",
"description": "FoundationPress is a WordPress starter theme based on Foundation 6 by Zurb",
"homepage": "https://foundationpress.olefredrik.com",
"license": "MIT",
"main": "gulpfile.js",

Expand Down Expand Up @@ -48,7 +49,6 @@
"gulp-sass": "^2.1.0",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.2.0",
"gulp-uncss": "^1.0.1",
"js-yaml": "^3.4.6",
"panini": "^1.3.0",
"rimraf": "^2.4.3",
Expand All @@ -68,10 +68,6 @@
"url": "https://github.com/olefredrik/foundationpress/issues"
},

"homepage": {
"url": "https://foundationpress.olefredrik.com/"
},

"babel": {
"presets": [
"es2015"
Expand Down

0 comments on commit b16cc95

Please sign in to comment.