Adding task to build and watch sass.

This commit is contained in:
Tristan Roux
2019-03-19 21:52:03 +01:00
parent 33adc10c2b
commit ebb6a203e6
7 changed files with 7147 additions and 8532 deletions

24
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,24 @@
// Sass configuration
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks":
[
{
"label": "Compile SASS",
"type": "shell",
"command": "gulp sass",
"group": "build",
"problemMatcher": [
"$node-sass"
]
},
{
"label": "Watch SASS",
"type": "shell",
"command": "gulp watch",
"group": "build"
}
]
}

10153
dist/css/custom.css vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

20
gulpfile.js Normal file
View File

@@ -0,0 +1,20 @@
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task("sass", function (cb)
{
gulp.src("./src/scss/custom.scss")
.pipe(sass())
.pipe(gulp.dest(function (f)
{
return "./dist/css/";
}));
cb();
});
gulp.task("watch", gulp.series("sass", function (cb)
{
gulp.watch("./src/scss/custom.scss", gulp.series("sass"));
gulp.watch("./src/scss/fragments/*.scss", gulp.series("sass"));
cb();
}));

5374
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,6 +7,8 @@
"@types/jquery": "^3.3.29",
"bootstrap": "^4.3.1",
"electron": "^4.0.5",
"gulp": "^4.0.0",
"gulp-sass": "^4.0.2",
"jquery": "^3.3.1",
"npm": "^6.9.0",
"oidc-client": "^1.6.1",