mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Move all packages to a types directory
This commit is contained in:
@@ -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
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user