Skip to content

Commit

Permalink
added copying of archive to build/, added cleaning of build/
Browse files Browse the repository at this point in the history
  • Loading branch information
XERAEN committed Sep 30, 2013
1 parent 473d674 commit ad9c19e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
css/*.map

# bundling output
build/*
build
dist/*
dist


# Node Modules (use `npm install` to generate these)
node_modules/*
node_modules
Expand Down
9 changes: 7 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(grunt) {
expand: true,
cwd: 'dist/',
src: ['**/*'],
dest: 'build/'
dest: ''
}
},

Expand All @@ -33,6 +33,11 @@ module.exports = function(grunt) {
{expand: true, src: ['scss/**'], dest: 'dist/'},
{expand: true, src: ['*', '!.gitignore', '!.DS_Store'], dest: 'dist/'},
]
},
archive: {
files: [
{expand: true, src: ['linen.zip'], dest: 'build/'}
]
}
},

Expand Down Expand Up @@ -64,5 +69,5 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');

grunt.registerTask('default', ['sass:admin']);
grunt.registerTask('bundle', ['clean', 'copy', 'compress']);
grunt.registerTask('bundle', ['clean', 'copy:main', 'compress', 'copy:archive']);
};

0 comments on commit ad9c19e

Please sign in to comment.