1
0
mirror of https://github.com/moparisthebest/mail synced 2024-12-22 15:28:49 -05:00

update gruntfiles

This commit is contained in:
Tankred Hase 2013-09-17 13:04:41 +02:00
parent 23152c1c23
commit 8a766546f8
2 changed files with 13 additions and 8 deletions

View File

@ -101,6 +101,10 @@ module.exports = function(grunt) {
css: { css: {
files: ['src/sass/**/*.scss'], files: ['src/sass/**/*.scss'],
tasks: ['dist-css'] tasks: ['dist-css']
},
code: {
files: ['src/**/*.js', 'src/**/*.html', 'src/**/*.json', 'src/img/*', 'src/font/*'],
tasks: ['dist-copy']
} }
}, },
copy: { copy: {
@ -155,14 +159,15 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-copy');
// Default task(s). // Build tasks
grunt.registerTask('dev', ['connect:dev']);
grunt.registerTask('test', ['jshint', 'connect:test', 'mocha', 'qunit']);
grunt.registerTask('prod', ['connect:prod']);
grunt.registerTask('dist-css', ['sass', 'autoprefixer', 'csso']); grunt.registerTask('dist-css', ['sass', 'autoprefixer', 'csso']);
grunt.registerTask('dist-font', ['copy']); grunt.registerTask('dist-copy', ['copy']);
grunt.registerTask('dist', ['clean', 'dist-css', 'dist-font']); grunt.registerTask('dist', ['clean', 'dist-css', 'dist-copy']);
grunt.registerTask('default', ['dist']); grunt.registerTask('default', ['dist']);
// Test/Dev tasks
grunt.registerTask('dev', ['connect:dev']);
grunt.registerTask('test', ['jshint', 'connect:test', 'mocha', 'qunit', 'dist']);
grunt.registerTask('prod', ['connect:prod']);
}; };

View File

@ -7,7 +7,7 @@
"scripts": { "scripts": {
"postinstall": "./res/copy-deps.sh", "postinstall": "./res/copy-deps.sh",
"test": "grunt test", "test": "grunt test",
"start": "grunt prod" "start": "grunt dev"
}, },
"dependencies": { "dependencies": {
"crypto-lib": "https://github.com/whiteout-io/crypto-lib/tarball/master", "crypto-lib": "https://github.com/whiteout-io/crypto-lib/tarball/master",