Skip to content

Commit

Permalink
chore(build): remove obsolete Grunt tasks (#3602)
Browse files Browse the repository at this point in the history
These tasks are now handled by the semantic-release or other scripts and therefore we can clean them up.
  • Loading branch information
devoto13 committed Dec 23, 2020
1 parent 8997b74 commit 3c649fa
Show file tree
Hide file tree
Showing 3 changed files with 716 additions and 2,223 deletions.
58 changes: 0 additions & 58 deletions gruntfile.js
Expand Up @@ -26,70 +26,12 @@ module.exports = function (grunt) {
'test/unit/**/*.spec.js'
]
}
},
'npm-publish': {
options: {
abortIfDirty: true,
tag: 'latest'
}
},
'npm-contributors': {
options: {
commitMessage: 'chore: update contributors'
}
},
conventionalChangelog: {
release: {
options: {
changelogOpts: {
preset: 'angular'
}
},
src: 'CHANGELOG.md'
}
},
conventionalGithubReleaser: {
release: {
options: {
auth: {
type: 'oauth',
token: process.env.GH_TOKEN
},
changelogOpts: {
preset: 'angular'
}
}
}
},
bump: {
options: {
updateConfigs: ['pkg'],
commitFiles: [
'package.json',
'CHANGELOG.md'
],
commitMessage: 'chore: release v%VERSION%',
prereleaseName: 'rc'
}
}
})

grunt.loadNpmTasks('grunt-check-clean')
grunt.loadTasks('tasks')
require('load-grunt-tasks')(grunt)

grunt.registerTask('default', ['test'])
grunt.registerTask('test-appveyor', ['test:unit', 'test:client'])

grunt.registerTask('release', 'Build, bump and publish to NPM.', function (type) {
grunt.task.run([
'check_clean',
'npm-contributors',
'bump:' + (type || 'patch') + ':bump-only',
'conventionalChangelog',
'bump-commit',
'conventionalGithubReleaser',
'npm-publish'
])
})
}

0 comments on commit 3c649fa

Please sign in to comment.