@tepez/typescript-build-gulp-tasks
v8.0.0
Published
Tasks for developing typescript applications (used to be with Gulp)
Downloads
54
Readme
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);