diff --git a/.gitignore b/.gitignore index 58b6496..bffcf98 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .idea/ -lib/ \ No newline at end of file +node_modules/ +example/angular/ +ya-map.min.js \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js new file mode 100644 index 0000000..8184d57 --- /dev/null +++ b/Gruntfile.js @@ -0,0 +1,23 @@ +module.exports = function(grunt) { + + grunt.initConfig({ + pkg: grunt.file.readJSON('package.json'), + uglify: { + options: { + banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n' + }, + dist: { + files: { + 'ya-map.min.js': ['example/ya-map.js'] + } + } + } + }); + + + // Load the plugin that provides the "uglify" task. + grunt.loadNpmTasks('grunt-contrib-uglify'); + + // Default task(s). + grunt.registerTask('default', ['uglify']); +}; \ No newline at end of file diff --git a/README.md b/README.md index 1f17e4b..cc08919 100644 --- a/README.md +++ b/README.md @@ -152,3 +152,4 @@ yaMap - `ya-key` - ключ для дальнейшего обращения к шаблону - `ya-overrides` - объект, который задает переопределяемые функции. + diff --git a/example/index.html b/example/index.html index de51799..21b1c5f 100644 --- a/example/index.html +++ b/example/index.html @@ -104,6 +104,6 @@