Skip to content
This repository was archived by the owner on Nov 29, 2017. It is now read-only.

Make AMD module 'angular-logX' the main AMD module #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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
12 changes: 6 additions & 6 deletions demos/build/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
"version": "0.1.1",
"devDependencies": {
"headjs-notify": "0.9.7",
"requirejs": "~2.1.8",
"requirejs": "~2.1.15",
"requirejs-text": "2.0.10",
"angular": "~1.2",
"angular": "~1.3",
"angular-route": "~1",
"angular-bootstrap": "~0.5.0",
"angular-logDecorator": "^0.1.2"
"angular-logX": "^0.1.5"
},
"dependencies": {
"headjs-notify": "0.9.7",
"requirejs": "~2.1.8",
"requirejs": "~2.1.15",
"requirejs-text": "2.0.10",
"angular": "~1.2",
"angular": "~1.3",
"angular-route": "~1",
"angular-bootstrap": "~0.5.0",
"angular-logDecorator": "^0.1.2"
"angular-logX": "^0.1.5"
}
}
19 changes: 5 additions & 14 deletions src/angular-logX.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,20 @@

/**
* Build a `mindspace.logX` module that registers and configures the LogDecorator for $log
* Also load the ExternalLogger for subsequent require(["mindspace/logger/ExternalLogger"])
*
* If custom applications, simply add `mindspace.logX` namespace to the application's module
* dependency list
*
* This module also exposes (via require( <xxx> ) calls the following:
*
* - supplant()
* - makeTryCatch()
* - ExternalLogger.getInstance()
*
* If custom applications need decorated log entries, simply require `angular-logX`
* and add `mod.name` to the application's module dependency list (where `mod = require('angular-logX')`).
*/

require([
define([

"mindspace/logger/LogDecorator"
, "mindspace/logger/ExternalLogger"

], function( LogDecorator, ExternalLogger )
], function( LogDecorator )
{
var moduleName = 'mindspace.logX';

angular.module( moduleName , [ ] )
return angular.module( moduleName , [ ] )
.config( LogDecorator );

});
Expand Down