Skip to content

Commit

Permalink
Do not lint styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpchi committed Nov 12, 2024
1 parent 7e2e705 commit 8f7d62c
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 6 deletions.
14 changes: 10 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"use strict";
const { src, dest, watch, series } = require('gulp');
const {src, dest, watch, series} = require('gulp');
const notify = require('gulp-notify');
const cleanCss = require('gulp-clean-css');
const sass = require('gulp-sass')(require('sass'))
const sass = require('gulp-sass')(require('sass'));
const sourcemaps = require('gulp-sourcemaps');
const gap = require('gulp-append-prepend');

function sassy() {
return src('./scss/styles.scss')
Expand All @@ -15,9 +16,14 @@ function sassy() {
.pipe(notify("CSS Compiled!"));
}

function bitolint() {
return src('./styles.css')
.pipe(gap.prependText('/* stylelint-disable */'))
.pipe(dest('.'));
}

function watchme() {
watch('./scss/**/*.scss', series(sassy));
watch('./scss/**/*.scss', series(sassy, bitolint));
}

exports.default = watchme;
exports.sass = sassy;
65 changes: 65 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"devDependencies": {
"child_process": "^1.0.2",
"gulp": "^4.0.2",
"gulp-append-prepend": "^1.0.9",
"gulp-clean-css": "^4.3.0",
"gulp-concat": "^2.6.1",
"gulp-notify": "^4.0.0",
Expand Down
1 change: 0 additions & 1 deletion scss/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Accessibility features
/* Colours */
$black: #000;
$blackish: #111;
Expand Down
1 change: 1 addition & 0 deletions styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion styles.css.map

Large diffs are not rendered by default.

0 comments on commit 8f7d62c

Please sign in to comment.