Sha256: 2d60fde5aa507542494c55dc0125450700e5e792829789ef94717e61f835792f

Contents?: true

Size: 979 Bytes

Versions: 7

Compression:

Stored size: 979 Bytes

Contents

---
# tasks file for qb.npm_package_module

- name: set npm_package_json_path
  set_fact:
    npm_package_json_path: "{{ qb_dir }}/package.json"

- name: create package.json
  command: npm init -y
  args:
    chdir: "{{ qb_dir }}"
    creates: "{{ npm_package_json_path }}"

- name: set package.json scalar values
  state:
    json:
      key: "{{ npm_package_json_path }}:{{ item.key }}"
      set: "{{ item.value }}"
  with_dict:
    name: "{{ npm_package_scoped_name }}"
    private: "{{ npm_package_private }}"
    version: "{{ npm_package_version }}"
    description: "{{ npm_package_description }}"
    main: "{{ npm_package_main }}"
    keywords: "{{ npm_package_keywords | to_json }}"
    license: "{{ npm_package_license }}"
    author: "{{ npm_package_author }}"

- name: set package.json scripts
  state:
    json:
      key: "{{ npm_package_json_path }}:scripts:{{ item.key }}"
      set: "{{ item.value }}"
      create: true
  with_dict: "{{ npm_package_scripts }}"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qb-0.1.30 roles/qb.npm_package/tasks/main.yml
qb-0.1.29 roles/qb.npm_package/tasks/main.yml
qb-0.1.28 roles/qb.npm_package/tasks/main.yml
qb-0.1.27 roles/qb.npm_package/tasks/main.yml
qb-0.1.26 roles/qb.npm_package/tasks/main.yml
qb-0.1.25 roles/qb.npm_package/tasks/main.yml
qb-0.1.24 roles/qb.npm_package/tasks/main.yml