-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
47 lines (30 loc) · 1.61 KB
/
build
File metadata and controls
47 lines (30 loc) · 1.61 KB
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
echo 'Step 0: Kill ALL THE THINGS... in `dist/`'
rm -rf dist/*
echo 'Step 1: Copy all the HTML'
cp src/index.html dist/
cp src/top-questions.html dist/
mkdir dist/partials/
cp -r src/partials dist/
echo 'Step 2: Build all the Sass into CSS!'
npm run sass
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/css/
cp src/css/main.css dist/css/main.css
mkdir -p dist/bower_components/normalize-css/
cp bower_components/normalize-css/normalize.css dist/bower_components/normalize-css/normalize.css
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/font-awesome/fonts
cp bower_components/font-awesome/fonts/fontawesome-webfont.woff dist/bower_components/font-awesome/fonts/fontawesome-webfont.woff
cp bower_components/font-awesome/fonts/fontawesome-webfont.woff2 dist/bower_components/font-awesome/fonts/fontawesome-webfont.woff2
cp bower_components/font-awesome/fonts/fontawesome-webfont.ttf dist/bower_components/font-awesome/fonts/fontawesome-webfont.ttf
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
npm run start-dev