Skip to content

Commit

Permalink
version 2.1.25
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Apr 14, 2022
1 parent 900fc31 commit 13e716a
Show file tree
Hide file tree
Showing 24 changed files with 14,687 additions and 1,982 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

### 2.1.25

- Update typescript

### 2.1.24

- Update the distance calculation
Expand Down
26 changes: 13 additions & 13 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,18 +210,18 @@ function buildSASS() {
return gulp.src('src/**/*.scss').pipe(sass().on('error', sass.logError)).pipe(gulp.dest('dist'));
}

/**
* Build Replace
*/
function buildReplace() {
return gulp.src('dist/**/*.js')
.pipe(replace('export const game = getGame();', ''))
.pipe(replace('export const canvas = getCanvas();', ''))
.pipe(replace('import { canvas, game }', '//import { canvas, game }'))
.pipe(replace('import { game }', '//import { game }'))
.pipe(replace('import { canvas }', '//import { canvas }'))
.pipe(gulp.dest('dist'));
};
// /**
// * Build Replace
// */
// function buildReplace() {
// return gulp.src('dist/**/*.js')
// .pipe(replace('export const game = getGame();', ''))
// .pipe(replace('export const canvas = getCanvas();', ''))
// .pipe(replace('import { canvas, game }', '//import { canvas, game }'))
// .pipe(replace('import { game }', '//import { game }'))
// .pipe(replace('import { canvas }', '//import { canvas }'))
// .pipe(gulp.dest('dist'));
// };

/**
* Copy static files
Expand Down Expand Up @@ -508,7 +508,7 @@ const execGit = gulp.series(gitAdd, gitCommit, gitTag);

const execBuild = gulp.parallel(buildTS, buildJS, buildMJS, buildCSS, buildLess, buildSASS, copyFiles);

exports.build = gulp.series(clean, execBuild, buildReplace);
exports.build = gulp.series(clean, execBuild); // , buildReplace
exports.watch = buildWatch;
exports.clean = clean;
exports.link = linkUserData;
Expand Down
Loading

0 comments on commit 13e716a

Please sign in to comment.