Grunt rsync with svn

This commit is contained in:
jaywood
2014-07-10 01:20:39 -04:00
parent 4c2debe0c9
commit f7388e0886
2 changed files with 21 additions and 2 deletions

View File

@ -59,6 +59,19 @@ module.exports = function ( grunt ){
dest: 'css/cwv3.min.css',
}
},
rsync: {
options: {
args: ["--verbose", "--archive"],
exclude: ["node_modules",".*","README.md"],
recursive: true
},
dist: {
options: {
src: "./",
dest: "~/svn/content-warning-v2/"
}
}
},
watch: {
gruntfile: {
files: '<%= jshint.gruntfile.src %>',
@ -75,6 +88,10 @@ module.exports = function ( grunt ){
js: {
files: ['js/*.js', '!js/*.min.js'],
tasks: ['uglify']
},
readme: {
files: ['readme.txt', 'content-warning-v3.php'],
tasks: ['rsync']
}
}
});
@ -85,7 +102,8 @@ module.exports = function ( grunt ){
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-rsync');
// Default task
grunt.registerTask('default', ['jshint', 'sass', 'uglify', 'cssmin']);
grunt.registerTask('default', ['jshint', 'sass', 'uglify', 'cssmin', 'rsync']);
};

View File

@ -21,6 +21,7 @@
"grunt-contrib-sass": "~0.7.3",
"grunt-contrib-watch": "~0.6.1",
"grunt-contrib-cssmin": "~0.10.0",
"grunt-contrib-uglify": "~0.5.0"
"grunt-contrib-uglify": "~0.5.0",
"grunt-rsync": "~0.6.1"
}
}