forked from PictureElement/grecko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.sh
27 lines (15 loc) · 872 Bytes
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
rm -r docs
mkdir docs
rm -r dist
mkdir dist
cp -r src/media dist/
grunt purifycss
grunt cssmin
grunt uglify
grunt copy
perl -0pi -e 's/ <!-- Bootstrap -->\n <link rel="stylesheet" href="..\/css\/bootstrap.css">\n <!-- Animate.css -->\n <link rel="stylesheet" href="..\/css\/animate.css">\n <!-- Default stylesheet -->\n <link rel="stylesheet" href="..\/css\/main.css">/ <link rel="stylesheet" href="..\/css\/purestyles.css">/' dist/pages/*.html
perl -0pi -e 's/ <!-- Bootstrap -->\n <link rel="stylesheet" href="css\/bootstrap.css">\n <!-- Animate.css -->\n <link rel="stylesheet" href="css\/animate.css">\n <!-- Default stylesheet -->\n <link rel="stylesheet" href="css\/main.css">/ <link rel="stylesheet" href="css\/purestyles.css">/' dist/index.html
grunt critical
grunt htmlmin
cp -a dist/. docs/