gulp-inject
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="4.2.1"></a> | ||
## [4.2.1](https://github.com/klei/gulp-inject/compare/v4.2.0...v4.2.1) (2017-09-15) | ||
### Bug Fixes | ||
* **endtag:** use correct default for endtag ([#228](https://github.com/klei/gulp-inject/issues/228)) ([687bfdf](https://github.com/klei/gulp-inject/commit/687bfdf)), closes [#224](https://github.com/klei/gulp-inject/issues/224) | ||
<a name="4.2.0"></a> | ||
@@ -7,0 +17,0 @@ # [4.2.0](https://github.com/klei/gulp-inject/compare/v4.1.0...v4.2.0) (2016-12-20) |
{ | ||
"name": "gulp-inject", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "A javascript, stylesheet and webcomponent injection plugin for Gulp, i.e. inject file references into your index.html", | ||
@@ -63,2 +63,2 @@ "keywords": [ | ||
} | ||
} | ||
} |
@@ -9,3 +9,3 @@ # gulp-inject | ||
<!-- MDTOC maxdepth:2 firsth1:0 numbering:0 flatten:0 bullets:1 updateOnSave:1 --> | ||
<!-- MDTOC maxdepth:3 firsth1:0 numbering:0 flatten:0 bullets:1 updateOnSave:1 --> | ||
@@ -18,3 +18,6 @@ - [Introduction](#introduction) | ||
- [Injecting files from multiple source streams](#injecting-files-from-multiple-source-streams) | ||
- [Multiple sources when order is important](#multiple-sources-when-order-is-important) | ||
- [Injecting some files into `<head>` and some into `<body>`](#injecting-some-files-into-head-and-some-into-body) | ||
- [Method 1: Use `gulp-inject`'s `starttag` option.](#method-1-use-gulp-injects-starttag-option) | ||
- [Method 2: Use `gulp-inject`'s `name` option.](#method-2-use-gulp-injects-name-option) | ||
- [Injecting all files for development](#injecting-all-files-for-development) | ||
@@ -30,2 +33,17 @@ - [Injecting AngularJS scripts for development](#injecting-angularjs-scripts-for-development) | ||
- [inject(sources, options)](#injectsources-options) | ||
- [Options](#options) | ||
- [options.ignorePath](#optionsignorepath) | ||
- [options.relative](#optionsrelative) | ||
- [options.addPrefix](#optionsaddprefix) | ||
- [options.addSuffix](#optionsaddsuffix) | ||
- [options.addRootSlash](#optionsaddrootslash) | ||
- [options.name](#optionsname) | ||
- [options.removeTags](#optionsremovetags) | ||
- [options.empty](#optionsempty) | ||
- [options.starttag](#optionsstarttag) | ||
- [options.endtag](#optionsendtag) | ||
- [options.transform](#optionstransform) | ||
- [options.selfClosingTag](#optionsselfclosingtag) | ||
- [~~options.templateString~~](#optionstemplatestring) | ||
- [~~options.sort~~](#optionssort) | ||
- [inject.transform](#injecttransform) | ||
@@ -601,3 +619,3 @@ - [License](#license) | ||
#### sources | ||
Parameter: `sources` | ||
Type: `Stream` | ||
@@ -607,4 +625,10 @@ | ||
**N.B:** The old behavior, where you specify target as a string is deprecated since `v.1.0`. | ||
Parameter: `options` | ||
Type: `Object` | ||
For available options see [Options](#options) | ||
### Options | ||
#### options.ignorePath | ||
@@ -838,2 +862,10 @@ Type: `String` or `Array` | ||
#### options.quiet | ||
Type: `Boolean` | ||
Default: `false` | ||
Lower the verbosity by setting this to true, suppressing the logging of successful injections. | ||
#### ~~options.templateString~~ | ||
@@ -885,35 +917,35 @@ | ||
#### inject.transform.html | ||
##### inject.transform.html | ||
The default transform function for files into `html`, or other file types not `jade`, `pug`, `jsx`, `slm`, `less`, `scss`, `sass` or `haml`. | ||
#### inject.transform.jade | ||
##### inject.transform.jade | ||
The default transform function for files into `jade`. | ||
#### inject.transform.pug | ||
##### inject.transform.pug | ||
The default transform function for files into `pug`. | ||
#### inject.transform.jsx | ||
##### inject.transform.jsx | ||
The default transform function for files into `jsx`. | ||
#### inject.transform.slm | ||
##### inject.transform.slm | ||
The default transform function for files into `slm`. | ||
#### inject.transform.haml | ||
##### inject.transform.haml | ||
The default transform function for files into `haml`. | ||
#### inject.transform.less | ||
##### inject.transform.less | ||
The default transform function for files into `less`. | ||
#### inject.transform.sass | ||
##### inject.transform.sass | ||
The default transform function for files into `sass`. | ||
#### inject.transform.scss | ||
##### inject.transform.scss | ||
@@ -920,0 +952,0 @@ The default transform function for files into `scss`. |
@@ -109,3 +109,4 @@ 'use strict'; | ||
if (filesCount) { | ||
log(cyan(filesCount) + ' files into ' + magenta(target.relative) + '.'); | ||
var pluralState = filesCount > 1 ? 's' : ''; | ||
log(cyan(filesCount) + ' file' + pluralState + ' into ' + magenta(target.relative) + '.'); | ||
} else { | ||
@@ -148,3 +149,3 @@ log('Nothing to inject into ' + magenta(target.relative) + '.'); | ||
var startTag = getTagRegExp(opt.tags.start(targetExt, ext, opt.starttag), ext, opt); | ||
var endTag = getTagRegExp(opt.tags.end(targetExt, ext, opt.starttag), ext, opt); | ||
var endTag = getTagRegExp(opt.tags.end(targetExt, ext, opt.endtag), ext, opt); | ||
@@ -151,0 +152,0 @@ content = inject(content, { |
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
54432
710
963