Skip to content

Commit

Permalink
Update JS linting to ignore Protocol lib
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxcrawford committed Jul 8, 2021
1 parent ec8a432 commit 834251a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
static/js/clipboard.min.js
venv
env
static/scss/libs
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module.exports = {
env: {
es6: true,
node: true,
},
extends: ["eslint:recommended"],
overrides: [
Expand Down
18 changes: 9 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const { src, watch, series, dest } = require('gulp');
const sass = require('gulp-sass');
const del = require('del');
const { src, watch, series, dest } = require("gulp");
const sass = require("gulp-sass");
const del = require("del");

// directory for building LESS, SASS, and bundles
const buildDir = 'static/scss/libs/protocol/';
const finalDir = 'static/css/';
const buildDir = "static/scss/libs/protocol/";
const finalDir = "static/css/";

function clean(cb) {
del([
Expand All @@ -22,15 +22,15 @@ function reset(cb) {
}

function styles(cb) {
src('static/scss/app.scss')
.pipe(sass().on('error', sass.logError))
src("static/scss/app.scss")
.pipe(sass().on("error", sass.logError))
.pipe(dest(finalDir));

cb();
}

function assetsCopy(cb) {
src(['node_modules/@mozilla-protocol/core/protocol/**/*']).pipe(dest(buildDir));
src(["node_modules/@mozilla-protocol/core/protocol/**/*"]).pipe(dest(buildDir));
cb();
}

Expand All @@ -39,6 +39,6 @@ exports.build = series(reset, assetsCopy, styles);
exports.default = series(
clean, assetsCopy, styles, function() {
// You can use a single task
watch('static/scss/**/*.scss', { ignoreInitial: false }, series(clean, styles));
watch("static/scss/**/*.scss", { ignoreInitial: false }, series(clean, styles));
}
);

0 comments on commit 834251a

Please sign in to comment.