
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
grunt-angular-templates
Advanced tools
Grunt build task to concatenate & register your AngularJS templates in the $templateCache
Grunt build task to concatenate & register your AngularJS templates in the $templateCache
Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-angular-templates
Then add this line to your project's grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-angular-templates');
This plugin provides the grunt task ngtemplates
, which will allow you to compile your HTML templates into a single JS file,
which preloads $templateCache
to prevent round-trips to the server.
// grunt.js
grunt.initConfig({
ngtemplates: {
app: {
options: { base: 'src/views' },
src: [ 'src/views/**.html' ],
dest: 'dist/templates.js'
}
}
});
// js/app.js
angular.module('app', [
'app.templates' // Generated by ngtemplates:app
...
]);
Fixes
New
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Copyright (c) 2013 Eric Clemmons Licensed under the MIT license.
FAQs
Grunt build task to concatenate & register your AngularJS templates in the $templateCache
The npm package grunt-angular-templates receives a total of 21,872 weekly downloads. As such, grunt-angular-templates popularity was classified as popular.
We found that grunt-angular-templates demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.