Skip to content

Commit

Permalink
Add build task that generate a minified version of source.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidenari Nozaki committed Jul 28, 2014
1 parent 53e9ceb commit 711eb5d
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 11 deletions.
12 changes: 12 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,24 @@ module.exports = function (grunt) {
options: {
dest: 'CHANGELOG.md'
}
},
uglify: {
options: {
mangle: false,
preserveComments: 'some'
},
build: {
files: {
'dist/angucomplete-alt.min.js': ['angucomplete-alt.js']
}
}
}
};

// Register tasks
grunt.registerTask('default', ['jshint', 'karma:unit']);
grunt.registerTask('watch', ['jshint', 'karma:watch']);
grunt.registerTask('build', ['jshint', 'uglify:build']);

grunt.initConfig(initConfig);
};
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To see a demo go here: http://ghiden.github.io/angucomplete-alt
* callback function: when a selection is made by user, this callback is called with the selected object. Thanks to @nekcih for proposing this feature.

### Getting Started
Download the package, and include the angucomplete-alt.js file in your page.
Download the package, and include the dist/angucomplete-alt.min.js file in your page.

```bash
bower install angucomplete-alt --save
Expand Down
5 changes: 2 additions & 3 deletions angucomplete-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
* Autocomplete directive for AngularJS
* This is a fork of Daryl Rowland's angucomplete with some extra features.
* By Hidenari Nozaki
*
* Copyright (c) 2014 Hidenari Nozaki and contributors
* Licensed under the MIT license
*/

/*! Copyright (c) 2014 Hidenari Nozaki and contributors | Licensed under the MIT license */

'use strict';

angular.module('angucomplete-alt', [] ).directive('angucompleteAlt', ['$parse', '$http', '$sce', '$timeout', function ($parse, $http, $sce, $timeout) {
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angucomplete-alt",
"version": "0.0.10",
"version": "0.0.11",
"homepage": "http://ghiden.github.io/angucomplete-alt/",
"authors": [
"Hidenari Nozaki <[email protected]>"
Expand Down
2 changes: 2 additions & 0 deletions dist/angucomplete-alt.min.js

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

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"authors": [
"Daryl Rowland <[email protected]>"
],
"name": "angucomplete",
"name": "angucomplete-alt",
"description": "Awesome Autocompleteness for AngularJS",
"version": "1.0.0",
"homepage": "http://darylrowland.github.io/angucomplete/",
"repository": {
"type": "git",
"url": "https://github.com/ghiden/angucomplete-alt.git"
},
"engines": {
"node": ">= 0.8.4"
},
"dependencies": {},
"devDependencies": {
"async": "0.1.x",
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.5.1",
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-watch": "~0.5.3",
"grunt-karma": "~0.6.2",
Expand Down

0 comments on commit 711eb5d

Please sign in to comment.