-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d020a75
commit e50d1aa
Showing
61 changed files
with
1,613 additions
and
492 deletions.
There are no files selected for viewing
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -25,7 +25,6 @@ | |
} | ||
} | ||
|
||
|
||
.wcc-showcase-slide-item{ | ||
position: relative; | ||
.wcc-showcase-slide-item__cat-thumbnails{ | ||
|
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -76,4 +76,3 @@ Thumbs.db | |
*.*.map | ||
|
||
# Build related files | ||
/src |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -54,3 +54,4 @@ contributors.md | |
#build | ||
lib | ||
assets | ||
/trunk |
This file was deleted.
Oops, something went wrong.
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,192 +1,54 @@ | ||
/* jshint node:true */ | ||
module.exports = function (grunt) { | ||
module.exports = function( grunt ) { | ||
'use strict'; | ||
var sass = require('node-sass'); | ||
grunt.initConfig({ | ||
|
||
// Setting folder templates. | ||
dirs: { | ||
css: 'assets/css', | ||
fonts: 'assets/fonts', | ||
images: 'assets/images', | ||
js: 'assets/js' | ||
}, | ||
// Load all grunt tasks matching the `grunt-*` pattern. | ||
require( 'load-grunt-tasks' )( grunt ); | ||
|
||
// JavaScript linting with JSHint. | ||
jshint: { | ||
options: { | ||
jshintrc: '.jshintrc' | ||
}, | ||
all: [ | ||
'Gruntfile.js', | ||
'<%= dirs.js %>/*.js', | ||
'!<%= dirs.js %>/image-liquid.js', | ||
'!<%= dirs.js %>/*.min.js' | ||
] | ||
}, | ||
|
||
// Minify .js files. | ||
uglify: { | ||
options: { | ||
ie8: true, | ||
parse: { | ||
strict: false | ||
}, | ||
output: { | ||
comments: /@license|@preserve|^!/ | ||
} | ||
}, | ||
dist: { | ||
files: [{ | ||
expand: true, | ||
cwd: '<%= dirs.js %>/', | ||
src: [ | ||
'*.js', | ||
'!*.min.js' | ||
], | ||
dest: '<%= dirs.js %>/', | ||
ext: '.min.js' | ||
}] | ||
}, | ||
vendor: { | ||
files: { | ||
'<%= dirs.js %>/bundle.min.js': ['<%= dirs.js %>/image-liquid.js', '<%= dirs.js %>/slick.min.js', '<%= dirs.js %>/wc-category-showcase.min.js'] | ||
} | ||
} | ||
}, | ||
|
||
// Compile all .scss files. | ||
sass: { | ||
options: { | ||
implementation: sass, | ||
sourceMap: false, | ||
outputStyle: 'compressed' | ||
}, | ||
dist: { | ||
files: [{ | ||
expand: true, | ||
cwd: '<%= dirs.css %>/', | ||
src: ['*.scss'], | ||
dest: '<%= dirs.css %>/', | ||
ext: '.css' | ||
}] | ||
} | ||
}, | ||
|
||
// Autoprefixer. | ||
postcss: { | ||
options: { | ||
processors: [ | ||
require('autoprefixer')() | ||
] | ||
}, | ||
dist: { | ||
src: [ | ||
'<%= dirs.css %>/*.css' | ||
] | ||
} | ||
}, | ||
// Show elapsed time. | ||
require( '@lodder/time-grunt' )( grunt ); | ||
|
||
// Minify all .css files. | ||
cssmin: { | ||
minify: { | ||
expand: true, | ||
cwd: '<%= dirs.css %>/', | ||
src: ['*.css'], | ||
dest: '<%= dirs.css %>/', | ||
ext: '.css' | ||
} | ||
}, | ||
|
||
// Concatenate files. | ||
concat: { | ||
admin: { | ||
files: { | ||
// '<%= dirs.css %>/admin.css' : ['<%= dirs.css %>/select2.css', '<%= dirs.css %>/admin.css'], | ||
// '<%= dirs.css %>/admin-rtl.css' : ['<%= dirs.css %>/select2.css', '<%= dirs.css %>/admin-rtl.css'] | ||
} | ||
} | ||
}, | ||
|
||
// Watch changes for assets. | ||
watch: { | ||
css: { | ||
files: ['<%= dirs.css %>/*.scss'], | ||
tasks: ['sass', 'postcss', 'cssmin', 'concat'] | ||
}, | ||
js: { | ||
files: [ | ||
'<%= dirs.js %>/*js', | ||
'<%= dirs.js %>/*js', | ||
'!<%= dirs.js %>/*.min.js' | ||
], | ||
tasks: ['jshint', 'uglify'] | ||
} | ||
}, | ||
|
||
// Generate POT files. | ||
makepot: { | ||
options: { | ||
type: 'wp-plugin', | ||
domainPath: 'i18n/languages', | ||
potHeaders: { | ||
'language-team': 'LANGUAGE <EMAIL@ADDRESS>' | ||
} | ||
}, | ||
dist: { | ||
// Project configuration. | ||
grunt.initConfig( | ||
{ | ||
addtextdomain: { | ||
options: { | ||
potFilename: 'wc-category-showcase.pot', | ||
exclude: [ | ||
'includes/class-updater.php', | ||
'apigen/.*', | ||
'vendor/.*', | ||
'tests/.*', | ||
'tmp/.*' | ||
] | ||
} | ||
} | ||
}, | ||
|
||
// Check textdomain errors. | ||
checktextdomain: { | ||
options: { | ||
text_domain: 'wc-category-showcase', | ||
keywords: [ | ||
'__:1,2d', | ||
'_e:1,2d', | ||
'_x:1,2c,3d', | ||
'esc_html__:1,2d', | ||
'esc_html_e:1,2d', | ||
'esc_html_x:1,2c,3d', | ||
'esc_attr__:1,2d', | ||
'esc_attr_e:1,2d', | ||
'esc_attr_x:1,2c,3d', | ||
'_ex:1,2c,3d', | ||
'_n:1,2,4d', | ||
'_nx:1,2,4c,5d', | ||
'_n_noop:1,2,3d', | ||
'_nx_noop:1,2,3c,4d' | ||
] | ||
expand: true, | ||
text_domain: 'wc-category-showcase', | ||
updateDomains: [ 'textdomain', 'bytekit-textdomain' ], | ||
}, | ||
plugin: { | ||
files: { | ||
src: [ | ||
'*.php', | ||
'**/*.php', | ||
'!node_modules/**', | ||
'!tests/**', | ||
'!vendor/**', | ||
'!src/**', | ||
], | ||
}, | ||
}, | ||
}, | ||
files: { | ||
src: [ | ||
'**/*.php', | ||
'!apigen/**', | ||
'!includes/libraries/**', | ||
'!node_modules/**', | ||
'!tests/**', | ||
'!vendor/**', | ||
'!tmp/**', | ||
'!includes/class-insights.php', | ||
'!includes/metabox/class-metabox.php' | ||
], | ||
expand: true | ||
makepot: { | ||
target: { | ||
options: { | ||
domainPath: 'languages', | ||
exclude: [ 'packages/*', '.git/*', 'node_modules/*', 'tests/*' ], | ||
mainFile: 'wc-category-showcase.php', | ||
potFilename: 'wc-category-showcase.pot', | ||
potHeaders: { | ||
'report-msgid-bugs-to': 'https://pluginever.com/support/', | ||
poedit: true, | ||
'x-poedit-keywordslist': true, | ||
}, | ||
type: 'wp-plugin', | ||
updateTimestamp: false, | ||
}, | ||
}, | ||
} | ||
} | ||
}); | ||
// Saves having to declare each dependency | ||
require( 'matchdep' ).filterDev( 'grunt-*' ).forEach( grunt.loadNpmTasks ); | ||
); | ||
|
||
// Register tasks. | ||
grunt.registerTask('build', ['jshint', 'uglify', 'sass', 'postcss', 'cssmin', 'concat', 'checktextdomain', 'makepot']); | ||
grunt.registerTask( 'i18n', [ 'addtextdomain', 'makepot' ] ); | ||
grunt.registerTask( 'build', [ 'i18n' ] ); | ||
}; |
Oops, something went wrong.