Skip to content

Commit

Permalink
Merge pull request #334 from katzwebservices/singleton-baby
Browse files Browse the repository at this point in the history
Version 1.7 / Template Singleton Update
  • Loading branch information
zackkatz committed Mar 10, 2015
2 parents c7eac88 + ae955fa commit a5e8601
Show file tree
Hide file tree
Showing 198 changed files with 10,600 additions and 6,409 deletions.
24 changes: 19 additions & 5 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function(grunt) {
files: [{
expand: true,
cwd: 'assets/css/scss',
src: ['*.scss','!admin-merge-tags.scss','!admin-tooltips.scss','!font.scss'],
src: ['*.scss','!admin-merge-tags.scss','!admin-tooltips.scss'],
dest: 'assets/css',
ext: '.css'
}]
Expand All @@ -28,6 +28,19 @@ module.exports = function(grunt) {
}
},

imagemin: {
dynamic: {
files: [{
options: {
optimizationLevel: 7
},
expand: true,
cwd: 'assets/images',
src: ['**/*.{png,jpg,gif}'],
dest: 'assets/images',
}]
}
},

uglify: {
options: { mangle: false },
Expand All @@ -54,7 +67,7 @@ module.exports = function(grunt) {
watch: {
main: {
files: ['assets/js/*.js','!assets/js/*.min.js','readme.txt'],
tasks: ['uglify:main','wp_readme_to_markdown']
tasks: ['uglify:main','wp_readme_to_markdown','newer:jshint:all']
},
extension_js: {
files: ['includes/extensions/**/*.js','!includes/extensions/**/*.min.js'],
Expand All @@ -67,7 +80,7 @@ module.exports = function(grunt) {
scss: {
files: ['assets/css/scss/*.scss'],
tasks: ['sass:dist']
},
}
},

dirs: {
Expand Down Expand Up @@ -106,8 +119,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-wp-readme-to-markdown');
grunt.loadNpmTasks('grunt-potomo');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-contrib-imagemin');
grunt.loadNpmTasks('grunt-newer');


grunt.registerTask( 'default', [ 'sass', 'uglify', 'exec:transifex','potomo', 'watch'] );
grunt.registerTask( 'default', [ 'sass', 'uglify', 'exec:transifex','potomo', 'imagemin', 'watch' ] );

};
2 changes: 1 addition & 1 deletion assets/css/admin-global.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a5e8601

Please sign in to comment.