summaryrefslogtreecommitdiff
path: root/studio-susie/Gruntfile.js
blob: 7f3fedc8f98f86eb9ba570bd4afda33c055dc4c9 (plain)
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
52
53
54
55
56
57
58
module.exports = function(grunt) {

	// Project configuration.
	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),
		concat: {
			index: {
				options: {
					separator: "\n;\n"
				},
				src: [
          "public/js/vendor/prefixfree.min.js",
          "public/js/vendor/fastclick.js",
          "public/js/vendor/util.js",

          "public/js/app.js",
        ],
				dest: 'public/app.concat.js',
			},
			css: {
			  options: {
					separator: "\n"
			  },
			  src: [
          "public/css/main.css",
			  ],
			  dest: 'public/app.css',
			},
		},

		uglify: {
			options: {
				banner: '/* okfoc.us 2016 */\n'
			},
			index: {
				src: 'public/app.concat.js',
				dest: 'public/app.min.js'
			}
		},

    clean: {
      release: [
        "public/app.concat.js",
        "tmp/"
      ],
    }
	});

	// Load tasks that we'll be using
	grunt.loadNpmTasks('grunt-contrib-concat');
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-contrib-clean');
	grunt.loadNpmTasks('grunt-contrib-copy');
	grunt.loadNpmTasks('grunt-dentist');

	// Default task(s).
	grunt.registerTask('default', ['concat', 'uglify', 'clean']);
};