1.1.2 • Published 6 years ago

tsgulp v1.1.2

Weekly downloads
9
License
MIT
Repository
github
Last release
6 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

6 years ago

1.10.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago