.gitlab-ci.yml file used in the Code Studio pipeline, see the standard template.The code examples in this section can be used for Node.js applications by including acquia/node-template instead of acquia/standard-template:
include:
- project: 'acquia/node-template'.gitlab-ci.yml fileTo use a custom .gitlab-ci.yml file to customize a default Code Studio pipeline, change the CI/CD configuration file path of the project:
.gitlab-ci.yml file.To revert to the original configuration file settings, set the path to gitlab-ci/Auto-DevOps.acquia.gitlab-ci.yml@acquia/standard-template.
For any default job run by Code Studio Auto DevOps, you can:
A common use case for customizing a job is to build front-end dependencies. Front-end dependencies include final front-end asset files, such as minified .css and .js files. You can build front-end dependencies it in many ways. A quick way to build front-end dependencies is to add post-install-cmd to your project’s composer.json file. The post-install-cmd must contain the commands that must be executed to build your front-end dependencies.
For example, in composer.json:
"post-install-cmd": [
"cd docroot/themes/custom/<my_theme> && rm -rf node_modules && npm install && npm run build"
] Ensure that you add the path to your custom theme in the installer-paths key of the composer.json file. For an example, see drupal-recommended-project.
For information about changing the Node.js version of your Drupal or Node.js application, visit Changing the Node.js version.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
.gitlab-ci.yml file used in the Code Studio pipeline, see the standard template.The code examples in this section can be used for Node.js applications by including acquia/node-template instead of acquia/standard-template:
include:
- project: 'acquia/node-template'.gitlab-ci.yml fileTo use a custom .gitlab-ci.yml file to customize a default Code Studio pipeline, change the CI/CD configuration file path of the project:
.gitlab-ci.yml file.To revert to the original configuration file settings, set the path to gitlab-ci/Auto-DevOps.acquia.gitlab-ci.yml@acquia/standard-template.
For any default job run by Code Studio Auto DevOps, you can:
A common use case for customizing a job is to build front-end dependencies. Front-end dependencies include final front-end asset files, such as minified .css and .js files. You can build front-end dependencies it in many ways. A quick way to build front-end dependencies is to add post-install-cmd to your project’s composer.json file. The post-install-cmd must contain the commands that must be executed to build your front-end dependencies.
For example, in composer.json:
"post-install-cmd": [
"cd docroot/themes/custom/<my_theme> && rm -rf node_modules && npm install && npm run build"
] Ensure that you add the path to your custom theme in the installer-paths key of the composer.json file. For an example, see drupal-recommended-project.
For information about changing the Node.js version of your Drupal or Node.js application, visit Changing the Node.js version.
If this content did not answer your questions, try searching or contacting our support team for further assistance.