Skip to content

Commit

Permalink
grunt cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
helgatheviking committed Feb 9, 2016
1 parent afe360a commit a9dff96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 35 deletions.
32 changes: 1 addition & 31 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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: {
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
Expand All @@ -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"
}
}

0 comments on commit a9dff96

Please sign in to comment.