How to integrate GruntJS with Netbeans 8

How do I set up Netbeans 8.0.1 with GruntJS?

grunt-sass reference - where and how to use NPM inside netbeans. Where can I use this installation command?

I have installed SASS correctly. I can't find any information on how to, for example, run autoprefixer inside NetBeans using GruntJS on CSS so you can get unneeded prefixes from your CSS.

This is probably the best solution for vendor prefixes, and there is almost no information on the internet about it, or at least that they do it step by step.

+3


source to share


1 answer


In NetBeans 8.0.1, just create a new HTML5 project (or of course use an existing one ...). Right-click the project in the Projects window and choose New> Other. In the dialog that opens, select the HTML5 category and you will see (among others) a JSON file and a Grunt file:



  • create a new JSON file called package.json in your project folder, not at the site root - this is where you'll add NPM dependencies. If you right click on that file or in the project again, you will see the action NPM install

    . If you call it you can install the NPM dependencies of NetBeans
  • create a new Grunt file in your project folder, not in the site root - this will create an "empty" Gruntfile.js by default, and it's up to you how to set up your tasks here. If you right click on this file (in important files) or in the project, you should see a menu item Grunt tasks

    , if you select it and wait for a while, it will show a list of tasks and you can complete them simply by clicking on them (see . this screenshot is for reference)
+5


source







All Articles