diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-12-31 06:28:53 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-12-31 06:28:53 +0100 |
| commit | 9f8674686bead1c8b3c88af102bdbebbba89a2e8 (patch) | |
| tree | b6f98ef6d258c9b5381afe0121b8767fd7eb4be5 /studio-susie/Gruntfile.js | |
| parent | 1d34c0dffa2ed4c9a11942c356123175baf87240 (diff) | |
studio susie website
Diffstat (limited to 'studio-susie/Gruntfile.js')
| -rw-r--r-- | studio-susie/Gruntfile.js | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/studio-susie/Gruntfile.js b/studio-susie/Gruntfile.js new file mode 100644 index 0000000..7f3fedc --- /dev/null +++ b/studio-susie/Gruntfile.js @@ -0,0 +1,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']); +}; |
