<commit_before>#!/bin/bash -e
cd "$( dirname "${BASH_SOURCE[0]}" )"/..

rm -rf ./dist/*

VERSION=`npm version|grep -e "frig: '[0-9\.]*"|grep -E [0-9\.]+|grep -oE "[0-9\.]+"`
bower version $VERSION
git add bower.json

echo ""
echo "FRIG: COMPILING EXAMPLES"
echo "======================================================="
FRIG_ENV="production" FRIG_MODE="examples" webpack --progress --bail

echo ""
echo "FRIG: COMPILING DEV RELEASE"
echo "======================================================="
FRIG_ENV="production" FRIG_MODE="core" webpack --progress --bail

echo ""
echo "FRIG: COMPILING MINIFIED RELEASE"
echo "======================================================="
FRIG_ENV="production" FRIG_MIN="minify" FRIG_MODE="core" webpack --progress --bail
<commit_msg>Updating preversion to set the bower version<commit_after>#!/bin/bash -e
cd "$( dirname "${BASH_SOURCE[0]}" )"/..

rm -rf ./dist/*

VERSION=`npm version|grep -e "frig: '[0-9\.]*"|grep -E [0-9\.]+|grep -oE "[0-9\.]+"`
bower version $VERSION

echo ""
echo "FRIG: COMPILING EXAMPLES"
echo "======================================================="
FRIG_ENV="production" FRIG_MODE="examples" webpack --progress --bail

echo ""
echo "FRIG: COMPILING DEV RELEASE"
echo "======================================================="
FRIG_ENV="production" FRIG_MODE="core" webpack --progress --bail

echo ""
echo "FRIG: COMPILING MINIFIED RELEASE"
echo "======================================================="
FRIG_ENV="production" FRIG_MIN="minify" FRIG_MODE="core" webpack --progress --bail

{'fraction_non_alphanumeric': 0.3636950904392765, 'fraction_numerical': 0.00904392764857881, 'mean_word_length': 6.138248847926267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7281494', 'n_tokens_mistral': 533, 'n_tokens_neox': 496, 'n_words': 121}