From a9dff962f0d0ac56c328ff045dc8046c349dad7d Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 9 Feb 2016 17:50:46 -0500 Subject: [PATCH] grunt cleanup --- Gruntfile.js | 32 +------------------------------- package.json | 7 +++---- 2 files changed, 4 insertions(+), 35 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 657a99c..4d9ad74 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -6,7 +6,6 @@ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), - gitcreds: grunt.file.readJSON('.gitcreds'), uglify: { options: { compress: { @@ -145,36 +144,7 @@ module.exports = function(grunt) { compare: '==', }, }, - - // # version bump, commit, tag & push in git - release: { - options: { - push: true, - github: { - repo: '<%= pkg.repository.url %>', //put your user/repo here - usernameVar: '<%= gitcreds.username %>', //ENVIRONMENT VARIABLE that contains Github username - passwordVar: '<%= gitcreds.password %>' //ENVIRONMENT VARIABLE that contains Github password - } - } - }, - - bump: { - options: { - files: ['package.json','nav-menu-roles.php', 'readme.md', 'readme.txt'], - updateConfigs: ['pkg'], - commit: false, - commitMessage: 'Release v%VERSION%', - commitFiles: ['nav-menu-roles.php', 'readme.md', 'readme.txt'], - createTag: false, - tagName: 'v%VERSION%', - tagMessage: 'Version %VERSION%', - push: false, - pushTo: 'upstream', - gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d', - globalReplace: false - } - }, - + // bump version numbers replace: { Version: { diff --git a/package.json b/package.json index 2e34296..6028daf 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "1.7.6", "description": "Hide menu items based on user roles", "main": "Gruntfile.js", - "license": "GPL", + "license": "GPL-3.0", "repository": { "type": "git", "url": "https://github.com/helgatheviking/nav-menu-roles" @@ -15,12 +15,11 @@ "author": "helgatheviking", "devDependencies": { "grunt": "~0.4.5", - "grunt-bump": "0.6.0", "grunt-checkbranch": "~1.0.2", "grunt-checkrepo": "~0.1.0", "grunt-contrib-clean": "~0.7.0", "grunt-contrib-copy": "~0.8.2", - "grunt-contrib-jshint": "~0.11.3", + "grunt-contrib-jshint": "~0.12.0", "grunt-contrib-uglify": "~0.11.0", "grunt-contrib-watch": "~0.6.1", "grunt-newer": "~1.1.1", @@ -31,6 +30,6 @@ "grunt-wp-i18n": "~0.5.3", "grunt-wp-readme-to-markdown": "~1.0.0", "jshint-stylish": "~2.1.0", - "load-grunt-tasks": "~3.3.0" + "load-grunt-tasks": "~3.4.0" } }