angular-evaporate
Advanced tools
Comparing version 2.0.0 to 2.1.1
@@ -1,5 +0,4 @@ | ||
/* global angular, console */ | ||
'use strict'; | ||
angular | ||
.module('myApp', ['angular-evaporate']) | ||
require('angular') | ||
.module('myApp', [require('../lib/angular-evaporate')]) | ||
.controller('myCtrl', ['$window', '$scope', 'AngularEvaporate', | ||
@@ -6,0 +5,0 @@ function ($window, $scope, AngularEvaporate) { |
@@ -1,4 +0,18 @@ | ||
/* global angular, Evaporate */ | ||
;(function (angular, Evaporate) { | ||
;(function () { | ||
'use strict'; | ||
// get dependencies | ||
// from browserify modules or global variables | ||
var angular; | ||
var Evaporate; | ||
if (typeof module !== 'undefined' && module.exports) { | ||
module.exports = 'angular-evaporate'; | ||
angular = require('angular'); | ||
Evaporate = require('evaporate'); | ||
} else if (typeof window !== 'undefined') { | ||
angular = window.angular; | ||
Evaporate = window.Evaporate; | ||
} | ||
// build module | ||
angular.module('angular-evaporate', []) | ||
@@ -381,2 +395,2 @@ | ||
})(angular, Evaporate); | ||
})(); |
{ | ||
"version": "2.0.0", | ||
"version": "2.1.1", | ||
"name": "angular-evaporate", | ||
@@ -28,2 +28,3 @@ "description": "AngularJS module for the EvaporateJS library", | ||
"bootstrap": "^3.3.7", | ||
"browserify": "^13.1.0", | ||
"chai": "^3.5.0", | ||
@@ -46,5 +47,7 @@ "diff": "^3.0.0", | ||
"scripts": { | ||
"start": "node ./example/server.js", | ||
"start": "npm run-script example.compile && node ./example/server.js", | ||
"test": "karma start ./test/karma.conf.js", | ||
"uglify": "cd lib && uglifyjs --compress --mangle --screw-ie8 -o angular-evaporate.min.js --source-map angular-evaporate.min.js.map -- angular-evaporate.js" | ||
"example.compile": "cd example && browserify -o bundle.js index.js", | ||
"lib.minify": "cd lib && uglifyjs --compress --mangle --screw-ie8 -o angular-evaporate.min.js --source-map angular-evaporate.min.js.map -- angular-evaporate.js", | ||
"start.env": "foreman run npm start" | ||
}, | ||
@@ -51,0 +54,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42606
756
18