diff --git a/test/node-sass/node-sass.js b/test/node-sass/node-sass.js deleted file mode 100644 index d5511281..00000000 --- a/test/node-sass/node-sass.js +++ /dev/null @@ -1,40 +0,0 @@ -const fs = require('fs'); -const path = require('path'); -const sass = require('node-sass'); -const utils = require('../utils'); - -const NODE_SASS_BASE_PATH = 'test/node-sass/build/'; - -fs.mkdir(NODE_SASS_BASE_PATH, { recursive: true }, (err) => { - if (err) throw err; -}); - -const exportNodeSassCSS = (filepath, options) => { - utils.exportCSS(sass, fs, NODE_SASS_BASE_PATH, filepath, options) -} - -// Full import - -exportNodeSassCSS('bulma', { - file: './bulma.sass', -}); - -exportNodeSassCSS('bulma-rtl', { - file: './bulma-rtl.sass', -}); - -// Single imports - -const BULMA_IMPORT_PATH = `./sass/`; - -utils.SOURCES.forEach((source) => { - const parsed = path.parse(source); - - fs.mkdir(`${NODE_SASS_BASE_PATH}${parsed.dir}`, { recursive: true }, (err) => { - if (err) throw err; - }); - - exportNodeSassCSS(`${parsed.dir}/${parsed.name}`, { - data: `@import "${BULMA_IMPORT_PATH}${source}";`, - }); -}); diff --git a/test/ruby-sass/keywords.txt b/test/ruby-sass/keywords.txt deleted file mode 100644 index 42f4f323..00000000 --- a/test/ruby-sass/keywords.txt +++ /dev/null @@ -1,2 +0,0 @@ -bulma.io v0.9.0 -.button.is-primary \ No newline at end of file diff --git a/test/ruby-sass/keywords/bulma.css.txt b/test/ruby-sass/keywords/bulma.css.txt deleted file mode 100644 index 7aba0a88..00000000 --- a/test/ruby-sass/keywords/bulma.css.txt +++ /dev/null @@ -1,70 +0,0 @@ -\* Bulma Base \* -minireset.css -html -article -aside - -\* Bulma Components \* -.breadcrumb -.card -.dropdown -.level -.media -.menu -.message -.message.is-primary -.modal -.navbar -.navbar.is-primary -.pagination -.panel -.tabs - -\* Bulma Elements \* -.box -.button -.button.is-primary -.container -.content -.form -.icon -.notification -.notification.is-primary -.block -.delete -.progress -.table -.tag -.tag:not(body).is-primary -.title - -\* Bulma Form \* -.checkbox -.radio -.file -.input -.is-primary.input -.textarea -.is-primary.textarea -.select -.select.is-primary -.label -.help -.field - -\* Bulma Grid \* -.column -.columns -.columns.is-variable -.tile - -\* Bulma Helpers \* -.has-text-primary -.has-text-primary-light -.has-text-primary-dark -.has-background-primary -.has-background-primary-light -.has-background-primary-dark - -\* Bulma Utilities \* -@keyframes spinAround \ No newline at end of file diff --git a/test/ruby-sass/keywords/css-variable.css.txt b/test/ruby-sass/keywords/css-variable.css.txt deleted file mode 100644 index 7aba0a88..00000000 --- a/test/ruby-sass/keywords/css-variable.css.txt +++ /dev/null @@ -1,70 +0,0 @@ -\* Bulma Base \* -minireset.css -html -article -aside - -\* Bulma Components \* -.breadcrumb -.card -.dropdown -.level -.media -.menu -.message -.message.is-primary -.modal -.navbar -.navbar.is-primary -.pagination -.panel -.tabs - -\* Bulma Elements \* -.box -.button -.button.is-primary -.container -.content -.form -.icon -.notification -.notification.is-primary -.block -.delete -.progress -.table -.tag -.tag:not(body).is-primary -.title - -\* Bulma Form \* -.checkbox -.radio -.file -.input -.is-primary.input -.textarea -.is-primary.textarea -.select -.select.is-primary -.label -.help -.field - -\* Bulma Grid \* -.column -.columns -.columns.is-variable -.tile - -\* Bulma Helpers \* -.has-text-primary -.has-text-primary-light -.has-text-primary-dark -.has-background-primary -.has-background-primary-light -.has-background-primary-dark - -\* Bulma Utilities \* -@keyframes spinAround \ No newline at end of file diff --git a/test/ruby-sass/keywords/customize.css.txt b/test/ruby-sass/keywords/customize.css.txt deleted file mode 100644 index 14811ea7..00000000 --- a/test/ruby-sass/keywords/customize.css.txt +++ /dev/null @@ -1,32 +0,0 @@ -https://fonts.googleapis.com/css?family=Nunito:400,700 - -\* Bulma Base \* -minireset.css -html -article -aside - -.navbar -.navbar.is-primary - -.button -.button.is-primary -.container -.title - -\* Bulma Form \* -.checkbox -.radio -.file -.input -.is-primary.input -.textarea -.is-primary.textarea -.select -.select.is-primary -.label -.help -.field - -\* Bulma Utilities \* -@keyframes spinAround \ No newline at end of file diff --git a/test/ruby-sass/keywords/only-base.css.txt b/test/ruby-sass/keywords/only-base.css.txt deleted file mode 100644 index 0ef436fe..00000000 --- a/test/ruby-sass/keywords/only-base.css.txt +++ /dev/null @@ -1,5 +0,0 @@ -\* Bulma Base \* -minireset.css -html -article -aside \ No newline at end of file diff --git a/test/ruby-sass/keywords/override.css.txt b/test/ruby-sass/keywords/override.css.txt deleted file mode 100644 index 11d8a86f..00000000 --- a/test/ruby-sass/keywords/override.css.txt +++ /dev/null @@ -1,7 +0,0 @@ -\* Bulma Base \* -minireset.css -html -article -aside - -hsl(39, 100%, 92%) \ No newline at end of file diff --git a/test/ruby-sass/ruby-sass.sh b/test/ruby-sass/ruby-sass.sh deleted file mode 100755 index f50e2d1d..00000000 --- a/test/ruby-sass/ruby-sass.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash - -# CONSTANTS - -TEST_DIR=$(dirname $BASH_SOURCE) -FILES=$TEST_DIR/sass/* -CSS_DIR=$TEST_DIR/build -CSS_FILES=$TEST_DIR/build/*.css -SASS_OPTIONS=--sourcemap=none - -# FUNCTIONS - -build_sass() -{ - echo "Processing $1 file…" - - local fileName=$(basename -- "$1") - local name="${fileName%.*}" - local destFile="$CSS_DIR/$name.css" - - sass "$1" "${destFile}" -} - -build_all_css_files() -{ - rm -r $CSS_DIR - - if [ ! -d "${CSS_DIR}" ]; then - echo "Creating $CSS_DIR directory…" - mkdir -p "${CSS_DIR}" - fi - - if [ $1 ] - then - build_sass $1 - else - for f in $FILES - do - build_sass $f - done - fi -} - -check_keywords_inclusion() -{ - for f in $CSS_FILES - do - BASE=$(basename $f) - KEYWORDS_FILE=$TEST_DIR/keywords/$BASE.txt - while read p; do - if ! grep -q "$p" "$f" - then - # echo "Ok" - # else - echo "$p not found in $f" - fi - # echo "Checking for $p " - done < $KEYWORDS_FILE - done -} - -# EXECUTION - -build_all_css_files $@ -check_keywords_inclusion $@ diff --git a/test/ruby-sass/sass/bulma.sass b/test/ruby-sass/sass/bulma.sass deleted file mode 100644 index 37efd264..00000000 --- a/test/ruby-sass/sass/bulma.sass +++ /dev/null @@ -1,2 +0,0 @@ -@charset "utf-8" -@import "../../../bulma" diff --git a/test/ruby-sass/sass/css-variable.sass b/test/ruby-sass/sass/css-variable.sass deleted file mode 100644 index faf6304d..00000000 --- a/test/ruby-sass/sass/css-variable.sass +++ /dev/null @@ -1,4 +0,0 @@ -@charset "utf-8" -$red: #f60 -$blue: var(--blue) -@import "../../../bulma" diff --git a/test/ruby-sass/sass/customize.scss b/test/ruby-sass/sass/customize.scss deleted file mode 100644 index bb4047d6..00000000 --- a/test/ruby-sass/sass/customize.scss +++ /dev/null @@ -1,37 +0,0 @@ -@charset "utf-8"; - -// Import a Google Font -@import url('https://fonts.googleapis.com/css?family=Nunito:400,700'); - -// Set your brand colors -$purple: #8A4D76; -$pink: #FA7C91; -$brown: #757763; -$beige-light: #D0D1CD; -$beige-lighter: #EFF0EB; - -// Update Bulma's global variables -$family-sans-serif: "Nunito", sans-serif; -$grey-dark: $brown; -$grey-light: $beige-light; -$primary: $purple; -$link: $pink; -$widescreen-enabled: false; -$fullhd-enabled: false; - -// Update some of Bulma's component variables -$body-background-color: $beige-lighter; -$control-border-width: 2px; -$input-border-color: transparent; -$input-shadow: none; - -// Import only what you need from Bulma -@import "../../../sass/utilities/_all.sass"; -@import "../../../sass/base/_all.sass"; -@import "../../../sass/elements/button.sass"; -@import "../../../sass/elements/container.sass"; -@import "../../../sass/elements/title.sass"; -@import "../../../sass/form/_all.sass"; -@import "../../../sass/components/navbar.sass"; -@import "../../../sass/layout/hero.sass"; -@import "../../../sass/layout/section.sass"; diff --git a/test/ruby-sass/sass/only-base.sass b/test/ruby-sass/sass/only-base.sass deleted file mode 100644 index 53307524..00000000 --- a/test/ruby-sass/sass/only-base.sass +++ /dev/null @@ -1,5 +0,0 @@ -@charset "utf-8" -@import "../../../sass/utilities/_all" -@import "../../../sass/base/_all" - - diff --git a/test/ruby-sass/sass/override.scss b/test/ruby-sass/sass/override.scss deleted file mode 100644 index 637c5800..00000000 --- a/test/ruby-sass/sass/override.scss +++ /dev/null @@ -1,41 +0,0 @@ -@charset "utf-8"; - -// Import the variables -@import "../../../sass/utilities/initial-variables.sass"; - -$blue: #00f; - -$purple: #8A4D76; -$pink: #FA7C91; -$brown: #757763; -$beige-light: #D0D1CD; -$beige-lighter: #EFF0EB; - -$grey-dark: $brown; -$grey-light: $beige-light; -$primary: $purple; -$link: $pink; - -$orange: #f60; -$orange-invert: findColorInvert($orange); -$orange-light: hsl(39, 100%, 92%); - -$lavender: lavender; -$lavender-invert: white; -$lavender-light: hsl(240, 56%, 98%); -$lavender-dark: hsl(240, 31%, 24%); - -$custom-colors: ( - "lime": (lime), - "tomato": (tomato, white), - "orange": ($orange, $orange-invert, $orange-light), - "lavender": ($lavender, $lavender-invert, $lavender-light, $lavender-dark) -); - -$spacing-shortcuts: ("margin": "mg"); -$spacing-horizontal: "h"; -$spacing-vertical: null; -$spacing-values: ("small": 10px, "medium": 30px, "large": 60px); - -// Import the rest of Bulma -@import "../../../bulma";