<commit_before>echo 'Step 0: Kill ALL THE THINGS... in `dist/`'

rm -rf dist/*

echo 'Step 1: Copy all the HTML'
cp src/index.html dist/
mkdir dist/partials
cp -r src/partials dist/

echo 'Step 2: Build all the Sass into CSS!'
mkdir dist/css
node-sass src/scss/main.scss dist/css/main.css

echo 'Step 3: Copy all the JS'
mkdir -p dist/js
cp -r src/js dist/

echo 'Step 4: Copy all the `bower_components/`!'

echo 'Step 4a: Normalize the CSS...'
mkdir -p dist/bower_components/normalize-css/
cp bower_components/normalize-css/normalize.css dist/bower_components/normalize-css/normalize.css

echo 'Step 4b: copy more bower components'
mkdir -p dist/bower_components/jquery/dist/
cp bower_components/jquery/dist/jquery.js dist/bower_components/jquery/dist/jquery.js

mkdir -p dist/bower_components/angular/
cp bower_components/angular/angular.js dist/bower_components/angular/angular.js

mkdir -p dist/bower_components/angular-route/
cp bower_components/angular-route/angular-route.js dist/bower_components/angular-route/angular-route.js

mkdir -p dist/bower_components/modernizr/
cp bower_components/modernizr/modernizr.js dist/bower_components/modernizr/modernizr.js

mkdir -p dist/bower_components/angular-timer/dist/
cp bower_components/angular-timer/dist/angular-timer.js dist/bower_components/angular-timer/dist/angular-timer.js

mkdir -p dist/bower_components/momentjs/
cp bower_components/momentjs/moment.js dist/bower_components/momentjs/moment.js

mkdir -p dist/bower_components/humanize-duration/
cp bower_components/humanize-duration/humanize-duration.js dist/bower_components/humanize-duration/humanize-duration.js

mkdir -p dist/bower_components/angular-cookies/
cp bower_components/angular-cookies/angular-cookies.js dist/bower_components/angular-cookies/angular-cookies.js

# mkdir -p dist/bower_components/d3/
# cp bower_components/d3/d3.js dist/bower_components/d3/d3.js

echo 'Step 5: Copy img folder'
cp  -r src/img/ dist/img
cp  -r src/favicon.ico dist/favicon.ico

echo 'Step 6: verify working project in dist/'
npm run start:dist<commit_msg>update build.sh<commit_after>echo 'Step 0: Kill ALL THE THINGS... in `dist/`'

rm -rf dist/*

echo 'Step 1: Copy all the HTML'
cp src/index.html dist/
mkdir dist/partials
cp -r src/partials dist/

echo 'Step 2: Build all the Sass into CSS!'
mkdir dist/css
node-sass src/scss/main.scss dist/css/main.css

echo 'Step 3: Copy all the JS'
mkdir -p dist/js
cp -r src/js dist/

echo 'Step 4: Copy all the `bower_components/`!'

echo 'Step 4a: Normalize the CSS...'
mkdir -p dist/bower_components/normalize-css/
cp bower_components/normalize-css/normalize.css dist/bower_components/normalize-css/normalize.css

echo 'Step 4b: copy more bower components'
mkdir -p dist/bower_components/jquery/dist/
cp bower_components/jquery/dist/jquery.js dist/bower_components/jquery/dist/jquery.js

mkdir -p dist/bower_components/angular/
cp bower_components/angular/angular.js dist/bower_components/angular/angular.js

mkdir -p dist/bower_components/angular-route/
cp bower_components/angular-route/angular-route.js dist/bower_components/angular-route/angular-route.js

mkdir -p dist/bower_components/modernizr/
cp bower_components/modernizr/modernizr.js dist/bower_components/modernizr/modernizr.js

mkdir -p dist/bower_components/angular-timer/dist/
cp bower_components/angular-timer/dist/angular-timer.js dist/bower_components/angular-timer/dist/angular-timer.js

mkdir -p dist/bower_components/momentjs/
cp bower_components/momentjs/moment.js dist/bower_components/momentjs/moment.js

mkdir -p dist/bower_components/humanize-duration/
cp bower_components/humanize-duration/humanize-duration.js dist/bower_components/humanize-duration/humanize-duration.js

mkdir -p dist/bower_components/angular-cookies/
cp bower_components/angular-cookies/angular-cookies.js dist/bower_components/angular-cookies/angular-cookies.js

makdir -p dist/bower_components/angular-validation-match/dist/
cp bower_components/angular-validation-match/dist/angular-validation-match.js dist/bower_components/angular-validation-match/dist/angular-validation-match.js


# mkdir -p dist/bower_components/d3/
# cp bower_components/d3/d3.js dist/bower_components/d3/d3.js

echo 'Step 5: Copy img folder'
cp  -r src/img/ dist/img
cp  -r src/favicon.ico dist/favicon.ico

echo 'Step 6: verify working project in dist/'
npm run start:dist
{'fraction_non_alphanumeric': 0.10651023694501956, 'fraction_numerical': 0.00644122383252818, 'mean_word_length': 4.758940397350993, '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': '3964969', 'n_tokens_mistral': 1557, 'n_tokens_neox': 1496, 'n_words': 328}