上QQ阅读APP看书,第一时间看更新
Running a project with Grunt
- Once the project has been created in the preceding step, it can be built using the following command:
cd <project name>
grunt build
- The preceding command should complete the project build, as shown in the following screenshot:
- Once the project is built successfully, it can be executed using the following command:
grunt serve
- The preceding command should run the project, as shown in the following screenshot:
- Once the project has started running, it should open the application, running in the default browser, as follows:
The default application was created using the navdrawer template, hence it is showing up with the default navdrawer template. We can open the project code in our favorite IDE and edit it to run again using the Grunt serve command.
However, the NetBeans IDE is providing the built-in plugins and support for npm and Grunt to manage these build and serve activities within the IDE. In addition, NetBeans provide great syntax advice and support for these plugins. Let's review the IDE installation, configuration, and usage in the following section.