Squash merge move_to_single_file_pkgs into main
This commit is contained in:
@@ -1,13 +1,47 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: commitlint-cli
|
||||
## Description: git commit linter to ensure standards are met
|
||||
## Version: v20.5.0
|
||||
## Methods: source
|
||||
## Helpers: npm
|
||||
---
|
||||
- name: Add commitlint-cli
|
||||
- name: Set commitlint-cli default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
commitlint_cli:
|
||||
methods:
|
||||
- source
|
||||
npm_pkg: '@commitlint/cli'
|
||||
version: v20.5.0
|
||||
# }}}
|
||||
- name: Configure commitlint-cli
|
||||
when:
|
||||
- commitlint_cli_configured is undefined
|
||||
- "'commitlint-cli' not in __configured"
|
||||
block:
|
||||
- name: Append commitlint/cli to pkg_npm
|
||||
- name: Set commitlint-cli install method
|
||||
when:
|
||||
- commitlint_cli_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@commitlint/cli'] }}"
|
||||
commitlint_cli_imethod: "{{ imethod if imethod in commitlint_cli.methods else commitlint_cli.methods[0] }}"
|
||||
|
||||
- name: Set commitlint_cli_configured
|
||||
- name: Configure commitlint-cli source install
|
||||
when:
|
||||
- commitlint_cli_imethod == 'source'
|
||||
block:
|
||||
- name: Configure commitlint-cli npm install
|
||||
ansible.builtin.set_fact:
|
||||
commitlint_cli_npm_install:
|
||||
name: "{{ commitlint_cli.npm_pkg }}"
|
||||
version: "{{ commitlint_cli.version }}"
|
||||
|
||||
- name: Append commitlint/cli to pkg_npm
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + [commitlint_cli_npm_install] }}"
|
||||
|
||||
- name: Finalise commitlint/cli npm install
|
||||
ansible.builtin.set_fact:
|
||||
commitlint_cli_install: "{{ commitlint_cli_imethod }}={{ commitlint_cli_npm_install }}"
|
||||
|
||||
- name: Finalise commitlint-cli configuration
|
||||
ansible.builtin.set_fact:
|
||||
commitlint_cli_configured: true
|
||||
__configured: "{{ __configured | combine( { 'commitlint-cli': commitlint_cli_install } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user