X Tutup
Skip to content

Commit b85abcc

Browse files
committed
сделан task02
1 parent 6e40605 commit b85abcc

File tree

12 files changed

+4085
-1
lines changed

12 files changed

+4085
-1
lines changed

README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/app.js

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

dist/maps/app.js.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.

gulpfile.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const gulp = require('gulp');
2+
const concat = require('gulp-concat');
3+
const sourcemaps = require('gulp-sourcemaps');
4+
5+
function buildJs() {
6+
return gulp.src('./src/*.js')
7+
.pipe(sourcemaps.init())
8+
.pipe(concat('app.js'))
9+
.pipe(sourcemaps.write('./maps'))
10+
.pipe(gulp.dest('./dist/'));
11+
}
12+
13+
gulp.watch('./src/*.js', buildJs);
14+
15+
exports.default = buildJs;

index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>Document</title>
8+
<link rel="stylesheet" href="style.css">
9+
</head>
10+
<body>
11+
<table id="game"></table>
12+
<script src="dist/app.js"></script>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)
X Tutup