Socket
Book a DemoInstallSign in
Socket

laravel-elixir-ng-templates

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-elixir-ng-templates

Laravel Elixir AngularJS Templates

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

laravel-elixir-ng-templates

Simple extension to laravel elixir that concatenates and registers AngularJS templates in the $templateCache.

Install

npm install --save laravel-elixir-ng-templates

Usage

Example Gulpfile:

var elixir = require("laravel-elixir");

require("laravel-elixir-ng-templates");

elixir(function(mix) {
  mix.ngTemplates();
});

Arguments

source:
  • a globbing path that is passed to gulp.src()
  • defaults to resources/assets/templates/**/*.html
output:
  • output directory for the compiled file
  • defaults to resources/assets/js/templates.js
options:
  • options object for gulp-angular-templatecache
  • for a list of options check their docs

Advanced example

elixir(function(mix) {
  mix.ngTemplates('some/other/dir/**/*.html', 'public/assets', {
    filename: 'angular-tpls.js',
    root: 'tpls/',
    module: 'tpls'
  });
});

TODO

  • watch
  • sourcemaps (?)

Keywords

laravel

FAQs

Package last updated on 07 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.