Skip to content

Commit c134218

Browse files
author
hdngr
committed
commit everything
1 parent 82252f1 commit c134218

35 files changed

+21734
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

css/application.css

Lines changed: 181 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/application.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
13.7 KB
Binary file not shown.
39.9 KB
Binary file not shown.
16 KB
Binary file not shown.

gulpfile.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
'use strict';
2+
3+
var gulp = require('gulp'),
4+
concat = require('gulp-concat'),
5+
uglify = require('gulp-uglify'),
6+
rename = require('gulp-rename'),
7+
sass = require('gulp-sass'),
8+
maps = require('gulp-sourcemaps');
9+
10+
gulp.task('concatScripts', function() {
11+
return gulp.src(['./js/jquery.js', './js/sticky/jquery.sticky.js', './js/main.js'])
12+
.pipe(maps.init())
13+
.pipe(concat('app.js'))
14+
.pipe(maps.write('./'))
15+
.pipe(gulp.dest('./js'));
16+
});
17+
18+
gulp.task('uglifyScripts', function() {
19+
return gulp.src('./js/app.js')
20+
.pipe(rename('app.min.js'))
21+
.pipe(uglify())
22+
.pipe(gulp.dest('./js'))
23+
.on('error', console.log);
24+
});
25+
26+
gulp.task('compileSass', function() {
27+
return gulp.src('./scss/application.scss')
28+
.pipe(maps.init())
29+
.pipe(sass())
30+
.pipe(maps.write('./'))
31+
.pipe(gulp.dest('./css/'));
32+
});
33+
34+
// watch scripts
35+
gulp.task('serve', function() {
36+
gulp.watch('./js/main.js', ['concatScripts', 'uglifyScripts']);
37+
});
38+
39+
gulp.task('default', ['hello']);

img/arrow.svg

Lines changed: 8 additions & 0 deletions
Loading

img/bear.jpg

1.15 MB
Loading

img/mountains.jpg

1.98 MB
Loading

0 commit comments

Comments
 (0)