Skip to content

Commit

Permalink
Merge pull request #317 from whitesmith/fix-ci
Browse files Browse the repository at this point in the history
Fix the CI
  • Loading branch information
dethos authored Mar 8, 2021
2 parents bd907d0 + b8a3c4a commit 0121229
Show file tree
Hide file tree
Showing 4 changed files with 7,691 additions and 24 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
command: |
set +e
touch $BASH_ENV
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.37.2/install.sh | bash
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
echo 'nvm install v6.2.2' >> $BASH_ENV
echo 'nvm alias default v6.2.2' >> $BASH_ENV
echo 'nvm install v14.16.0' >> $BASH_ENV
echo 'nvm alias default v14.16.0' >> $BASH_ENV
- run:
command: |
npm install gulp-cli -g
Expand Down
34 changes: 17 additions & 17 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

/* Gulp dependencies */
var gulp = require('gulp');
var runSequence = require('run-sequence');
var runSequence = require('gulp4-run-sequence');
var gutil = require('gulp-util');
var del = require('del');
var gulpif = require('gulp-if');
Expand Down Expand Up @@ -58,16 +58,16 @@ var tasks = {};

tasks.browser_sync = function () {
var config = {
proxy: {
target: "http://localhost:8000",
ws: true
},
ghostMode: {
clicks: false,
location: false,
forms: false,
scroll: false
}
proxy: {
target: "http://localhost:8000",
ws: true
},
ghostMode: {
clicks: false,
location: false,
forms: false,
scroll: false
}
};

browserSync(config);
Expand Down Expand Up @@ -97,7 +97,7 @@ tasks.sass = function () {
loadMaps: true
})))
/* Autoprefixer */
.pipe(autoprefixer({
.pipe(autoprefixer({
browsers: ['last 2 versions'],
}))
/* We don't serve the source files,
Expand All @@ -117,9 +117,9 @@ gulp.task('sass', tasks.sass);
/* Assets compilation and reload. */
gulp.task('browser-sync', tasks.browser_sync);
var browserSyncRefresh = browserSync.reload.bind(browserSync);
var browserSyncStream = function () { browserSync.reload({ stream: true }); };
var browserSyncStream = function () { browserSync.reload({ stream: true }); };

gulp.task('reload-sass', ['sass'], browserSyncStream);
gulp.task('reload-sass', gulp.series('sass'), browserSyncStream);

/* Watch task */
gulp.task('watch', function (cb) {
Expand All @@ -141,9 +141,9 @@ gulp.task('build', function (cb) {
/* Clean first, build afterwards. */
return runSequence(
'clean', [
'sass',
], cb);
'sass',
], cb);
});

/* Default task (`watch`) */
gulp.task('default', ['watch']);
gulp.task('default', gulp.series('watch'));
Loading

0 comments on commit 0121229

Please sign in to comment.