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

后端 未结 4 913
长发绾君心
长发绾君心 2021-02-19 10:56

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 ab

4条回答
  •  猫巷女王i
    2021-02-19 11:19

    I haven't looked for beta5 but DNX have some documentation about the supported scripts right here.

    Basically this:

    {
      "scripts": {
        "prebuild": "echo before building",
        "postbuild": "echo after building",
        "prepack": "echo before packing",
        "postpack": "echo after packing",
        "prerestore": "echo before restoring packages",
        "postrestore": "echo after restoring packages"
      }
    }
    

提交回复
热议问题