Skip to content

Commit 56bdc19

Browse files
committed
functionalty to functionality
1 parent c40a14e commit 56bdc19

File tree

10 files changed

+4982
-2142
lines changed

10 files changed

+4982
-2142
lines changed

__tests__/functionality.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// const functionality = require("../dist/functionalty.min.js");
2+
3+
// test("lol", () => {
4+
// expect(getMid(5, 5)).toBe(5);
5+
// });

dist/functionalty.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ var rename = require("gulp-rename");
1010
var pug = require("gulp-pug");
1111
var livereload = require("gulp-livereload");
1212
var zip = require("gulp-zip");
13+
var sourcemaps = require("gulp-sourcemaps");
1314

1415
// HTML Task
1516
gulp.task("html", () => {
@@ -26,10 +27,12 @@ gulp.task("styles", () => {
2627
require("./server.js");
2728
return gulp
2829
.src(["./project/css/*.scss", "./project/css/**/*.scss"])
30+
.pipe(sourcemaps.init())
2931
.pipe(sass())
3032
.pipe(prefix("last 4 versions"))
3133
.pipe(concat("style.css"))
3234
.pipe(minify())
35+
.pipe(sourcemaps.write("."))
3336
.pipe(gulp.dest("./website/css"))
3437
.pipe(livereload());
3538
});
@@ -41,25 +44,27 @@ gulp.task("scripts", () => {
4144
.src([
4245
"./project/js/*.js",
4346
"./project/js/**/*.js",
44-
"!./project/js/functionalty.js",
47+
"!./project/js/functionality.js",
4548
])
49+
.pipe(sourcemaps.init())
4650
.pipe(
4751
babel({
4852
presets: ["@babel/env"],
4953
})
5054
)
5155
.pipe(uglify())
5256
.pipe(concat("main.js"))
57+
.pipe(sourcemaps.write("."))
5358
.pipe(gulp.dest("./website/js"))
5459
.pipe(livereload());
5560
});
5661

5762
// Functionalty.js File Task
58-
gulp.task("functionalty", () => {
63+
gulp.task("functionality", () => {
5964
livereload.listen();
6065
require("./server.js");
6166
return gulp
62-
.src("./project/js/functionalty.js")
67+
.src("./project/js/functionality.js")
6368
.pipe(
6469
babel({
6570
presets: ["@babel/env"],
@@ -93,10 +98,10 @@ gulp.task("watch", () => {
9398
[
9499
"./project/js/*.js",
95100
"./project/js/**/*.js",
96-
"!./project/js/functionalty.js",
101+
"!./project/js/functionality.js",
97102
],
98103
gulp.series("scripts")
99104
);
100105

101-
gulp.watch("./project/js/functionalty.js", gulp.series("functionalty"));
106+
gulp.watch("./project/js/functionality.js", gulp.series("functionality"));
102107
});

0 commit comments

Comments
 (0)