Skip to content

Commit

Permalink
Migrate to new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rosslavery committed Jul 14, 2014
1 parent d9c5e52 commit f6bde82
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 33 deletions.
11 changes: 6 additions & 5 deletions Gruntfile.js
Expand Up @@ -4,6 +4,7 @@ module.exports = function(grunt) {

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
fileName: grunt.file.readJSON('package.json')['name'].replace(/-/g, '.'),
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
Expand All @@ -13,7 +14,7 @@ module.exports = function(grunt) {
options: {
jshintrc: true
},
build: ['<%= pkg.name %>.js']
build: ['<%= fileName %>.js']
},
concat: {
options: {
Expand All @@ -23,8 +24,8 @@ module.exports = function(grunt) {
}
},
build: {
src: ['<%= pkg.name %>.js'],
dest: '<%= pkg.name %>.js'
src: ['<%= fileName %>.js'],
dest: '<%= fileName %>.js'
}
},
uglify: {
Expand All @@ -33,8 +34,8 @@ module.exports = function(grunt) {
mangle: true
},
build: {
src: '<%= pkg.name %>.js',
dest: '<%= pkg.name %>.min.js'
src: '<%= fileName %>.js',
dest: '<%= fileName %>.min.js'
}
},
bump: {
Expand Down
16 changes: 8 additions & 8 deletions README.md
@@ -1,4 +1,4 @@
rl-velocity
velocity-ui-angular
===========

Velocity UI Pack integration for AngularJS. Combines the power of ngAnimate with the performance and simplicity of Velocity's UI Pack!
Expand All @@ -15,13 +15,13 @@ Velocity UI Pack integration for AngularJS. Combines the power of ngAnimate with
* Install via bower:

``` shell
$ bower install rl-velocity --save
$ bower install velocity-ui-angular --save
```

* Add the `rl.velocity` module to your application:
* Add the `velocity.ui` module to your application:

``` Javascript
angular.module('yourApp', ['rl.velocity', 'ngAnimate']);
angular.module('yourApp', ['velocity.ui', 'ngAnimate']);
```


Expand All @@ -36,18 +36,18 @@ angular.module('yourApp', ['rl.velocity', 'ngAnimate']);
Durations can be set on an individual basis by using the `velocity-duration-400` class, where 400 is the animation duration in milliseconds.

## Setting Default Options
The following options can be configured via `rlVelocityConfig`:
The following options can be configured via `ngVelocityConfig`:

### duration
Type: `String|Number`

Default: `300`

To configure rl-velocity globally, set it via your applications `config` block:
To configure velocity-ui-angular globally, set it via your applications `config` block:

``` Javascript
angular.module('yourApp').config(function(rlVelocityConfig) {
rlVelocityConfig.duration = 1000;
angular.module('yourApp').config(function(ngVelocityConfig) {
ngVelocityConfig.duration = 1000;
});

```
Expand Down
6 changes: 3 additions & 3 deletions bower.json
@@ -1,9 +1,9 @@
{
"name": "rl-velocity",
"name": "velocity-ui-angular",
"version": "0.3.2",
"author": "Ross Lavery <rosslavery@gmail.com>",
"description": "Velocity integration for AngularJS",
"main": "rl-velocity.min.js",
"description": "Velocity UI integration for AngularJS",
"main": "velocity.ui.angular.min.js",
"keywords": [
"AngularJS",
"angular",
Expand Down
12 changes: 6 additions & 6 deletions package.json
@@ -1,11 +1,11 @@
{
"name": "rl-velocity",
"name": "velocity-ui-angular",
"version": "0.3.2",
"description": "Velocity integration for AngularJS",
"main": "rl-velocity.js",
"description": "Velocity UI integration for AngularJS",
"main": "velocity.ui.angular.min.js",
"repository": {
"type": "git",
"url": "git://github.com/rosslavery/rl-velocity.git"
"url": "git://github.com/rosslavery/velocity-ui-angular.git"
},
"keywords": [
"AngularJS",
Expand All @@ -19,9 +19,9 @@
"author": "Ross Lavery <rosslavery@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/rosslavery/rl-velocity/issues"
"url": "https://github.com/rosslavery/velocity-ui-angular/issues"
},
"homepage": "https://github.com/rosslavery/rl-velocity",
"homepage": "https://github.com/rosslavery/velocity-ui-angular",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "~0.10.0",
Expand Down
16 changes: 8 additions & 8 deletions rl-velocity.js → velocity.ui.angular.js
@@ -1,5 +1,5 @@
/*! rl-velocity - v0.3.2 - 2014-07-10
* https://github.com/rosslavery/rl-velocity
/*! velocity-ui-angular - v0.3.2 - 2014-07-14
* https://github.com/rosslavery/velocity-ui-angular
* Copyright (c) 2014 Ross Lavery <rosslavery@gmail.com>; License: MIT */
(function(angular) {
'use strict';
Expand All @@ -9,13 +9,13 @@
throw new Error('Velocity UI Pack: Velocity must be loaded first. Aborting.');
}

Container.rlVelocity = angular.module('rl.velocity', ['ngAnimate'])
Container.ngVelocity = angular.module('velocity.ui', ['ngAnimate'])

.constant('rlVelocityConfig', {
.constant('ngVelocityConfig', {
duration: 300
})

.factory('VelocityUtils', ['rlVelocityConfig', function(rlVelocityConfig) {
.factory('VelocityUtils', ['ngVelocityConfig', function(ngVelocityConfig) {

return {

Expand Down Expand Up @@ -56,7 +56,7 @@

return function($el, done) {
var parsedOptions = self._parseClassList($el[0].classList);
var options = angular.extend(rlVelocityConfig, parsedOptions);
var options = angular.extend(ngVelocityConfig, parsedOptions);

Container.Velocity.animate($el, animation, options).then(done);
};
Expand All @@ -67,7 +67,7 @@

return function ($el, className, done) {
var parsedOptions = self._parseClassList($el[0].classList);
var options = angular.extend(rlVelocityConfig, parsedOptions);
var options = angular.extend(ngVelocityConfig, parsedOptions);

if (className === 'ng-hide') {
Container.Velocity.animate($el, animation, options).then(done);
Expand Down Expand Up @@ -95,7 +95,7 @@

className = _getClassName(animationName);

Container.rlVelocity.animation(className, ['VelocityUtils', function(VelocityUtils) {
Container.ngVelocity.animation(className, ['VelocityUtils', function(VelocityUtils) {
return VelocityUtils._createAngularAnimation(animationName);
}]);

Expand Down
6 changes: 3 additions & 3 deletions rl-velocity.min.js → velocity.ui.angular.min.js

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

0 comments on commit f6bde82

Please sign in to comment.