Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
georgehenderson committed Nov 7, 2013
2 parents 853d7cd + 09a7b3d commit 26b7f73
Show file tree
Hide file tree
Showing 61 changed files with 1,012 additions and 9,338 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "src/components"
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

/src/components

/node_modules
/docs
Expand Down
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
language: node_js
node_js:
- "0.8"
before_install:
- "npm cache clean ."
script:
- "npm install -g grunt-cli"
- "grunt test"
- "npm install -g bower"
- "bower install"
- "grunt test --verbose"
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
Changed in 2.3.0
======
* Moved all client-side dependencies to use bower and restructured project to make sense of this change
* Removed unused corodova plugin architecture from lavaca/env/Device since it is handled by corodva cli
* Significant updates to the Form widget, and added tests for Form widget
- Added 'autoTrim' option
- Made URL regex more forgiving
- More robust & less redundant get/set value logic
- set() can accept a hash of names and values
- Added 'treatAsGroup' option for rules
- Added hook for input formatters
* Added animationEndEvent function to the Animation class
* Change autoRender behavior for childViews so that render() is called after the child view is created instead of in the View constructor fixing the intended behavior.
* Updated History to fix navigating back out of a lavaca site.
* Fixed cmd/ctr click on links
* Refactored onTapLink
- Now auto checks for external links and ignores them
- Added support for cordova in app browser
- Added `force-back` rel to force `History.isRoutingBack = true`
* Add new signature to mapChildView which will allow for dynamically selecting/creating the childView's model
* Fixed bindLinkHandler to appropriately bind click or tap events based on the inclusion of Hammer


Changed in 2.2.0
======
* Combined PageView and View into a single class
Expand Down
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ module.exports = function(grunt) {
},

requirejs: {
baseUrl: 'src/js',
baseUrl: 'src',
mainConfigFile: 'src/boot.js',
optimize: 'none',
keepBuildDir: true,
Expand Down
12 changes: 0 additions & 12 deletions MIT-LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,6 @@ LinkedIn Fork of Dust.js 1.1
(c) 2010, Aleksander Williams
Released under the MIT license.

Zepto.js 0.8.0
(c) 2011 Thomas Fuchs
Released under the MIT license

ChildBrowser
(c) 2012 Jesse MacFadyen, Nitobi
Released under the MIT license

lz77.js
(c) 2009 Olle Törnström
Released under the MIT license

iScroll 4.1.9
(c) 2011 Matteo Spinelli
Released under the MIT license
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,30 @@
A curated collection of tools built for mobile

## Getting Started
Pull down a [lavaca-starter project](https://github.com/mutualmobile/lavaca-starter) and do `npm install`

or

In an existing lavaca project do `npm install lavaca`
Pull down a [lavaca-starter project](https://github.com/mutualmobile/lavaca-starter)

## Run Tests
1. __Install grunt-cli globally__
Note: this may require sudo
```bash
$ npm install -g grunt-cli
```

2. __Install bower globally__
Note: this may require sudo
```bash
$ npm install -g bower
```

3. __Install dev dependencies for our tasks to work__
```bash
$ npm install && bower install
```

4. __Run Tests__
```bash
$ grunt test
```

## Documentation
<http://getlavaca.com/#/guide>
Expand Down
29 changes: 29 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "lavaca",
"main": "lavaca.js",
"version": "2.3.0",
"homepage": "https://github.com/mutualmobile/lavaca",
"authors": [
"Mutual Mobile <[email protected]>"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"jquery": "http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.js",
"dustjs-linkedin": "https://github.com/georgehenderson/dustjs.git#2.0.4",
"dustjs-linkedin-helpers": "~1.1.1",
"require-dust": "https://github.com/georgehenderson/require-dust.git#master",
"mout": "~0.7.1",
"es5-shim": "~2.1.0",
"requirejs ": "~2.1.8",
"iscroll ": "~5.0.5",
"less.js": "~1.4.2",
"hammerjs": "https://github.com/EightMedia/hammer.js.git#1.0.5"
}
}
25 changes: 0 additions & 25 deletions config.js

This file was deleted.

15 changes: 3 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lavaca",
"description": "A curated collection of tools built for mobile.",
"version": "2.2.0",
"version": "2.3.0",
"homepage": "https://github.com/mutualmobile/lavaca",
"author": {
"name": "mutualmobile",
Expand All @@ -25,13 +25,7 @@
"node": ">= 0.8.0"
},
"dependencies": {
"dustjs-linkedin": "2.0.3",
"dustjs-helpers": "1.1.1",
"mout": "0.x",
"es5-shim": "2.1.0",
"requirejs ": "2.1.8",
"iscroll ": "5.0.5",
"less ": "1.4.2"
"requirejs ": "2.1.8"
},
"devDependencies": {
"grunt": "~0.4.1",
Expand Down Expand Up @@ -59,8 +53,5 @@
"localStorage",
"events",
"animation"
],
"scripts": {
"postinstall": "node ./postinstall.js"
}
]
}
51 changes: 0 additions & 51 deletions postinstall.js

