Move all packages to a types directory

This commit is contained in:
Andy Hanson
2017-03-24 14:27:52 -07:00
parent f9869dc191
commit 354cec620d
13846 changed files with 0 additions and 0 deletions
@@ -0,0 +1,33 @@
import * as gulp from 'gulp';
import * as templateCache from 'gulp-angular-templatecache';
gulp.task('templatecache:no-arguments', function () {
return gulp.src('templates/**/*.html')
.pipe(templateCache())
.pipe(gulp.dest('public'));
});
gulp.task('templatecache:with-filename', function () {
return gulp.src('templates/**/*.html')
.pipe(templateCache('templates.js'))
.pipe(gulp.dest('public'));
});
gulp.task('templatecache:with-options', function () {
return gulp.src('templates/**/*.html')
.pipe(templateCache({
filename: 'templates.js',
standalone: true,
module: 'app.templates'
}))
.pipe(gulp.dest('public'));
});
gulp.task('templatecache:with-filename-and-options', function () {
return gulp.src('templates/**/*.html')
.pipe(templateCache('templates.js', {
standalone: true,
module: 'app.templates'
}))
.pipe(gulp.dest('public'));
});
+69
View File
@@ -0,0 +1,69 @@
// Type definitions for gulp-angular-templatecache v2.0.0
// Project: https://github.com/miickel/gulp-angular-templatecache
// Definitions by: Aman Mahajan <https://github.com/amanmahajan7>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node"/>
declare module "gulp-angular-templatecache" {
function templatecache(): NodeJS.ReadWriteStream;
function templatecache(filename: string): NodeJS.ReadWriteStream;
function templatecache(options: templatecache.Options): NodeJS.ReadWriteStream;
function templatecache(filename: string, options: templatecache.Options): NodeJS.ReadWriteStream;
namespace templatecache {
interface Options {
/**
* Name to use when concatenating.
*/
filename?: string;
/**
* Prefix for template URLs.
*/
root?: string;
/**
* Name of AngularJS module.
*/
module?: string;
/**
* Create a new AngularJS module, instead of using an existing.
*/
standalone?: boolean;
/**
* Override file base path.
*/
base?: string | Function;
/**
* Wrap the templateCache in a module system. Currently supported systems: RequireJS, Browserify, ES6 and IIFE (Immediately-Invoked Function Expression).
*/
moduleSystem?: string;
/**
* Transform the generated URL before it's put into $templateCache.
*/
transformUrl?: Function;
/**
* Override template header.
*/
templateHeader?: string;
/**
* Override template body.
*/
templateBody?: string;
/**
* Override template footer.
*/
templateFooter?: string;
}
}
export = templatecache;
}
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"paths": {
"q": [ "q/v0" ]
},
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"gulp-angular-templatecache-tests.ts"
]
}