Skip to content

Commit

Permalink
Cleanup Gruntfile and bump version to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyscarborough committed Jun 19, 2021
1 parent 2626db9 commit ad974af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 38 deletions.
42 changes: 5 additions & 37 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var config = {
dist: 'dist',
node_modules: 'node_modules',
src: 'src',
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - Copyright 2015 <%= pkg.author %> */\n'
banner: '/* Github Activity Stream - v<%= pkg.version %> \n * https://github.com/caseyscarborough/github-activity \n *\n * Copyright 2015-<%= grunt.template.today("yyyy") %> <%= pkg.author %> \n * MIT License\n */\n'
};

var pkg = require('./package.json');
Expand All @@ -11,35 +11,6 @@ module.exports = function(grunt) {
grunt.initConfig({
config: config,
pkg: pkg,
copy: {
dist: {
files: [{
expand: true,
cwd: '<%= config.node_modules %>/octicons/octicons',
src: 'octicons.ttf',
dest: '<%= config.dist %>/octicons'
},
{
expand: true,
cwd: '<%= config.node_modules %>/octicons/octicons',
src: 'octicons.woff',
dest: '<%= config.dist %>/octicons'
},
{
expand: true,
cwd: '<%= config.node_modules %>/octicons/octicons',
src: 'octicons.eot',
dest: '<%= config.dist %>/octicons'
},
{
expand: true,
cwd: '<%= config.node_modules %>/octicons/octicons',
src: 'octicons.svg',
dest: '<%= config.dist %>/octicons'
}
]
}
},
cssmin: {
add_banner: {
options: {
Expand All @@ -49,9 +20,9 @@ module.exports = function(grunt) {
'<%= config.dist %>/github-activity.min.css': [
'<%= config.src %>/github-activity.css'
],
'<%= config.dist %>/octicons/octicons.min.css': [
'<%= config.node_modules %>/octicons/octicons/octicons.css'
]
'<%= config.dist %>/github-activity.dark.min.css': [
'<%= config.src %>/github-activity.dark.css'
],
}
}
},
Expand All @@ -64,9 +35,6 @@ module.exports = function(grunt) {
'<%= config.dist %>/github-activity.min.js': [
'<%= config.src %>/github-activity.js'
],
'<%= config.dist %>/mustache/mustache.min.js': [
'<%= config.node_modules %>/mustache/mustache.js'
]
}
}
},
Expand All @@ -83,5 +51,5 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask( "wipe", [ "clean" ])
grunt.registerTask( "default", [ "copy", "cssmin", "uglify:dist" ] );
grunt.registerTask( "default", [ "cssmin", "uglify:dist" ] );
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "github-activity-feed",
"version": "0.2.0",
"version": "0.3.0",
"description": "A widget for displaying GitHub activity for a user.",
"main": "Gruntfile.js",
"devDependencies": {
Expand Down

0 comments on commit ad974af

Please sign in to comment.