This file was deleted.

22 changes: 10 additions & 12 deletions src/boot.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
require.config({
baseUrl: 'js',
baseUrl: './',
paths: {
'es5-shim': 'libs/es5-shim',
'$': 'libs/jquery-2.0.0',
'jquery': 'libs/jquery-2.0.0',
'cordova': 'libs/cordova',
'mout': 'libs/mout',
'docCookies': 'libs/docCookies',
'dust': 'libs/dust-full-2.0.3',
'dust-helpers': 'libs/dust-helpers-1.1.1',
'rdust': 'libs/require-dust',
'iscroll': 'libs/iscroll-lite',
'lavaca': 'lavaca'
'es5-shim': 'components/es5-shim/es5-shim',
'$': 'components/jquery/index',
'jquery': 'components/jquery/index',
'mout': 'components/mout/src',
'dust': 'components/dustjs-linkedin/dist/dust-full-2.0.3',
'dust-helpers': 'components/dustjs-linkedin-helpers/dist/dust-helpers-1.1.1',
'rdust': 'components/require-dust/require-dust',
'iScroll': 'components/iscroll/dist/iscroll-lite-min',
'lavaca': './'
},
shim: {
$: {
Expand Down
File renamed without changes.
43 changes: 43 additions & 0 deletions src/env/Device.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
define(function(require) {

var $ = require('$');

/**
* Static utility type for working with Cordova (aka PhoneGap) and other non-standard native functionality
* @class lavaca.env.Device
*/

var Device = {};

/**
* Indicates whether or not the app is being run through Cordova
* @method isCordova
* @static
*
* @return {Boolean} True if app is being run through Cordova
*/
Device.isCordova = function() {
return !!window.cordova;
};

/**
* Executes a callback when the device is ready to be used
* @method init
* @static
*
* @param {Function} callback The handler to execute when the device is ready
*/
Device.init = function(callback) {
if (!Device.isCordova()) {
$(document).ready(callback);
} else if (document.addEventListener) {
// Android fix
document.addEventListener('deviceready', callback, false);
} else {
$(document).on('deviceready', callback);
}
};

return Device;

});
File renamed without changes.
11 changes: 11 additions & 0 deletions src/js/lavaca/fx/Animation.js → src/fx/Animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ define(function(require) {
return !!_prop;
};

/**
* Gets the name of the animation end event
* @method animationEndEvent
* @static
*
* @return {String} The name of the event
*/
Animation.animationEndEvent = function() {
return _event;
};

/**
* Converts a list of keyframes to a CSS animation
* @method keyframesToCSS
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions src/js/app/app.js

This file was deleted.

Loading

0 comments on commit 26b7f73

Please sign in to comment.