npm.io
8.0.0 • Published 1 year ago

@tepez/typescript-build-gulp-tasks

Licence
ISC
Version
8.0.0
Deps
9
Size
9 kB
Vulns
0
Weekly
0

typescript-build-gulp-tasks

Gulp 4 tasks for developing typescript applications

Usage

Install

npm install --save-dev @tepez/typescript-build-gulp-tasks
Config typescript:

Create a tsconfig.json file in the root directory of the project.

Add to gulpfile.ts

Make sure to use typescript gulpfile. We count to it to load ts-node.

import { getConfig, register, tasks, IPartialConfig } from '@tepez/typescript-build-gulp-tasks'
import * as Gulp from 'gulp'
import * as _ from 'lodash'

const partialConfig: IPartialConfig = {
    // add partial updates to the default config here
    unit: {
        srcFiles: [
            'spec/**/*.spec.ts',
        ]
    }
};

_.merge(getConfig(), partialConfig);

register(Gulp);

// Optional: make the dev-unit-test task the default task
Gulp.task('default', tasks.devUnitTest);