Commit 32b31ee1 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] integrate scss linting

parent b9d50d00
#!/bin/bash
echo -e "\033[0;34mInstall scss-lint\033[0m";
sudo gem install scss_lint
......@@ -98,6 +98,13 @@ gulp.task('css:abovethefold', function() {
.pipe(gulp.dest(config.abovethefold.dest));
});
gulp.task('css:qa', function(cb) {
return gulp.src([settings.getPath() + '/' + config.directories.sass + '/**/*.scss', '!**/*scsslint_tmp*.scss'])
.pipe(plugins.scssLint({
customReport: plugins.scssLintStylish
}));
});
gulp.task('css', gulp.series(gulp.parallel('css:sprites', 'css:svg'), processCss, 'css:abovethefold'));
gulp.task('css:compileAndSync', gulp.series(gulp.parallel('css:sprites', 'css:svg'), processCssAndSync, 'css:abovethefold'));
......@@ -44,6 +44,10 @@ rm -rf ./node_modules
npm install --depth 0
echo -e "\033[0;32mDependencies installed ✓\033[0m\n"
echo -e "\033[0;34mInstall ruby dependencies\033[0m";
./core/ruby.sh
echo -e "\033[0;32mDependencies installed ✓\033[0m\n"
# copy config file if no present yet
if [ ! -e ../.sgc-config.json ]
then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment