-
Notifications
You must be signed in to change notification settings - Fork 3
/
init
28 lines (24 loc) · 1.62 KB
/
init
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
27
28
#!/bin/sh
echo "Initializing project"
git clone --branch v1.0.0 https://github.com/pattern-lab/patternlab-php.git && \
mv patternlab-php/config/ . && \
mv patternlab-php/core/ . && \
mv patternlab-php/extras/ . && \
mv patternlab-php/public/ . && \
rm -rf patternlab-php && \
rm -rf source/css && \
php core/builder.php -g && \
rm -rf source/css && \
git submodule init && \
git submodule update && \
cd source/css/ && \
git pull origin master && \
cd ../../ && \
rm -rf source/css/.git && \
rm -rf .git/ && \
rm -rf .gitmodules && \
rm -rf source/js/ && \
mkdir source/js/ && \
> source/js/script.js
echo "Pattern Lab is now beautifully scaffolded"
rm init