This repository was archived by the owner on Jul 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
48 lines (43 loc) · 1.38 KB
/
build.bat
File metadata and controls
48 lines (43 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
:: Imagine Using JavaScript For Build Scripts Instead Of A Really Dumb Batch Script :joy: :joy: :joy: :joy: :joy:
@echo off
set "version=2.8.7"
call sass index.scss:dist/temp.css --style=compressed --no-source-map -q
if [%1]==[] rename dist\temp.css dist.css 2>nul
echo Compiled SCSS successfully.
cd dist
if [%1]==[] goto :end
goto %1 || cd..
:bd
call npx postcss temp.css -u postcss-csso --no-map -o QuickSCSS.theme.css
echo /** > temp
echo * @name QuickSCSS >> temp
echo * @description yeah >> temp
echo * @discord wYdxqw5gHB >> temp
echo * @author walter >> temp
echo * @version %version% >> temp
echo */ >> temp
type QuickSCSS.theme.css >> temp
type temp > QuickSCSS.theme.css
goto :end
:web
call npx postcss temp.css -u postcss-unprefix autoprefixer postcss-csso --no-map -o QuickSCSS.user.css
echo /* ==UserStyle== > temp
echo @name QuickSCSS >> temp
echo @namespace QuickSCSS >> temp
echo @author walter >> temp
echo @version %version% >> temp
echo @license GNU GPLv3 >> temp
echo @preprocessor default >> temp
echo ==/UserStyle== */ >> temp
echo @-moz-document regexp("https://(canary|ptb)\\.discord\\.com/.*"), >> temp
echo url-prefix("https://discord.com/") { >> temp
type QuickSCSS.user.css >> temp
type temp > QuickSCSS.user.css
echo } >> QuickSCSS.user.css
goto :end
:end
del temp 2>nul
del temp.css 2>nul
if not [%1]==[] echo Compiled %1 successfully.
cd..
REM npm run clear