browserify-ngannotate
Advanced tools
Comparing version 0.6.0 to 0.7.0
10
index.js
@@ -12,3 +12,4 @@ 'use strict'; | ||
x: [], | ||
ext: [] | ||
ext: [], | ||
sourcemap: opts._flags.debug | ||
}); | ||
@@ -24,2 +25,9 @@ | ||
if (opts.sourcemap) { | ||
opts.sourcemap = { | ||
inFile: file, | ||
inline: true | ||
}; | ||
} | ||
var data = ''; | ||
@@ -26,0 +34,0 @@ |
{ | ||
"name": "browserify-ngannotate", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "A browserify transform that uses ng-annotate to add dependency injection annotations to your AngularJS source code, preparing it for minification.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "./node_modules/.bin/istanbul test -x \"**/spec/**\" ./node_modules/.bin/_mocha -- -R spec spec", | ||
"report-cov": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls" | ||
"test": "istanbul test -x \"**/spec/**\" _mocha -- -R spec spec", | ||
"report-cov": "cat ./coverage/lcov.info | coveralls" | ||
}, | ||
@@ -37,2 +37,3 @@ "repository": { | ||
"chai": "^1.10.0", | ||
"convert-source-map": "^0.4.1", | ||
"coveralls": "^2.11.2", | ||
@@ -39,0 +40,0 @@ "istanbul": "^0.3.5", |
@@ -22,2 +22,9 @@ # browserify-ngannotate | ||
### Source maps | ||
Sourcemapping will be enabled automatically when browserify is in `debug` mode: | ||
```bash | ||
browserify --debug -t browserify-ngannotate app.js > bundle.js | ||
``` | ||
### File extensions | ||
@@ -24,0 +31,0 @@ Define the filetypes to transform. Prevents other resouces like .json or .css from being processed, if you are including them with require(). |
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
3677
42
47
6