forked from AlexusBlack/alexusMailer-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
51 lines (48 loc) · 1.56 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
full: {
files: {
'dist/alexusMailer_v2.0.php': ['src/init.php', 'lang/*', 'class/*', 'files/*', 'src/process.php', 'src/header.php', 'css/*.min.css', 'src/separator.php', 'src/jquery-*.min.js', 'js/*.min.js', '!js/service.min.js', 'src/footer.php']
}
},
demo: {
files: {
'dist/alexusMailer.demo.php': ['src/init.php', 'lang/*', 'class/*', 'files/*', 'src/service.php', 'src/process.php', 'src/header.php', 'css/*.min.css', 'src/separator.php', 'src/jquery-*.min.js', 'js/*.min.js', 'src/footer.php']
}
}
},
uglify: {
full: {
files: {
'js/scripts.min.js': ['js/*.js', '!js/*.min.js', '!js/service.js']
}
}
},
cssmin: {
full: {
files: {
'css/styles.min.css': ['css/*.css', '!css/*.min.css']
}
}
},
copy: {
main: {
files: [
// includes files within path
{expand: true, src: ['shell/*'], dest: 'dist/', filter: 'isFile'}
]
}
}
});
// Load plugins
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
// Default task(s).
grunt.registerTask('default', ['uglify:full', 'cssmin:full', 'concat:full', 'copy']);
grunt.registerTask('demo', ['uglify:full', 'cssmin:full', 'concat:demo', 'copy']);
};