5

I am trying to learn ASP.NET Core 1.0, and I am creating a ASP.NET Core project with the "Web Application" template, but I am seeing a discrepancy with what I am expecting. I was under the impression that npm and gulp were included in the project as the documentation states:

The template also includes Node Package Manager (npm) and Gulp, making it easier to add bundling and minification to a project.

And also:

When you create a new web project using ASP.NET Core Web Application template, Visual Studio includes the Gulp.js npm package, the gulpfile.js file, and a set of Gulp dependencies.

However, I am not seeing npm as a package management option, nor am I seeing any files related to npm or Gulp. I do, however, see Bower options.

I am using Microsoft .NET Core Tools 1.0.0 (Preview 2).

2
  • Are you using the empty sub-template? Commented Jul 6, 2016 at 17:54
  • No, I am using Web Application template. Commented Jul 6, 2016 at 17:57

1 Answer 1

7

gulp/grunt/npm is still supported but was removed from the default project template in the preview tooling that shipped with ASP.NET Core RTM

I think you can just manually add a package.json file and a gulpfile.js and makes some edits in the scripts section of project.json in the web app to get back in business as it was in RC2

the default template uses a new bundler minifier

there was also discussion about it in community standup if you want to learn the reasoning behind the changes

Sign up to request clarification or add additional context in comments.

5 Comments

Thanks. Do you know if it's documented anywhere?
what do you mean, how to manually setup gulp/grunt/npm in a new project? or how to use the new bundler/minifier included in the latest project template?
I meant more along the lines of a change log of it being removed out of the box or an announcement along with the reasoning. Because the current documentation is still saying it's included and those files are generated, from the link in my question. The only place I've seen it being removed or discussion related to it is in that video you linked.
there are still quite a few things in the docs that are not up to date with RTM, it is mentioned in the Release Notes and Known Issues section here github.com/aspnet/Tooling and in the notes from the community standup blogs.msdn.microsoft.com/webdev/2016/06/22/…
just learned that you can right click the bundleconfig.json file in vs 2015 and choose Bundler & Minifier > Convert To gulp. that creates a gulp file for you but doesn't update the scripts section of project.json

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.