Sha256: 688f9bbf1fc5c1ae8d33f4b3b29aa8d82f1713da03ab2b6733e9a270ca9b68e5

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

---
# tasks file for qb.meteor_react_component
- component_facts:
    path: "{{ component_path }}"

- name: create component directory
  file:
    path: "{{ qb_dir }}/imports/ui/{{ component_dir }}"
    state: directory
    recurse: true

- name: "create {{ component_class_name }} component"
  template:
    src: component.jsx.j2
    dest: "{{ qb_dir }}/imports/ui/{{ component_dir }}/{{ component_dashed }}.jsx"
    force: "{{ component_force }}"

- name: add import line to imports/ui/index.js
  lineinfile:
    dest: "{{ qb_dir }}/imports/ui/index.js"
    line: "export * from './{{ component_dir }}/{{ component_dashed }}.jsx';"
  when: component_blaze

- name: create styles directory
  file:
    path: "{{ qb_dir }}/client/styles/{{ component_dir }}"
    state: directory
    recurse: true

- name: create a stylesheet for it
  template:
    src: style.import.less.j2
    dest: "{{ qb_dir }}/client/styles/{{ component_dir }}/{{ component_dashed }}.import.less"
    force: "{{ component_force }}"

- name: add import line to client/styles/index.less
  lineinfile:
    dest: "{{ qb_dir }}/client/styles/index.less"
    line: '@import "{{ component_dir }}/{{ component_dashed }}.import.less";'
    create: true
    

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qb-0.1.9 roles/qb.meteor_react_component/tasks/main.yml