1.1.2 • Published 7 years ago

tsgulp v1.1.2

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

TSGulp

Helpful Typescript Decorators for Gulp

Installation

  • NPM: npm install tsgulp --save-dev

Note: It's recommended to additionally install ts-node to allow gulp to read Typescript files

  • NPM: npm install ts-node --save-dev

Documentation

Coming soon!

Example gulpfile.ts

import * as typescript from 'gulp-typescript';
import * as TSGulp from 'tsgulp';
import gulp from 'gulp';
import del from 'del';


@TSGulp.Project()
class GulpFile {
    distFolder = 'dist';
    tsProject = typescript.createProject('tsconfig.json');

    constructor() {
        this.tsProject.config.exclude = [
            'gulpfile.ts'
        ];
    }

    clean() {
        return del(this.distFolder);
    }

    @TSGulp.Dependencies('clean')
    compile() {
        this.tsProject.src()
            .pipe(this.tsProject())
            .pipe(gulp.dest(this.distFolder));
    }

    @TSGulp.Default()
    @TSGulp.Dependencies('clean', 'compile')
    distribute() { }
}
1.1.2

7 years ago

1.10.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago