<commit_before>{% set armada = salt["pillar.get"]("armada", {}) %}
armada platform dependencies:
  pkg.installed:
    - names: 
      - git
      - nginx
      - nodejs
      - nodejs-legacy
      - npm
      - openssl

armada service directory:
  file.directory:
    - name: /srv/www/armada
    - makedirs: True
    - user: {{ armada.static_user }}
    - group: {{ armada.static_group }}
    
javascript tools:
  npm.installed:
    - pkgs:
      - grunt-cli
      - bower
      - webpack
    - require:
      - pkg: armada platform dependencies

#
# Code checkout and nginx config
#

{% if not armada.debug %}
armada code:
  git.latest:
    - name: https://github.com/kriberg/armada.git
    - target: /srv/www/armada/<commit_msg>Make sure gulp is available<commit_after>{% set armada = salt["pillar.get"]("armada", {}) %}
armada platform dependencies:
  pkg.installed:
    - names: 
      - git
      - nginx
      - nodejs
      - nodejs-legacy
      - npm
      - openssl

armada service directory:
  file.directory:
    - name: /srv/www/armada
    - makedirs: True
    - user: {{ armada.static_user }}
    - group: {{ armada.static_group }}
    
javascript tools:
  npm.installed:
    - pkgs:
      - bower
      - webpack
      - gulp
    - require:
      - pkg: armada platform dependencies

#
# Code checkout and nginx config
#

{% if not armada.debug %}
armada code:
  git.latest:
    - name: https://github.com/kriberg/armada.git
    - target: /srv/www/armada/
{'fraction_non_alphanumeric': 0.12865895166780122, 'fraction_numerical': 0.0, 'mean_word_length': 2.0497925311203318, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2604714', 'n_tokens_mistral': 534, 'n_tokens_neox': 507, 'n_words': 111}