Skip to content

Commit

Permalink
Use Git Archive instread of Grunt Compress and remove outdated it_IT
Browse files Browse the repository at this point in the history
  • Loading branch information
imath committed Jul 19, 2017
1 parent bd4499a commit a2aee52
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 200 deletions.
41 changes: 10 additions & 31 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,7 @@ module.exports = function( grunt ) {
extDot: 'last',
expand: true,
ext: '.min.css',
src: ['css/*.css', '!*.min.css'],
options: {
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("UTC:yyyy-mm-dd h:MM:ss TT Z") %> - ' +
'https://imathi.eu/tag/reshare */'
}
src: ['css/*.css', '!*.min.css']
}
},
jsvalidate:{
Expand All @@ -93,31 +88,13 @@ module.exports = function( grunt ) {
verbose: false
}
},
compress: {
main: {
'git-archive': {
archive: {
options: {
archive: '<%= pkg.name %>.zip'
},
files: [{
expand: true,
src: [
'**/*',
'!node_modules/**',
'!npm-debug.log',
'!.editorconfig',
'!.git/**',
'!.gitignore',
'!.gitattributes',
'!grunt/**',
'!.jshintrc',
'!.jshintignore',
'!Gruntfile.js',
'!package.json',
'LICENSE',
'!icon.png'
],
dest: './'
}]
'format' : 'zip',
'output' : '<%= pkg.name %>.zip',
'tree-ish': 'HEAD@{0}'
}
}
}
} );
Expand All @@ -127,9 +104,11 @@ module.exports = function( grunt ) {
*/
grunt.registerTask( 'jstest', ['jsvalidate', 'jshint'] );

grunt.registerTask( 'zip', ['git-archive'] );

grunt.registerTask( 'shrink', ['cssmin', 'uglify'] );

grunt.registerTask( 'release', ['checktextdomain', 'makepot', 'clean', 'jstest', 'shrink', 'compress'] );
grunt.registerTask( 'release', ['checktextdomain', 'makepot', 'clean', 'jstest', 'shrink', 'git-archive'] );

// Default task.
grunt.registerTask( 'default', ['commit'] );
Expand Down
2 changes: 1 addition & 1 deletion js/notifications.min.js

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

2 changes: 1 addition & 1 deletion js/posts.min.js

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

2 changes: 1 addition & 1 deletion js/request.min.js

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

2 changes: 1 addition & 1 deletion js/script.min.js

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

Loading

0 comments on commit a2aee52

Please sign in to comment.