-
Add [grunt-build-control][] to your app:
npm install --save grunt-build-control
-
Append its Grunt task:
buildcontrol: {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO [karma]: Karma v0.12.31 server started at http://localhost:9876/ | |
INFO [launcher]: Starting browser PhantomJS | |
DEBUG [watcher]: Resolved files: | |
/tmp/node_modules/jasmine-core/lib/jasmine-core/jasmine.js | |
/tmp/node_modules/karma-jasmine/lib/boot.js | |
/tmp/node_modules/karma-jasmine/lib/adapter.js | |
/tmp/bower_components/es5-shim/es5-shim.js | |
/tmp/bower_components/angular/angular.js | |
/tmp/bower_components/pouchdb/dist/pouchdb.js | |
/tmp/bower_components/angular-mocks/angular-mocks.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// service.js | |
angular.module('test', []) | |
.service('pouchdb', function($q, $window) { | |
var db = new $window.PouchDB('test'); | |
this.info = function() { | |
return $q.when(db.info.apply(db, arguments)); | |
}; | |
}) | |
.controller('test', function($scope, pouchdb) { | |
pouchdb.info() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
describe('Angular PouchDB', function() { | |
beforeEach(module('pouchdb')); | |
var $rootScope, db; | |
beforeEach(inject(function(_$rootScope_, PouchDB) { | |
$rootScope = _$rootScope_; | |
db = new PouchDB('db'); | |
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- tooltip.js 2014-09-14 23:51:33.000000000 +0100 | |
+++ tooltip-tlvince.js 2014-09-14 23:34:04.000000000 +0100 | |
@@ -41,7 +41,6 @@ | |
var $tooltip = {}; | |
// Common vars | |
- var nodeName = element[0].nodeName.toLowerCase(); | |
var options = $tooltip.$options = angular.extend({}, defaults, config); | |
$tooltip.$promise = fetchTemplate(options.template); | |
var scope = $tooltip.$scope = options.scope && options.scope.$new() || $rootScope.$new(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* angular-strap | |
* @version v2.1.0 - 2014-09-05 | |
* @link http://mgcrea.github.io/angular-strap | |
* @author Olivier Louvignes (olivier@mg-crea.com) | |
* @license MIT License, http://www.opensource.org/licenses/MIT | |
*/ | |
'use strict'; | |
angular.module('mgcrea.ngStrap.tooltip', ['mgcrea.ngStrap.helpers.dimensions']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html ng-app="app"> | |
<body> | |
<div ng-controller="AppCtrl"> | |
<button ng-click="add()">Add</button> | |
<ul> | |
<li ng-repeat="doc in docs"> | |
<span ng-bind="doc|json"></span> | |
</li> | |
</ul> | |
</div> |