From ad974aff71cc65ab52c45ebc86ca2ebbfc14b8c6 Mon Sep 17 00:00:00 2001 From: Casey Scarborough Date: Fri, 18 Jun 2021 22:03:56 -0400 Subject: [PATCH] Cleanup Gruntfile and bump version to 0.3.0 --- Gruntfile.js | 42 +++++------------------------------------- package.json | 2 +- 2 files changed, 6 insertions(+), 38 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index fc966a0..e1fe54b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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'); @@ -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: { @@ -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' + ], } } }, @@ -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' - ] } } }, @@ -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" ] ); }; \ No newline at end of file diff --git a/package.json b/package.json index badd6fb..4bd7170 100644 --- a/package.json +++ b/package.json @@ -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": {