text: module.exports = function(grunt) {
  
      grunt.initConfig({
          pkg: grunt.file.readJSON('package.json'),
  
          coffee: {
              app: {
                  src: ["coffee/models/property_edit.coffee",
                        "coffee/models/svg_element.coffee",
                        "coffee/models/svg_element_list.coffee",
                        "coffee/models/svg_folder.coffee",
                        "coffee/models/svg_item.coffee",
                        "coffee/models/svg_item_list.coffee",
                        "coffee/models/path_segment_adapter.coffee",
                        "coffee/models/path_segment_point_adapter.coffee",
                        "coffee/models/grid_setting.coffee",
                        "coffee/views/clone-control-view.coffee",
                        "coffee/views/context_menu_view.coffee",
                        "coffee/views/controls/line_position_control.coffee",
                        "coffee/views/controls/mixin.coffee",
                        "coffee/views/controls/position_control.coffee",
                        "coffee/views/controls/rotate_axis_control.coffee",
                        "coffee/views/controls/rotate_control.coffee",
                        "coffee/views/controls/rotate_point_control.coffee",
                        "coffee/views/controls/scale_control.coffee",
                        "coffee/views/controls/scale_control_set.coffee",
                        "coffee/views/controls/scale_one_axis_control.coffee",
                        "coffee/views/controls/item_control_view.coffee",
                        "coffee/views/commands/base.coffee",
                        "coffee/views/commands/commands.coffee",
                        "coffee/views/commands/command_stack.coffee",
                        "coffee/views/commands/command_invoker.coffee",
                        "coffee/views/commands/command_creator.coffee",
                        "coffee/views/commands/command_service.coffee",
                        "coffee/views/mode/element_control_mode.coffee",
                        "coffee/views/mode/text_edit_mode.coffee",
                        "coffee/views/mode/path_edit_mode.coffee",
                        "coffee/views/mode/draw_path_mode.coffee",
                        "coffee/views/mode/gradient_edit_mode.coffee",
                        "coffee/views/mode/mode_view.coffee",
                        "coffee/views/event_manager.coffee",
                        "coffee/views/inspector/inspector_list_view.coffee",
                        "coffee/views/inspector/inspector_view.coffee",
                        "coffee/views/inspector/inspector_folder_view.coffee",
                        "coffee/views/inspector/inspector_drag_and_drop.coffee",
                        "coffee/views/path_controls/svg_curve_view.coffee",
                        "coffee/views/path_controls/svg_path_control_view.coffee",
                        "coffee/views/path_controls/svg_segment_point_control_view.coffee",
                        "coffee/views/path_controls/svg_segment_handle_control.coffee",
                        "coffee/views/property_edit/property_edit_set.coffee",
                        "coffee/views/property_edit/property_edit_view.coffee",
                        "coffee/views/property_edit/data_property_edit_view.coffee",
                        "coffee/views/select_line_view.coffee",
                        "coffee/views/select_line_view_list.coffee",
                        "coffee/views/select_region_control_view.coffee",
                        "coffee/views/snapping/snap_item_view.coffee",
                        "coffee/views/snapping/snap_line_view.coffee",
                        "coffee/views/snapping/snapping.coffee",
                        "coffee/views/svg_grid_view.coffee",
                        "coffee/views/grid_setting_view.coffee",
                        "coffee/views/files/open_file_view.coffee",
                        "coffee/views/files/open_image_file_view.coffee",
                        "coffee/views/svg_canvas.view.coffee",
                        "coffee/views/svg_element_view.coffee",
                        "coffee/views/svg_item_list_view.coffee",
                        "coffee/views/svg_item_tool_view.coffee",
                        "coffee/views/svg_item_view.coffee",
                        "coffee/views/z-order-control.coffee",
                        "coffee/views/gradient/gradient_control.coffee",
                        "coffee/views/gradient/gradient_tool_view.coffee",
                        "coffee/views/panels/panel_base_view.coffee",
                        "coffee/views/panels/panel_view_helper.coffee",
                        "coffee/views/panels/gradient_panel_view.coffee",
                        "coffee/views/panels/pattern_panel_view.coffee",
                        "coffee/views/panels/filter_panel_view.coffee",
                        "coffee/views/undo/undo_redo_view.coffee",
                        "coffee/lib/svg_util.coffee",
                        "coffee/lib/file_util.coffee",
                        "coffee/lib/svg_exporter.coffee",
                        "coffee/lib/svg_text_editor.coffee",
                        "coffee/lib/vector_util.coffee",
                        "coffee/main.coffee",
                        "coffee/sample.coffee"],
                  dest: 'javascripts/<%= pkg.name %>.js'
              }
          },
          uglify: {
              options: {
                  banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
              },
              build: {
                  src: 'javascripts/<%= pkg.name %>.js',
                  dest: 'javascripts/<%= pkg.name %>.min.js'
              }
          },
          watch: {
              main: {
                  files: [
                      '<%= coffee.app.src %>'
                  ],
                  tasks: ['coffee']
              }
          },
          connect: {
              server: {
                  options: {
                      hostname:'*',
                      directory:"rapen",
                      port: 9000
                  }
              }
          }
      });
  
      grunt.loadNpmTasks('grunt-contrib-uglify');
      grunt.loadNpmTasks('grunt-contrib-coffee');
      grunt.loadNpmTasks('grunt-contrib-watch');
      grunt.loadNpmTasks('grunt-contrib-connect');
  
      grunt.registerTask('default', ['coffee', 'uglify', 'connect', 'watch']);
  
  };
  