From 4f57480effebb273439557cd81d57cd3982fd893 Mon Sep 17 00:00:00 2001 From: PMKuipers Date: Fri, 25 Aug 2023 22:46:27 +0200 Subject: [PATCH] Added scss compiler to aid in creating proper styles.css --- scssbuild.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 scssbuild.js diff --git a/scssbuild.js b/scssbuild.js new file mode 100755 index 0000000..23a9b49 --- /dev/null +++ b/scssbuild.js @@ -0,0 +1,33 @@ +#!/usr/bin/env node + +// This file is part of the Studyplan plugin for Moodle +// +// Moodle is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// Moodle is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Moodle. If not, see . +/** + * This file compiles the scss files in the scss/ folder into either the main + * styles.css for production upon build or css/devstyles.css for development + * + * @package local_treestudyplan + * @copyright 2023 P.M. Kuipers + * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + + +var library = require('sass'); +library.load({ + readline: require("readline"), + chokidar: require("chokidar"), +}); + +library.cli_pkg_main_0_(process.argv.slice(2));