gulp-angular-tpl2js
Advanced tools
Comparing version 0.0.5 to 1.0.0
56
index.js
@@ -10,40 +10,40 @@ var objectAssign = require('object-assign'); | ||
options = options || {}; | ||
options = options || {}; | ||
return new Transform({ | ||
objectMode: true, | ||
transform: function modifyContents(file, enc, cb) { | ||
return new Transform({ | ||
objectMode: true, | ||
transform: function modifyContents(file, enc, cb) { | ||
var self = this; | ||
var self = this; | ||
var run = new VinylBufferStream(function (buf, done) { | ||
var fileOptions = objectAssign({target: file.path, gulp: true}, options); | ||
var run = new VinylBufferStream(function (buf, done) { | ||
var fileOptions = objectAssign({target: file.path, gulp: true}, options); | ||
if (fileOptions.relativeTo === undefined && (fileOptions.root || file.path)) { | ||
fileOptions.relativeTo = path.dirname(path.resolve(options.root || file.path)); | ||
} | ||
if (fileOptions.relativeTo === undefined && (fileOptions.root || file.path)) { | ||
fileOptions.relativeTo = path.dirname(path.resolve(options.root || file.path)); | ||
} | ||
tpl2js.inline(buf, fileOptions || {}, function (err, result) { | ||
tpl2js.inline(buf, fileOptions || {}, function (err, result) { | ||
if(err) { | ||
done(err); | ||
return; | ||
} | ||
if (err) { | ||
done(err); | ||
return; | ||
} | ||
done(null, new Buffer(result)); | ||
}); | ||
}); | ||
done(null, new Buffer(result)); | ||
}); | ||
}); | ||
run(file, function (err, contents) { | ||
run(file, function (err, contents) { | ||
if (err) { | ||
self.emit('error', new PluginError('gulp-angular-tpl2js', err, {fileName: file.path})); | ||
} else { | ||
file.contents = contents; | ||
self.push(file); | ||
} | ||
cb(); | ||
}); | ||
if (err) { | ||
self.emit('error', new PluginError('gulp-angular-tpl2js', err, {fileName: file.path})); | ||
} else { | ||
file.contents = contents; | ||
self.push(file); | ||
} | ||
}); | ||
cb(); | ||
}); | ||
} | ||
}); | ||
}; |
{ | ||
"name": "gulp-angular-tpl2js", | ||
"version": "0.0.5", | ||
"version": "1.0.0", | ||
"description": "Use gulp to convert Angular templates to inline JavaScript", | ||
"files": [ | ||
"index.js" | ||
], | ||
"main": "index.js", | ||
"repository": { | ||
@@ -15,17 +13,17 @@ "type": "git", | ||
"devDependencies": { | ||
"chai": "^3.5.0", | ||
"coveralls": "^2.11.9", | ||
"gulp": "^3.9.1", | ||
"gulp-istanbul": "^0.10.4", | ||
"gulp-mocha": "^2.2.0", | ||
"mocha": "^2.4.5", | ||
"vinyl": "^1.1.1", | ||
"vinyl-fs-fake": "^1.1.0" | ||
"chai": "4.0.2", | ||
"coveralls": "2.13.1", | ||
"gulp": "3.9.1", | ||
"gulp-istanbul": "1.1.2", | ||
"gulp-mocha": "4.3.1", | ||
"mocha": "3.4.2", | ||
"vinyl": "2.0.2", | ||
"vinyl-fs-fake": "1.1.0" | ||
}, | ||
"dependencies": { | ||
"angular-tpl2js": "^0.0.10", | ||
"gulp-util": "^3.0.7", | ||
"object-assign": "^4.0.1", | ||
"readable-stream": "^2.1.0", | ||
"vinyl-bufferstream": "^1.0.1" | ||
"angular-tpl2js": "1.0.0", | ||
"gulp-util": "3.0.8", | ||
"object-assign": "4.1.1", | ||
"readable-stream": "2.3.3", | ||
"vinyl-bufferstream": "1.0.1" | ||
}, | ||
@@ -32,0 +30,0 @@ "scripts": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
22955
8
1
+ Addedangular-tpl2js@1.0.0(transitive)
+ Addedasync@2.5.0(transitive)
+ Addedcheerio@0.22.0(transitive)
+ Addedclean-css@4.1.11(transitive)
+ Addedcommander@2.11.0(transitive)
+ Addeddomhandler@2.4.2(transitive)
+ Addedhtml-minifier@3.5.2(transitive)
+ Addedhtmlparser2@3.10.1(transitive)
+ Addedlodash.assignin@4.2.0(transitive)
+ Addedlodash.bind@4.2.1(transitive)
+ Addedlodash.defaults@4.2.0(transitive)
+ Addedlodash.filter@4.6.0(transitive)
+ Addedlodash.flatten@4.4.0(transitive)
+ Addedlodash.foreach@4.5.0(transitive)
+ Addedlodash.map@4.6.0(transitive)
+ Addedlodash.merge@4.6.2(transitive)
+ Addedlodash.pick@4.4.0(transitive)
+ Addedlodash.reduce@4.6.0(transitive)
+ Addedlodash.reject@4.6.0(transitive)
+ Addedlodash.some@4.6.0(transitive)
+ Addedprocess-nextick-args@1.0.7(transitive)
+ Addedreadable-stream@2.3.33.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedstring_decoder@1.0.31.3.0(transitive)
+ Addeduglify-js@3.0.28(transitive)
- Removedabab@1.0.4(transitive)
- Removedacorn@2.7.0(transitive)
- Removedacorn-globals@1.0.9(transitive)
- Removedajv@6.12.6(transitive)
- Removedalign-text@0.1.4(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedangular-tpl2js@0.0.10(transitive)
- Removedasn1@0.2.6(transitive)
- Removedassert-plus@1.0.0(transitive)
- Removedasync@0.2.102.6.4(transitive)
- Removedasynckit@0.4.0(transitive)
- Removedaws-sign2@0.7.0(transitive)
- Removedaws4@1.13.2(transitive)
- Removedbcrypt-pbkdf@1.0.2(transitive)
- Removedcamelcase@1.2.1(transitive)
- Removedcaseless@0.12.0(transitive)
- Removedcenter-align@0.1.3(transitive)
- Removedchange-case@3.0.2(transitive)
- Removedcheerio@0.20.0(transitive)
- Removedclean-css@3.4.28(transitive)
- Removedcliui@2.1.0(transitive)
- Removedcombined-stream@1.0.8(transitive)
- Removedcommander@2.8.1(transitive)
- Removedconstant-case@2.0.0(transitive)
- Removedcore-util-is@1.0.2(transitive)
- Removedcssom@0.3.8(transitive)
- Removedcssstyle@0.2.37(transitive)
- Removeddashdash@1.14.1(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddeep-is@0.1.4(transitive)
- Removeddelayed-stream@1.0.0(transitive)
- Removeddomhandler@2.3.0(transitive)
- Removeddot-case@2.1.1(transitive)
- Removedecc-jsbn@0.1.2(transitive)
- Removedentities@1.0.0(transitive)
- Removedescodegen@1.14.3(transitive)
- Removedesprima@4.0.1(transitive)
- Removedestraverse@4.3.0(transitive)
- Removedesutils@2.0.3(transitive)
- Removedextend@3.0.2(transitive)
- Removedextsprintf@1.3.0(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedfast-levenshtein@2.0.6(transitive)
- Removedforever-agent@0.6.1(transitive)
- Removedform-data@2.3.3(transitive)
- Removedgetpass@0.1.7(transitive)
- Removedhar-schema@2.0.0(transitive)
- Removedhar-validator@5.1.5(transitive)
- Removedheader-case@1.0.1(transitive)
- Removedhtml-minifier@2.1.7(transitive)
- Removedhtmlparser2@3.8.3(transitive)
- Removedhttp-signature@1.2.0(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-lower-case@1.1.3(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedis-upper-case@1.1.2(transitive)
- Removedisstream@0.1.2(transitive)
- Removedjsbn@0.1.1(transitive)
- Removedjsdom@7.2.2(transitive)
- Removedjson-schema@0.4.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedjson-stringify-safe@5.0.1(transitive)
- Removedjsprim@1.4.2(transitive)
- Removedkind-of@3.2.2(transitive)
- Removedlazy-cache@1.0.4(transitive)
- Removedlevn@0.3.0(transitive)
- Removedlongest@1.0.1(transitive)
- Removedlower-case-first@1.0.2(transitive)
- Removedmime-db@1.52.0(transitive)
- Removedmime-types@2.1.35(transitive)
- Removednwmatcher@1.4.4(transitive)
- Removedoauth-sign@0.9.0(transitive)
- Removedoptionator@0.8.3(transitive)
- Removedparse5@1.5.1(transitive)
- Removedpascal-case@2.0.1(transitive)
- Removedpath-case@2.1.1(transitive)
- Removedperformance-now@2.1.0(transitive)
- Removedprelude-ls@1.1.2(transitive)
- Removedpsl@1.15.0(transitive)
- Removedpunycode@2.3.1(transitive)
- Removedqs@6.5.3(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedrequest@2.88.2(transitive)
- Removedright-align@0.1.3(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsax@1.4.1(transitive)
- Removedsentence-case@2.1.1(transitive)
- Removedsnake-case@2.1.0(transitive)
- Removedsource-map@0.4.40.6.1(transitive)
- Removedsshpk@1.18.0(transitive)
- Removedswap-case@1.1.2(transitive)
- Removedsymbol-tree@3.2.4(transitive)
- Removedtitle-case@2.1.1(transitive)
- Removedtough-cookie@2.5.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removedtunnel-agent@0.6.0(transitive)
- Removedtweetnacl@0.14.5(transitive)
- Removedtype-check@0.3.2(transitive)
- Removeduglify-js@2.6.4(transitive)
- Removeduglify-to-browserify@1.0.2(transitive)
- Removedupper-case-first@1.1.2(transitive)
- Removeduri-js@4.4.1(transitive)
- Removeduuid@3.4.0(transitive)
- Removedverror@1.10.0(transitive)
- Removedwebidl-conversions@2.0.1(transitive)
- Removedwhatwg-url-compat@0.6.5(transitive)
- Removedwindow-size@0.1.0(transitive)
- Removedword-wrap@1.2.5(transitive)
- Removedwordwrap@0.0.2(transitive)
- Removedxml-name-validator@2.0.1(transitive)
- Removedyargs@3.10.0(transitive)
Updatedangular-tpl2js@1.0.0
Updatedgulp-util@3.0.8
Updatedobject-assign@4.1.1
Updatedreadable-stream@2.3.3
Updatedvinyl-bufferstream@1.0.1