Compare commits
No commits in common. "800676ab23c87607240bfc5947555c88229d5bfc" and "11cb996dc8b06e2657d8fffe67dccaf75a8aff79" have entirely different histories.
800676ab23
...
11cb996dc8
28
gulpfile.js
28
gulpfile.js
|
@ -23,10 +23,6 @@ const jsSrc = path.join(srcDir, "js/**/*.js");
|
||||||
const jsDest = path.join(buildDir, "js/");
|
const jsDest = path.join(buildDir, "js/");
|
||||||
const scssSrc = path.join(srcDir, "scss/**/*.scss");
|
const scssSrc = path.join(srcDir, "scss/**/*.scss");
|
||||||
const cssDest = path.join(buildDir, "css/");
|
const cssDest = path.join(buildDir, "css/");
|
||||||
const htmlSrc = path.join(srcDir, "html/**/*.html");
|
|
||||||
const htmlDest = buildDir;
|
|
||||||
const assetSrc = path.join(srcDir, "assets/**/*");
|
|
||||||
const assetDest = path.join(buildDir, "assets/");
|
|
||||||
|
|
||||||
function jsClean() {
|
function jsClean() {
|
||||||
return del(jsDest, { force: true });
|
return del(jsDest, { force: true });
|
||||||
|
@ -36,14 +32,6 @@ function cssClean() {
|
||||||
return del(cssDest, { force: true });
|
return del(cssDest, { force: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
function htmlClean() {
|
|
||||||
return del(htmlDest, { force: true });
|
|
||||||
}
|
|
||||||
|
|
||||||
function assetClean() {
|
|
||||||
return del(assetDest, { force: true });
|
|
||||||
}
|
|
||||||
|
|
||||||
function jsTranspile() {
|
function jsTranspile() {
|
||||||
return src(jsSrc, { sourcemaps: true })
|
return src(jsSrc, { sourcemaps: true })
|
||||||
.pipe(babel(babelConfig))
|
.pipe(babel(babelConfig))
|
||||||
|
@ -58,16 +46,6 @@ function scssCompile() {
|
||||||
.pipe(dest(cssDest, { sourcemaps: true }));
|
.pipe(dest(cssDest, { sourcemaps: true }));
|
||||||
}
|
}
|
||||||
|
|
||||||
function htmlCompile() {
|
|
||||||
return src(htmlSrc)
|
|
||||||
.pipe(dest(htmlDest));
|
|
||||||
}
|
|
||||||
|
|
||||||
function assetCompile() {
|
|
||||||
return src(assetSrc)
|
|
||||||
.pipe(dest(assetDest));
|
|
||||||
}
|
|
||||||
|
|
||||||
function serve(done) {
|
function serve(done) {
|
||||||
server.init({
|
server.init({
|
||||||
open: false,
|
open: false,
|
||||||
|
@ -89,9 +67,5 @@ const jsWatch = () =>
|
||||||
watch(jsSrc, { ignoreInitial: false }, series(jsClean, jsTranspile));
|
watch(jsSrc, { ignoreInitial: false }, series(jsClean, jsTranspile));
|
||||||
const cssWatch = () =>
|
const cssWatch = () =>
|
||||||
watch(scssSrc, { ignoreInitial: false }, series(cssClean, scssCompile));
|
watch(scssSrc, { ignoreInitial: false }, series(cssClean, scssCompile));
|
||||||
const htmlWatch = () =>
|
|
||||||
watch(htmlSrc, { ignoreInitial: false }, series(htmlClean, htmlCompile));
|
|
||||||
const assetWatch = () =>
|
|
||||||
watch(assetSrc, { ignoreInitial: false }, series(assetClean, assetCompile));
|
|
||||||
|
|
||||||
exports.default = parallel(jsWatch, cssWatch, htmlWatch, assetWatch, serve);
|
exports.default = parallel(jsWatch, cssWatch, serve);
|
||||||
|
|
|
@ -1,32 +0,0 @@
|
||||||
<!DOCTYPE HTML>
|
|
||||||
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
|
|
||||||
<title>THE TITLE IS THIS!</title>
|
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
||||||
|
|
||||||
<meta name="description" content="THE DESCRIPTION IS THIS!">
|
|
||||||
<meta name="author" content="I AM THE AUTHOR!">
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="css/style.css">
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<header>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<script src="js/script.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
html,
|
html {
|
||||||
body {
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
box-sizing: border-box;
|
|
||||||
background-color: pink;
|
|
||||||
}
|
|
||||||
|
|
||||||
* {
|
|
||||||
box-sizing: inherit;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue