Using Grunt for Build
In this action, you build a JavaScript project with Grunt.
Graphical Build
Add Build with Grunt, when configuring build actions.
The parameters are described in the following table.
| Parameter | Description |
|---|---|
| Action Name | Name of a build action. It can be customized. |
| Tool Version | Select a tool version. |
| Commands | Configure the Grunt commands. You can also use default commands. If you have special build requirements, enter your custom build script in the text box. |
Code-based Build
1 2 3 4 5 6 7 8 9 10 11 12 | version: 2.0 # The value must be 2.0. steps: BUILD: - grunt: inputs: command: |- npm config set registry http://7.223.219.40/npm/ #npm cache clean -f #npm audit fix --force npm install --verbose grunt npm run build |
| Parameter | Type | Description | Mandatory | Default Value |
|---|---|---|---|---|
| command | String | Commands to be run. | Yes | None |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot