Created
March 6, 2019 22:58
-
-
Save seothemes/01cc987e6b2c876366b79ec827624447 to your computer and use it in GitHub Desktop.
Corporate Pro Gulpfile and package.json (Removed in 1.1.1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Gulp task config file. | |
*/ | |
'use strict'; | |
var pkg = require( './package.json' ), | |
gulp = require( 'gulp' ), | |
globs = require( 'gulp-src-ordered-globs' ), | |
toolkit = require( 'gulp-wp-toolkit' ), | |
zip = require( 'gulp-zip' ); | |
toolkit.extendConfig( | |
{ | |
theme: { | |
name: pkg.theme.name, | |
themeuri: pkg.theme.uri, | |
description: pkg.description, | |
author: pkg.author, | |
authoruri: pkg.theme.authoruri, | |
version: pkg.version, | |
license: pkg.license, | |
licenseuri: pkg.theme.licenseuri, | |
tags: pkg.theme.tags, | |
textdomain: pkg.theme.textdomain, | |
domainpath: pkg.theme.domainpath, | |
template: pkg.theme.template, | |
notes: pkg.theme.notes | |
}, | |
src: { | |
php: ['**/*.php', '!includes/tgmpa.php'], | |
images: 'assets/images/**/*', | |
scss: 'assets/styles/*.scss', | |
css: ['**/*.css', '!node_modules/**'], | |
js: ['assets/scripts/**/*.js','!assets/scripts/min/*', '!node_modules/**'], | |
json: ['**/*.json', '!node_modules/**'], | |
i18n: './languages/', | |
zip: [ | |
'./**/*', | |
'!./*.zip', | |
'!./git', | |
'!./git/**/*', | |
'!./node_modules', | |
'!./node_modules/**/*', | |
] | |
}, | |
js: { | |
'customize': [ | |
'assets/scripts/customize.js', | |
], | |
'jquery.fitvids': [ | |
'assets/scripts/jquery.fitvids.js', | |
], | |
'menus': [ | |
'assets/scripts/menus.js', | |
], | |
'modernizr': [ | |
'assets/scripts/modernizr.js', | |
], | |
'slick': [ | |
'assets/scripts/slick.js', | |
], | |
'theme': [ | |
'assets/scripts/theme.js', | |
], | |
}, | |
css: { | |
basefontsize: 10, // Used by postcss-pxtorem. | |
remmediaquery: false, | |
scss: { | |
'style': { | |
src: 'assets/styles/style.scss', | |
dest: './', | |
outputStyle: 'expanded' | |
}, | |
'woocommerce': { | |
src: 'assets/styles/woocommerce.scss', | |
dest: './', | |
outputStyle: 'expanded' | |
} | |
} | |
}, | |
dest: { | |
i18npo: './languages/', | |
i18nmo: './languages/', | |
images: './assets/images/', | |
js: './assets/scripts/min/' | |
}, | |
server: { | |
proxy: 'https://corporate.test', | |
host: 'corporate.test', | |
open: 'external', | |
port: '8000', | |
https: { | |
'key': '/Users/seothemes/.config/valet/Certificates/corporate.test.key', | |
'cert': '/Users/seothemes/.config/valet/Certificates/corporate.test.crt' | |
} | |
} | |
} | |
); | |
toolkit.extendTasks( gulp, { | |
'zip': function() { | |
return globs(toolkit.config.src.zip, {base: './'}). | |
pipe(zip(pkg.name + '-' + pkg.version + '.zip')). | |
pipe(gulp.dest('../')); | |
} | |
} ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "corporate-pro", | |
"version": "1.1.1", | |
"description": "The Corporate Pro theme for the Genesis Framework.", | |
"author": "SEO Themes", | |
"license": "GPL-3.0-or-later", | |
"main": "Gulpfile.js", | |
"dependencies": {}, | |
"devDependencies": { | |
"bourbon": "^5.1.0", | |
"gulp": "^3.9.1", | |
"gulp-src-ordered-globs": "^1.0.3", | |
"gulp-wp-toolkit": "^2.3.2", | |
"gulp-zip": "^4.1.0", | |
"mqkit": "^1.0.3", | |
"prettier": "^1.13.4", | |
"prettier-stylelint": "^0.4.2", | |
"stylelint-config-recommended-scss": "^3.2.0", | |
"stylelint-config-wordpress": "^13.1.0", | |
"stylelint-order": "^0.8.1" | |
}, | |
"theme": { | |
"name": "Corporate Pro", | |
"uri": "https://seothemes.com/themes/corporate-pro/", | |
"authoruri": "https://seothemes.com", | |
"licenseuri": "http://www.gnu.org/licenses/gpl-3.0.html", | |
"domainpath": "/languages", | |
"textdomain": "corporate-pro", | |
"template": "genesis", | |
"tags": "one-column, two-columns, left-sidebar, right-sidebar, accessibility-ready, custom-logo, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready" | |
}, | |
"repository": { | |
"type": "git", | |
"url": "git+https://github.com/seothemes/corporate-pro" | |
}, | |
"scripts": { | |
"zip": "git archive -o corporate-pro.zip --prefix=corporate-pro/ HEAD" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment