-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.zsh
51 lines (35 loc) · 1.68 KB
/
build.zsh
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 2a: Build all the Sass into CSS!'
npm run sass
echo 'Step 2b: Copy CSS into `dist/`?'
mkdir dist/css/
cp src/css/main.css dist/css/
echo 'Step 3: Copy all the JS'
mkdir -p dist/js && cp -r src/js dist/
# echo 'Step 3: Copy the IMG folde'
# mkdir -p dist/img && cp -r src/img 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: ????'
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/src/
cp bower_components/modernizr/modernizr.js dist/bower_components/modernizr/modernizr.js
mkdir -p dist/bower_components/font-awesome/css/
cp bower_components/font-awesome/css/font-awesome.min.css dist/bower_components/font-awesome/css/font-awesome.min.css
mkdir -p dist/bower_components/firebase/
cp bower_components/firebase/firebase.js dist/bower_components/firebase/firebase.js
mkdir -p dist/bower_components/angularfire/dist/
cp bower_components/angularfire/dist/angularfire.min.js dist/bower_components/angularfire/dist/angularfire.min.js
npm start