Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop archiving old releases #113

Merged
merged 1 commit into from
Mar 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
tmp
test
archive
_SpecRunner.html
gruntfile.js
.*
*.iml
*.iml
Binary file removed archive/dustjs-helpers-1.2.0.tar.gz
Binary file not shown.
Binary file removed archive/dustjs-helpers-1.2.0.zip
Binary file not shown.
Binary file removed archive/dustjs-helpers-1.3.0.tar.gz
Binary file not shown.
Binary file removed archive/dustjs-helpers-1.3.0.zip
Binary file not shown.
Binary file removed archive/dustjs-helpers-1.4.0.tar.gz
Binary file not shown.
Binary file removed archive/dustjs-helpers-1.4.0.zip
Binary file not shown.
Binary file removed archive/dustjs-helpers-1.5.0.tar.gz
Binary file not shown.
Binary file removed archive/dustjs-helpers-1.5.0.zip
Binary file not shown.
45 changes: 3 additions & 42 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,44 +157,6 @@ module.exports = function (grunt) {
stdout: true,
failOnError: true
}
},
gitAddArchive: {
command: 'git add <%= paths.archive %>',
options: {
stdout: true
}
}
},
compress: {
distTarBall: {
options: {
archive: '<%=paths.archive%>/<%=distName%>.tar.gz',
mode: 'tgz',
pretty: true
},
files: [
{
expand: true,
cwd: '<%=paths.dist%>',
src: ['*.js', 'LICENSE'],
dest: '<%=distName%>/'
}
]
},
distZip: {
options: {
archive: '<%=paths.archive%>/<%=distName%>.zip',
mode: 'zip',
pretty: true
},
files: [
{
expand: true,
cwd: '<%=paths.dist%>',
src: ['*.js', 'LICENSE'],
dest: '<%=distName%>/'
}
]
}
},
bump: {
Expand Down Expand Up @@ -248,7 +210,6 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-shell');

Expand All @@ -274,9 +235,9 @@ module.exports = function (grunt) {
grunt.registerTask('coverage', ['jasmine:coverage', 'log:coverage']);

//release tasks
grunt.registerTask('buildRelease', ['test', 'copy:release', 'compress']);
grunt.registerTask('releasePatch', ['bump-only:patch', 'buildRelease', 'shell:gitAddArchive', 'bump-commit']);
grunt.registerTask('releaseMinor', ['bump-only:minor', 'buildRelease', 'shell:gitAddArchive', 'bump-commit']);
grunt.registerTask('buildRelease', ['test', 'copy:release']);
grunt.registerTask('releasePatch', ['bump-only:patch', 'buildRelease', 'bump-commit']);
grunt.registerTask('releaseMinor', ['bump-only:minor', 'buildRelease', 'bump-commit']);

//default task - full test
grunt.registerTask('default', ['test']);
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"grunt-contrib-uglify": "~0.3.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-compress": "~0.6.0",
"grunt-bump": "~0.0.13",
"grunt-shell": "~0.6.3"
},
Expand Down