-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
34 lines (23 loc) · 1.08 KB
/
Copy pathbuild
File metadata and controls
34 lines (23 loc) · 1.08 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
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/partials/
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/bower_components/normalize-css/
cp bower_components/normalize-css/normalize.css dist/bower_components/normalize-css/normalize.css
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/font-awesome/
cp bower_components/font-awesome/css/font-awesome.css dist/bower_components/font-awesome/css/font-awesome.css
npm start