Skip to content

Commit

Permalink
reorganization
Browse files Browse the repository at this point in the history
enqueue only when needed
work with core gallery shortcode instead of filter
  • Loading branch information
justin-peacock committed Oct 4, 2015
1 parent 7d8c311 commit 7b6d9ad
Show file tree
Hide file tree
Showing 83 changed files with 3,672 additions and 400 deletions.
44 changes: 40 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ module.exports = function (grunt) {
},
main: {
src: [
'bower_components/slick-carousel/slick/slick.js'
'bower_components/slick-carousel/slick/slick.js',
'js/src/init.js'
],
dest: 'js/device-mockups.js'
},
Expand Down Expand Up @@ -68,14 +69,49 @@ module.exports = function (grunt) {
dist: {
options: {
loadPath: [
'bower_components/bourbon/app/assets/stylesheets'
'bower_components/bourbon/app/assets/stylesheets',
'bower_components/slick-carousel/slick'
],
style: 'expanded',
sourcemap: 'none'
},
files: {
'inc/admin/device-mockups-admin.css': 'sass/device-mockups-admin.scss',
'device-mockups.css': 'sass/device-mockups.scss'
'css/device-mockups.css': 'sass/device-mockups.scss'
}
}
},
/**
* grunt-contrib-copy
*
* Copy files and folders
*
* @link https://www.npmjs.com/package/grunt-contrib-copy
*/
copy: {
fonts: {
expand: true,
filter: 'isFile',
flatten: true,
src: [
'bower_components/slick-carousel/slick/fonts/*'
],
dest: 'fonts/'
}
},
/**
* grunt-wp-i18n
*
* Internationalize WordPress themes and plugins.
*
* @link https://www.npmjs.com/package/grunt-wp-i18n
*/
makepot: {
prod: {
options: {
domainPath: '/languages/',
potFilename: '<%%= pkg.name %>.pot',
type: 'wp-plugin'
}
}
},
Expand Down Expand Up @@ -154,7 +190,7 @@ module.exports = function (grunt) {

grunt.registerTask('js', ['jshint', 'concat', 'notify:js']);

grunt.registerTask('default', ['css', 'js', 'notify:default']);
grunt.registerTask('default', ['copy', 'css', 'js', 'makepot', 'notify:default']);

grunt.util.linefeed = '\n';
};
Loading

0 comments on commit 7b6d9ad

Please sign in to comment.