Skip to content

Commit

Permalink
Added min version ya-map and grunt.
Browse files Browse the repository at this point in the history
  • Loading branch information
tulov committed Nov 13, 2013
1 parent 03785f4 commit b164b22
Show file tree
Hide file tree
Showing 7 changed files with 693 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea/
lib/
node_modules/
example/angular/
ya-map.min.js
23 changes: 23 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -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']);
};
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,4 @@ yaMap

- `ya-key` - ключ для дальнейшего обращения к шаблону
- `ya-overrides` - объект, который задает переопределяемые функции.

2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ <h3>Примеры использования Яндекс карт через
<script src="angular/angular.min.js"></script>
<script src="ui-bootstrap-tpls-0.6.min.js"></script>
<script src="js/app.js"></script>
<script src="ya-map.js"></script>
<script src="ya-map.min.js"></script>
</body>
</html>
2 changes: 2 additions & 0 deletions example/ya-map.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "yaMap",
"version": "1.0.0",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.2.2"
}
}
Loading

0 comments on commit b164b22

Please sign in to comment.