Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-angular-tpl2js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-angular-tpl2js

Use gulp to convert Angular templates to inline JavaScript

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

gulp-angular-tpl2js

Build Status NPM Version Dependency Status devDependency Status

Install

npm install gulp-angular-tpl2js --save-dev

API

tpl2js([config])

var gulp = require('gulp');
var tpl2js = require('gulp-angular-tpl2js');

gulp.task('inline', function() {
    return gulp.src('/js/directives/*.js')
        .pipe(tpl2js())
        .pipe(gulp.dest('/dest'));
});
config

include for retrieving ng-include templates and HTMLMinifier, a relay for html-minifier options

// defaults
var config = {
    include: false,
    HTMLMinifier: {
        collapseWhitespace: true,
        removeComments: true
    }
}

var gulp = require('gulp');
var tpl2js = require('gulp-angular-tpl2js');

gulp.task('inline', function() {
    return gulp.src('/js/directives/*.js')
        .pipe(tpl2js({include: true})) // ng-include parsed
        .pipe(gulp.dest('/dest'));
});

FAQs

Package last updated on 05 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc