181
rated 0 times
[
188]
[
7]
/ answers: 1 / hits: 42330
/ 8 Years ago, thu, april 14, 2016, 12:00:00
How to run a npm script command from inside a gulp task?
package.json
scripts:
{
tsc: tsc -w
}
gulpfile.js
gulp.task('compile:app', function(){
return gulp.src('src/**/*.ts')
.pipe(/*npm run tsc*/)
.pipe(gulp.dest('./dist'))
.pipe(connect.reload());
});
I want to do this because running npm run tsc
does not give me any error but if I use gulp-typescript
to compile .ts
then I get bunch of errors.
More From » node.js