Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules

build
32 changes: 32 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = function(grunt) {

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
ngmin:{
main:{
src: [
"src/ngAutocomplete.js"
],
dest: "build/<%= pkg.name %>.ngmin.js"
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: 'build/<%= pkg.name %>.ngmin.js',
dest: 'dist/<%= pkg.name %>.min.js'
}
}
});

// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-ngmin');

// Default task(s).
grunt.registerTask('default', ['ngmin:main','uglify']);

};
1 change: 1 addition & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
"dependencies": {
"angular": ">=1.2.0"
}

}
2 changes: 2 additions & 0 deletions dist/ngAutocomplete.min.js

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

32 changes: 32 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "ngAutocomplete",
"version": "1.0.0",
"description": "Google Places Api autocomplete for angular JS",
"main": "ngAutocomplete.js",
"directories": {
"example": "examples"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/wpalahnuk/ngAutocomplete"
},
"keywords": [
"angular-js",
"google-places-api",
"autocomplete"
],
"author": "https://github.com/wpalahnuk",
"license": "MIT",
"bugs": {
"url": "https://github.com/wpalahnuk/ngAutocomplete/issues"
},
"homepage": "https://github.com/wpalahnuk/ngAutocomplete",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-uglify": "~0.6.0",
"grunt-ngmin": "0.0.3"
}
}