This repository has been archived by the owner on Mar 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from Codeinwp/development
Added filters and hooks to improve child themes creation Rearange upsells in customize Added Grunt tasks and fixed all grunt issues
- Loading branch information
Showing
55 changed files
with
1,550 additions
and
1,845 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,8 @@ | ||
/* jshint node:true */ | ||
/* global require, process */ | ||
var timeGrunt = require('time-grunt'); | ||
var path = require('path'); | ||
var loadGruntConfig = require('load-grunt-config'); | ||
|
||
module.exports = function (grunt) { | ||
module.exports = function( grunt ) { | ||
'use strict'; | ||
|
||
timeGrunt(grunt); | ||
|
||
var project = { | ||
paths: { | ||
get config() { | ||
return this.grunt; | ||
}, | ||
css: 'css/', | ||
grunt: 'grunt/', | ||
images: 'images/', | ||
js: 'js/', | ||
languages: 'languages/', | ||
logs: 'logs/' | ||
}, | ||
files: { | ||
css: [ | ||
'css/*.css', | ||
'!css/*.min.css', | ||
'!css/vendor/*.css' | ||
], | ||
js: [ | ||
'*.js', | ||
'grunt/**/*.js', | ||
'js/**/*.js', | ||
'js/**/*.js', | ||
'!js/**/*.min.js', | ||
'!js/vendor/*.js' | ||
], | ||
php: [ | ||
'**/*.php', | ||
'!node_modules/**/*.php', | ||
'!inc/admin/**/*.php', | ||
'!class-tgm-plugin-activation.php' | ||
], | ||
get config() { | ||
return project.paths.config + '*.js'; | ||
}, | ||
grunt: 'Gruntfile.js' | ||
}, | ||
pkg: grunt.file.readJSON('package.json') | ||
}; | ||
|
||
loadGruntConfig(grunt, { | ||
configPath: path.join(process.cwd(), project.paths.config), | ||
data: project, | ||
jitGrunt: { | ||
staticMappings: { | ||
wpcss: 'grunt-wp-css', | ||
addtextdomain: 'grunt-wp-i18n', | ||
makepot: 'grunt-wp-i18n' | ||
} | ||
} | ||
}); | ||
var loader = require( 'load-project-config' ), | ||
config = require( 'grunt-theme-fleet' ); | ||
loader( grunt, config ).init(); | ||
}; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.