Executes a Grunt file using the given inputs as parameters. You can specify which gruntfile, tasks and targets, additional parameters and which version of Node you want to execute the grunt file with. Please view Review the special considerations if you are using the automatic install feature.
Inputs
Input Name | Input Code | Required | Description |
---|---|---|---|
Grunt File | FDGRUNT_INP_GRUNT_FILE | No | Absolute or relative path to Grunt file. Relative path will be looked in temp and artifact directory. If not provided this value will be defaulted to gruntfile.js. |
Tasks | FDGRUNT_INP_TASKS | No | Comma seperated list of tasks to run. If not provided the default task will run. You can specify targets with 'Task:Target'. |
Additional Parameters | FDGRUNT_INP_ADDITIONAL_PARAMETERS | No | Additional arguments to pass to Grunt. --gruntfile is not required as it is handled by Grunt File input. |
Node Executable Path | FDGRUNT_INP_NODE_EXE_PATH | No | An absolute path to a Node executable. If provided this will override the Node version input. |
Install Node Version | FDGRUNT_INP_NODE_VERSION | No | If selected FlexDeploy will install this version of node if it doesn't already exist and use this for plugin execution. Possible versions include: v14, v13, v12, v11, v10, v8, v6, v4. FlexDeploy will install the latest version of the major release specified. |
Grunt CLI Version | FDGRUNT_INP_GRUNT_CLI_VERSION | No | If selected FlexDeploy will install this version of Grunt if it doesn't already exist and use this for plugin execution. Possible versions include: v1.3.2, v1.2.0, v1.1.0, v1.0.1, v0.1.13. |
Grunt Version | FDGRUNT_INP_GRUNT_VERSION | No | If selected FlexDeploy will install this version of Grunt if it doesn't already exist and use this for plugin execution. Possible versions include: v1.3.0, v1.2.1, v1.1.0, v1.0.4, v0.4.5, v0.3.17 |
Application Directory | FDGRUNT_INP_APPLICATION_DIRECTORY | No | A relative path to a directory containing package.json. This path will be relative to temp directory. If not provided temp directory will be used. This path is where grunt will be installed if applicable and executed. |
Artifacts so Save | FDGRUNT_INP_ARTIFACTS_TO_SAVE | No | A relative path to a directory to save as an artifact for build workflows. This path will be relative to temp directory. If not provided no artifact will be created. You can specify the entire temp directory by entering a dot (.) in the input. |
Artifacts
This operation produces artifacts that will be stored in the artifacts repository.
...