Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'prebuild' scripts in project.json doesn't run

I have a .NET 5 web application using the DNX framework, and I want to run 'npm install', 'bower install' and others, whenever I build the project.

Right now I'm able to do so on publish, using 'prepublish', but it doesn't seem to work with 'prebuild', although I saw it is possible here

What I have now:

"scripts": {
    "prepublish": [ "npm install", "bower install", "tsd install", "gulp min" ]
}
like image 706
user265732 Avatar asked Aug 26 '15 07:08

user265732


1 Answers

As of RC1, you have to "produce outputs" to pipe the build through dnu:

image

image

like image 192
Stajs Avatar answered Sep 18 '22 05:09

Stajs