Gruntfile.js and npm package.json für SAPUI5 Projects.
The application files must be in the webapp folder. However, the name and path can be changed in the Gruntfile.js.
-
Install Node.js to get npm.
https://nodejs.org/en/ -
Install grunt:
npm install -g grunt-cli
- Navigate to your project folder and install npm dependencies.
npm install
- Now you can run the sample project through the tasks using the grunt commands below.
- Creates /dist folder
- Creates -dbg files
- Creates Component-preload.js
- Minify controllers
- Minify views
- Minify css
grunt
- Creates /dist folder
- Creates -dbg files
- Creates Component-preload.js
- Minify controllers
- Minify views
- Minify css
- Start local web server
- Show webapp in default browser
grunt localhost