Skip to content

Commit

Permalink
Merge pull request #113 from sethkinast/no-archive
Browse files Browse the repository at this point in the history
Stop archiving old releases
  • Loading branch information
prashn64 committed Mar 5, 2015
2 parents 7e6c58a + fd66002 commit e92c178
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 45 deletions.
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

0 comments on commit e92c178

Please sign in to comment.