Gathering detailed insights and metrics for @rollup-extras/plugin-angularjs-template-cache
Gathering detailed insights and metrics for @rollup-extras/plugin-angularjs-template-cache
Gathering detailed insights and metrics for @rollup-extras/plugin-angularjs-template-cache
Gathering detailed insights and metrics for @rollup-extras/plugin-angularjs-template-cache
Collection of rollup plugins
npm install @rollup-extras/plugin-angularjs-template-cache
Typescript
Module System
Min. Node Version
Node Version
NPM Version
66.6
Supply Chain
93.2
Quality
75.2
Maintenance
100
Vulnerability
99.6
License
@rollup-extras/plugin-copy@1.11.0
Updated on Mar 28, 2025
@rollup-extras/utils@1.4.6
Updated on Mar 26, 2025
@rollup-extras/plugin-copy@1.10.0
Updated on Mar 26, 2025
@rollup-extras/plugin-externals@1.2.2
Updated on Nov 08, 2023
@rollup-extras/plugin-externals@1.2.1
Updated on Nov 07, 2023
@rollup-extras/plugin-externals@1.2.0
Updated on Oct 11, 2023
TypeScript (91.72%)
JavaScript (6.97%)
HTML (1.31%)
Total Downloads
1,604
Last Day
1
Last Week
7
Last Month
38
Last Year
312
MIT License
13 Stars
436 Commits
2 Watchers
14 Branches
3 Contributors
Updated on Mar 28, 2025
Minified
Minified + Gzipped
Latest Version
1.2.4
Package Id
@rollup-extras/plugin-angularjs-template-cache@1.2.4
Unpacked Size
23.16 kB
Size
4.33 kB
File Count
8
NPM Version
9.8.1
Node Version
18.18.0
Published on
Oct 11, 2023
Cumulative downloads
Total Downloads
1
Plugin to build AngularJS template cache.
Using npm:
npm install --save-dev @rollup-extras/plugin-angularjs-template-cache
Basic:
1import templatesCache from '@rollup-extras/plugin-angularjs-template-cache'; 2 3export default { 4 input: 'src/index.js', 5 6 output: { 7 format: 'es', 8 dir: 'dest' 9 }, 10 11 plugins: [ 12 templateCache('./views/**/*.html'), 13 ], 14}
With useImports = true
and rootDir
:
1import templatesCache from '@rollup-extras/plugin-angularjs-template-cache'; 2import htmlImport from 'rollup-plugin-html'; 3 4export default { 5 input: 'src/index.js', 6 7 output: { 8 format: 'es', 9 dir: 'dest' 10 }, 11 12 plugins: [ 13 htmlImport({include: '**/*.html'}), 14 templateCache({ templates: './src/**/*.html', rootDir: './src', useImports: true}), 15 ], 16}
1type AngularTemplatesCachePluginOptions = { 2 templates?: string | string[], // defaults to ./**/*.html, glob to get files into templateCache 3 watch?: boolean, // true by default 4 rootDir?: string, // default to '.', root directory from which the plugin will construct template URIs (IDs) 5 transformTemplateUri?: (uri: string) => string, // last chance to transform template URI before actually using it in `templateCache.put` call 6 processHtml?: (html: string) => string, // function to process html templates, for example `htmlmin`, not applied when `useImports = true` 7 pluginName?: string, // defaults to '@rollup-extras/plugin-angularjs-template-cache' 8 angularModule?: string, // 'templates' by default, angular module name 9 standalone?: boolean, // true by default, true if we plugin needs to create module and false to just retrieve it 10 module?: string, // 'templates' by default, javascript module name, import not automatically injected into bundle 11 importAngular?: boolean, // default true, defines if it is required to import angular or to use global 12 autoImport?: boolean, // false by default, automatically import generated module (useful for standalone module referenced by name) 13 verbose?: boolean | 'list-filenames', // false by default 14 useImports?: boolean, // false by default, instead of reading files from filesystem generate imports to get them through rollup pipeline. this probably requires additional plugins like `rollup-plugin-html` 15 transformHtmlImportsToUris?: boolean // false by default, if true replaces template content with its Uri when using bare import 16} | string | string[];
No vulnerabilities found.
No security vulnerabilities found.
Last Day
0%
1
Compared to previous day
Last Week
-50%
7
Compared to previous week
Last Month
-24%
38
Compared to previous month
Last Year
-63.6%
312
Compared to previous year