1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-10-16 05:37:28 +00:00
bluelib/_build.sh

63 lines
1.2 KiB
Bash
Raw Normal View History

2022-02-21 03:54:35 +00:00
#!/bin/bash
2022-02-21 04:37:33 +00:00
# Maybe a Makefile would be better...
2022-02-21 03:54:35 +00:00
origin=$(pwd)
cd "dist"
echo "Cleaning dist:" *
rm -I *
v5.0.0 (#47) * Create full implementation of font groups * Fix typo mixin → mixins * Add all possible values of the `font` CSS property to font groups. * Create full implementation of color groups * Improve documentation of font groups mixins * Add overloads for color group mixins * Bump version to 5.0.0 * Add `bhsl` prefix to color hsl groups * Add `bfont` prefix to font groups * Port `royalblue` theme to color groups * Rename `utils` → `groups` * Begin skeleton rewrite * Add missing </editor-fold> * Reimplement "Page" rules * Use `rem` instead of `em` as footer margin * Add bottom page-footer margin * Re-add chapters * Delete the apache2 example * Remove compiled css for now * Re-add separators * Re-add images * Improve docs and remove figures (for now?) * Implement tables and other things * Start working on lists * Update VSCode launch config * Add initial experimental support for `list-unordered` and `list-ordered` * WIP: some work on glossaries and tables * WIP: modifiers * Make a lot of progress which I'm to lazy to commit properly * FANCY CLASSIC STYLES * Start configuring a codespaces environment * Fix table caption background color * mess around a bit with backdrops * Apply some tweaks to tables * Comment out classic stylesheets * Add skeleton for inputs and forms * Mark missing things * Huge progress but im lost * Create yarn.lock so intellij stops annoying me about npm * Complete inputs and misc things * Complete collapsible details * Complete text elements * Complete forms
2022-10-11 09:27:55 +00:00
echo "Finding mixins..."
mixins=$(ls ../src/mixins/**.less)
echo "Mixins:"
echo "$mixins"
2022-02-21 03:54:35 +00:00
echo
2022-10-14 22:51:30 +00:00
echo "Finding rulesets..."
rules=$(ls ../src/rulesets/*.less ../src/rulesets/**/*.less)
v5.0.0 (#47) * Create full implementation of font groups * Fix typo mixin → mixins * Add all possible values of the `font` CSS property to font groups. * Create full implementation of color groups * Improve documentation of font groups mixins * Add overloads for color group mixins * Bump version to 5.0.0 * Add `bhsl` prefix to color hsl groups * Add `bfont` prefix to font groups * Port `royalblue` theme to color groups * Rename `utils` → `groups` * Begin skeleton rewrite * Add missing </editor-fold> * Reimplement "Page" rules * Use `rem` instead of `em` as footer margin * Add bottom page-footer margin * Re-add chapters * Delete the apache2 example * Remove compiled css for now * Re-add separators * Re-add images * Improve docs and remove figures (for now?) * Implement tables and other things * Start working on lists * Update VSCode launch config * Add initial experimental support for `list-unordered` and `list-ordered` * WIP: some work on glossaries and tables * WIP: modifiers * Make a lot of progress which I'm to lazy to commit properly * FANCY CLASSIC STYLES * Start configuring a codespaces environment * Fix table caption background color * mess around a bit with backdrops * Apply some tweaks to tables * Comment out classic stylesheets * Add skeleton for inputs and forms * Mark missing things * Huge progress but im lost * Create yarn.lock so intellij stops annoying me about npm * Complete inputs and misc things * Complete collapsible details * Complete text elements * Complete forms
2022-10-11 09:27:55 +00:00
echo "Rules:"
echo "$rules"
2022-02-21 03:54:35 +00:00
echo
v5.0.0 (#47) * Create full implementation of font groups * Fix typo mixin → mixins * Add all possible values of the `font` CSS property to font groups. * Create full implementation of color groups * Improve documentation of font groups mixins * Add overloads for color group mixins * Bump version to 5.0.0 * Add `bhsl` prefix to color hsl groups * Add `bfont` prefix to font groups * Port `royalblue` theme to color groups * Rename `utils` → `groups` * Begin skeleton rewrite * Add missing </editor-fold> * Reimplement "Page" rules * Use `rem` instead of `em` as footer margin * Add bottom page-footer margin * Re-add chapters * Delete the apache2 example * Remove compiled css for now * Re-add separators * Re-add images * Improve docs and remove figures (for now?) * Implement tables and other things * Start working on lists * Update VSCode launch config * Add initial experimental support for `list-unordered` and `list-ordered` * WIP: some work on glossaries and tables * WIP: modifiers * Make a lot of progress which I'm to lazy to commit properly * FANCY CLASSIC STYLES * Start configuring a codespaces environment * Fix table caption background color * mess around a bit with backdrops * Apply some tweaks to tables * Comment out classic stylesheets * Add skeleton for inputs and forms * Mark missing things * Huge progress but im lost * Create yarn.lock so intellij stops annoying me about npm * Complete inputs and misc things * Complete collapsible details * Complete text elements * Complete forms
2022-10-11 09:27:55 +00:00
echo "Finding selectors..."
2022-10-14 22:51:30 +00:00
selectors=$(ls ../src/selectorsets/*.less ../src/selectorsets/**/*.less)
v5.0.0 (#47) * Create full implementation of font groups * Fix typo mixin → mixins * Add all possible values of the `font` CSS property to font groups. * Create full implementation of color groups * Improve documentation of font groups mixins * Add overloads for color group mixins * Bump version to 5.0.0 * Add `bhsl` prefix to color hsl groups * Add `bfont` prefix to font groups * Port `royalblue` theme to color groups * Rename `utils` → `groups` * Begin skeleton rewrite * Add missing </editor-fold> * Reimplement "Page" rules * Use `rem` instead of `em` as footer margin * Add bottom page-footer margin * Re-add chapters * Delete the apache2 example * Remove compiled css for now * Re-add separators * Re-add images * Improve docs and remove figures (for now?) * Implement tables and other things * Start working on lists * Update VSCode launch config * Add initial experimental support for `list-unordered` and `list-ordered` * WIP: some work on glossaries and tables * WIP: modifiers * Make a lot of progress which I'm to lazy to commit properly * FANCY CLASSIC STYLES * Start configuring a codespaces environment * Fix table caption background color * mess around a bit with backdrops * Apply some tweaks to tables * Comment out classic stylesheets * Add skeleton for inputs and forms * Mark missing things * Huge progress but im lost * Create yarn.lock so intellij stops annoying me about npm * Complete inputs and misc things * Complete collapsible details * Complete text elements * Complete forms
2022-10-11 09:27:55 +00:00
echo "Selectors:"
echo "$selectors"
echo
for selector in $selectors
2022-02-21 03:54:35 +00:00
do
v5.0.0 (#47) * Create full implementation of font groups * Fix typo mixin → mixins * Add all possible values of the `font` CSS property to font groups. * Create full implementation of color groups * Improve documentation of font groups mixins * Add overloads for color group mixins * Bump version to 5.0.0 * Add `bhsl` prefix to color hsl groups * Add `bfont` prefix to font groups * Port `royalblue` theme to color groups * Rename `utils` → `groups` * Begin skeleton rewrite * Add missing </editor-fold> * Reimplement "Page" rules * Use `rem` instead of `em` as footer margin * Add bottom page-footer margin * Re-add chapters * Delete the apache2 example * Remove compiled css for now * Re-add separators * Re-add images * Improve docs and remove figures (for now?) * Implement tables and other things * Start working on lists * Update VSCode launch config * Add initial experimental support for `list-unordered` and `list-ordered` * WIP: some work on glossaries and tables * WIP: modifiers * Make a lot of progress which I'm to lazy to commit properly * FANCY CLASSIC STYLES * Start configuring a codespaces environment * Fix table caption background color * mess around a bit with backdrops * Apply some tweaks to tables * Comment out classic stylesheets * Add skeleton for inputs and forms * Mark missing things * Huge progress but im lost * Create yarn.lock so intellij stops annoying me about npm * Complete inputs and misc things * Complete collapsible details * Complete text elements * Complete forms
2022-10-11 09:27:55 +00:00
for rule in $rules
2022-02-21 03:54:35 +00:00
do
v5.0.0 (#47) * Create full implementation of font groups * Fix typo mixin → mixins * Add all possible values of the `font` CSS property to font groups. * Create full implementation of color groups * Improve documentation of font groups mixins * Add overloads for color group mixins * Bump version to 5.0.0 * Add `bhsl` prefix to color hsl groups * Add `bfont` prefix to font groups * Port `royalblue` theme to color groups * Rename `utils` → `groups` * Begin skeleton rewrite * Add missing </editor-fold> * Reimplement "Page" rules * Use `rem` instead of `em` as footer margin * Add bottom page-footer margin * Re-add chapters * Delete the apache2 example * Remove compiled css for now * Re-add separators * Re-add images * Improve docs and remove figures (for now?) * Implement tables and other things * Start working on lists * Update VSCode launch config * Add initial experimental support for `list-unordered` and `list-ordered` * WIP: some work on glossaries and tables * WIP: modifiers * Make a lot of progress which I'm to lazy to commit properly * FANCY CLASSIC STYLES * Start configuring a codespaces environment * Fix table caption background color * mess around a bit with backdrops * Apply some tweaks to tables * Comment out classic stylesheets * Add skeleton for inputs and forms * Mark missing things * Huge progress but im lost * Create yarn.lock so intellij stops annoying me about npm * Complete inputs and misc things * Complete collapsible details * Complete text elements * Complete forms
2022-10-11 09:27:55 +00:00
bselector=$(basename "$selector" ".less")
brule=$(basename "$rule" ".less")
2022-02-21 03:54:35 +00:00
# Dot notation is used so .module.css files can be generated
v5.0.0 (#47) * Create full implementation of font groups * Fix typo mixin → mixins * Add all possible values of the `font` CSS property to font groups. * Create full implementation of color groups * Improve documentation of font groups mixins * Add overloads for color group mixins * Bump version to 5.0.0 * Add `bhsl` prefix to color hsl groups * Add `bfont` prefix to font groups * Port `royalblue` theme to color groups * Rename `utils` → `groups` * Begin skeleton rewrite * Add missing </editor-fold> * Reimplement "Page" rules * Use `rem` instead of `em` as footer margin * Add bottom page-footer margin * Re-add chapters * Delete the apache2 example * Remove compiled css for now * Re-add separators * Re-add images * Improve docs and remove figures (for now?) * Implement tables and other things * Start working on lists * Update VSCode launch config * Add initial experimental support for `list-unordered` and `list-ordered` * WIP: some work on glossaries and tables * WIP: modifiers * Make a lot of progress which I'm to lazy to commit properly * FANCY CLASSIC STYLES * Start configuring a codespaces environment * Fix table caption background color * mess around a bit with backdrops * Apply some tweaks to tables * Comment out classic stylesheets * Add skeleton for inputs and forms * Mark missing things * Huge progress but im lost * Create yarn.lock so intellij stops annoying me about npm * Complete inputs and misc things * Complete collapsible details * Complete text elements * Complete forms
2022-10-11 09:27:55 +00:00
base="$brule.$bselector"
echo "Creating $base.less..."
echo "// Mixins" > "$base.less"
for mixin in $mixins
do
echo "@import (less) \"$mixin\";" >> "$base.less"
done
echo >> "$base.less"
2022-02-21 03:54:35 +00:00
v5.0.0 (#47) * Create full implementation of font groups * Fix typo mixin → mixins * Add all possible values of the `font` CSS property to font groups. * Create full implementation of color groups * Improve documentation of font groups mixins * Add overloads for color group mixins * Bump version to 5.0.0 * Add `bhsl` prefix to color hsl groups * Add `bfont` prefix to font groups * Port `royalblue` theme to color groups * Rename `utils` → `groups` * Begin skeleton rewrite * Add missing </editor-fold> * Reimplement "Page" rules * Use `rem` instead of `em` as footer margin * Add bottom page-footer margin * Re-add chapters * Delete the apache2 example * Remove compiled css for now * Re-add separators * Re-add images * Improve docs and remove figures (for now?) * Implement tables and other things * Start working on lists * Update VSCode launch config * Add initial experimental support for `list-unordered` and `list-ordered` * WIP: some work on glossaries and tables * WIP: modifiers * Make a lot of progress which I'm to lazy to commit properly * FANCY CLASSIC STYLES * Start configuring a codespaces environment * Fix table caption background color * mess around a bit with backdrops * Apply some tweaks to tables * Comment out classic stylesheets * Add skeleton for inputs and forms * Mark missing things * Huge progress but im lost * Create yarn.lock so intellij stops annoying me about npm * Complete inputs and misc things * Complete collapsible details * Complete text elements * Complete forms
2022-10-11 09:27:55 +00:00
echo "// Selector" >> "$base.less"
echo "@import (less) \"$selector\";" >> "$base.less"
echo >> "$base.less"
2022-02-21 03:54:35 +00:00
v5.0.0 (#47) * Create full implementation of font groups * Fix typo mixin → mixins * Add all possible values of the `font` CSS property to font groups. * Create full implementation of color groups * Improve documentation of font groups mixins * Add overloads for color group mixins * Bump version to 5.0.0 * Add `bhsl` prefix to color hsl groups * Add `bfont` prefix to font groups * Port `royalblue` theme to color groups * Rename `utils` → `groups` * Begin skeleton rewrite * Add missing </editor-fold> * Reimplement "Page" rules * Use `rem` instead of `em` as footer margin * Add bottom page-footer margin * Re-add chapters * Delete the apache2 example * Remove compiled css for now * Re-add separators * Re-add images * Improve docs and remove figures (for now?) * Implement tables and other things * Start working on lists * Update VSCode launch config * Add initial experimental support for `list-unordered` and `list-ordered` * WIP: some work on glossaries and tables * WIP: modifiers * Make a lot of progress which I'm to lazy to commit properly * FANCY CLASSIC STYLES * Start configuring a codespaces environment * Fix table caption background color * mess around a bit with backdrops * Apply some tweaks to tables * Comment out classic stylesheets * Add skeleton for inputs and forms * Mark missing things * Huge progress but im lost * Create yarn.lock so intellij stops annoying me about npm * Complete inputs and misc things * Complete collapsible details * Complete text elements * Complete forms
2022-10-11 09:27:55 +00:00
echo "// Rule" >> "$base.less"
echo "@import (less) \"$rule\";" >> "$base.less"
echo >> "$base.less"
2022-02-21 03:54:35 +00:00
v5.0.0 (#47) * Create full implementation of font groups * Fix typo mixin → mixins * Add all possible values of the `font` CSS property to font groups. * Create full implementation of color groups * Improve documentation of font groups mixins * Add overloads for color group mixins * Bump version to 5.0.0 * Add `bhsl` prefix to color hsl groups * Add `bfont` prefix to font groups * Port `royalblue` theme to color groups * Rename `utils` → `groups` * Begin skeleton rewrite * Add missing </editor-fold> * Reimplement "Page" rules * Use `rem` instead of `em` as footer margin * Add bottom page-footer margin * Re-add chapters * Delete the apache2 example * Remove compiled css for now * Re-add separators * Re-add images * Improve docs and remove figures (for now?) * Implement tables and other things * Start working on lists * Update VSCode launch config * Add initial experimental support for `list-unordered` and `list-ordered` * WIP: some work on glossaries and tables * WIP: modifiers * Make a lot of progress which I'm to lazy to commit properly * FANCY CLASSIC STYLES * Start configuring a codespaces environment * Fix table caption background color * mess around a bit with backdrops * Apply some tweaks to tables * Comment out classic stylesheets * Add skeleton for inputs and forms * Mark missing things * Huge progress but im lost * Create yarn.lock so intellij stops annoying me about npm * Complete inputs and misc things * Complete collapsible details * Complete text elements * Complete forms
2022-10-11 09:27:55 +00:00
echo "Compiling $base.css..."
2022-04-29 23:18:15 +00:00
lessc "$base.less" "$base.css"
2023-04-07 00:19:56 +00:00
echo "Compiling $base.min.css..."
lessc "$base.less" --clean-css "$base.min.css"
2022-02-21 03:54:35 +00:00
done
done
cd "$origin"