# Gerber and drill files for JLCPCB, without stencil
# URL: https://jlcpcb.com/
# Based on setting used by Gerber Zipper (https://github.com/g200kg/kicad-gerberzipper)
kibot:
  version: 1

import:
  - file: JLCPCB
    outputs:
      # We exclude the _JLCPCB_compress
      - _JLCPCB_gerbers
      - _JLCPCB_drill
      - _JLCPCB_position
      - _JLCPCB_bom
    groups:
      # We exlclude the _JLCPCB_fab
      - _JLCPCB_assembly
      - _JLCPCB

groups:
  - name: _JLCPCB_fab
    outputs:
      - _JLCPCB_gerbers
      - _JLCPCB_gerbers_stencil
      - _JLCPCB_drill

outputs:
  - name: _JLCPCB_gerbers_stencil
    comment: Gerbers for the stencils compatible with JLCPCB
    type: gerber
    dir: JLCPCB
    extends: _JLCPCB_gerbers
    layers:
      - F.Paste
      - B.Paste

  - name: _JLCPCB_compress
    comment: ZIP file for JLCPCB
    type: compress
    dir: JLCPCB
    options:
      files:
        - from_output: _JLCPCB_gerbers
          dest: /
        - from_output: _JLCPCB_gerbers_stencil
          dest: /
        - from_output: _JLCPCB_drill
          dest: /
        - from_output: _JLCPCB_position
          dest: /
        - from_output: _JLCPCB_bom
          dest: /
