From 480af28a4de761a3b6acb8a333b87db6d13f7f48 Mon Sep 17 00:00:00 2001 From: minhyuk Date: Mon, 10 Jun 2024 11:25:23 +0900 Subject: [PATCH] [Veronica] Code Improvement --- Gruntfile.js | 92 ---------------------------------------------------- 1 file changed, 92 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 7f81986a..e69de29b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,92 +0,0 @@ -module.exports = function(grunt) { - "use strict"; - - // Project configuration. - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - banner: - '/*! Respond.js v<%= pkg.version %>: <%= pkg.description %>\n' + - ' * Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>\n' + - ' * Licensed under <%= _.pluck(pkg.licenses, "type").join(", ") %>\n' + - ' * <%= pkg.homepageShortened %>' + - ' */\n\n', - uglify: { - nonMinMatchMedia: { - options: { - banner: '<%= banner %>', - mangle: false, - compress: false, - preserveComments: 'some', - beautify: { - beautify: true, - indent_level: 2 - } - }, - files: { - 'dest/respond.src.js': ['src/matchmedia.polyfill.js', 'src/respond.js'] - } - }, - minMatchMedia: { - options: { - banner: '<%= banner %>' - }, - files: { - 'dest/respond.min.js': ['src/matchmedia.polyfill.js', 'src/respond.js'] - } - }, - nonMinMatchMediaListener: { - options: { - banner: '<%= banner %>', - mangle: false, - compress: false, - preserveComments: 'some', - beautify: { - beautify: true, - indent_level: 2 - } - }, - files: { - 'dest/respond.matchmedia.addListener.src.js': ['src/matchmedia.polyfill.js', 'src/matchmedia.addListener.js', 'src/respond.js'] - } - }, - minMatchMediaListener: { - options: { - banner: '<%= banner %>' - }, - files: { - 'dest/respond.matchmedia.addListener.min.js': ['src/matchmedia.polyfill.js', 'src/matchmedia.addListener.js', 'src/respond.js'] - } - } - }, - jshint: { - files: ['src/respond.js', 'src/matchmedia.polyfill.js'], - options: { - curly: true, - eqeqeq: true, - immed: true, - latedef: false, - newcap: true, - noarg: true, - sub: true, - undef: true, - boss: true, - eqnull: true, - smarttabs: true, - node: true, - es5: true, - strict: false - }, - globals: { - Image: true, - window: true - } - } - }); - - grunt.loadNpmTasks( 'grunt-contrib-jshint' ); - grunt.loadNpmTasks( 'grunt-contrib-uglify' ); - - // Default task. - grunt.registerTask('default', ['jshint', 'uglify']); - -};