Skip to content

Commit 14887f4

Browse files
committed
Remove build folder
1 parent 6637a97 commit 14887f4

File tree

91 files changed

+9
-323
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+9
-323
lines changed
-22.9 KB
Binary file not shown.
-17.6 KB
Binary file not shown.

build/index.html

Lines changed: 0 additions & 227 deletions
This file was deleted.
File renamed without changes.

css/styles.min.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.
File renamed without changes.
File renamed without changes.

gulpfile.babel.js

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1+
import babelPreset from 'babel-preset-es2015';
12
import gulp from 'gulp';
2-
import del from 'del';
33
import sequence from 'run-sequence';
4-
import babelPreset from 'babel-preset-es2015';
54

65
const $ = require('gulp-load-plugins')();
76

87
// ================================================================
98
// CONSTS
109
// ================================================================
11-
const buildDir = 'build';
12-
1310
const path = {
1411
src: {
1512
styles: 'src/sass/styles.scss',
@@ -23,24 +20,18 @@ const path = {
2320
'src/js/main.js',
2421
],
2522
},
26-
images: 'src/img/**/*',
27-
fonts: 'src/fonts/**/*',
28-
html: '*.html',
23+
images: './img/**/*',
2924
},
3025

3126
build: {
32-
styles: `${buildDir}/css/`,
33-
js: `${buildDir}/js/`,
34-
images: `${buildDir}/img/`,
35-
fonts: `${buildDir}/fonts/`,
36-
html: `${buildDir}`,
27+
styles: './css/',
28+
js: './js/',
29+
images: './img/',
3730
},
3831

3932
watch: {
4033
styles: 'src/sass/**/*',
4134
js: 'src/js/**/*',
42-
images: 'src/img/**/*',
43-
fonts: 'src/fonts/**/*',
4435
html: 'index.html',
4536
},
4637
};
@@ -50,22 +41,15 @@ const path = {
5041
// ================================================================
5142
gulp.task('build', () => {
5243
sequence(
53-
'clear', [
54-
'fonts',
44+
[
5545
'images',
56-
'html',
5746
'js-vendors',
5847
'js',
5948
'styles',
6049
],
6150
);
6251
});
6352

64-
// ================================================================
65-
// Clear : Clear destination dir before build.
66-
// ================================================================
67-
gulp.task('clear', () => del(`${buildDir}/**/*`));
68-
6953
// ================================================================
7054
// STYLES : Build common stylesheets
7155
// ================================================================
@@ -126,31 +110,12 @@ gulp.task('images', () => {
126110
.pipe(gulp.dest(path.build.images));
127111
});
128112

129-
// ================================================================
130-
// Fonts
131-
// ================================================================
132-
gulp.task('fonts', () => {
133-
gulp.src(path.src.fonts)
134-
.pipe($.changed(path.build.fonts))
135-
.pipe(gulp.dest(path.build.fonts));
136-
});
137-
138-
// ================================================================
139-
// Html
140-
// ================================================================
141-
gulp.task('html', () => {
142-
gulp.src(path.src.html)
143-
.pipe($.changed(path.build.html))
144-
.pipe(gulp.dest(path.build.html))
145-
.pipe($.livereload());
146-
});
147-
148113
// ================================================================
149114
// Server simulation
150115
// ================================================================
151116
gulp.task('connect', () => {
152117
$.connect.server({
153-
root: 'build',
118+
root: '.',
154119
livereload: true,
155120
});
156121
});
@@ -162,7 +127,7 @@ gulp.task('watch', () => {
162127
$.livereload.listen();
163128
gulp.watch(path.watch.js, ['js']);
164129
gulp.watch(path.watch.styles, ['styles']);
165-
gulp.watch(path.watch.html, ['html']);
130+
gulp.watch(path.watch.html, $.livereload());
166131
});
167132

168133
// ================================================================
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)