Clean up test folder structure

This commit is contained in:
Jeremy Thomas 2020-11-07 17:27:34 +00:00
parent f659047462
commit 23b2bc5d0a
18 changed files with 35 additions and 28 deletions

View File

@ -4,11 +4,18 @@ matrix:
before_install:
- gem install sass
script:
- test/ruby-sass.sh
- test/ruby-sass/ruby-sass.sh
- language: node_js
node_js:
- node
before_script:
- npm install sass
script:
- node test/dart-sass.js
- node test/dart-sass/dart-sass.js
- language: node_js
node_js:
- node
before_script:
- npm install node-sass
script:
- node test/node-sass/node-sass.js

2
test/.gitignore vendored
View File

@ -1,2 +1,2 @@
/build
**/build
/css

View File

@ -1,9 +1,9 @@
const fs = require('fs');
const path = require('path');
const sass = require('sass');
const utils = require('./utils');
const utils = require('../utils');
const DART_BASE_PATH = 'test/build/dart-sass/';
const DART_BASE_PATH = 'test/dart-sass/build/';
fs.mkdir(DART_BASE_PATH, { recursive: true }, (err) => {
if (err) throw err;

View File

@ -1,9 +1,9 @@
const fs = require('fs');
const path = require('path');
const sass = require('node-sass');
const utils = require('./utils');
const utils = require('../utils');
const NODE_SASS_BASE_PATH = 'test/build/node-sass/';
const NODE_SASS_BASE_PATH = 'test/node-sass/build/';
fs.mkdir(NODE_SASS_BASE_PATH, { recursive: true }, (err) => {
if (err) throw err;

View File

@ -4,8 +4,8 @@
TEST_DIR=$(dirname $BASH_SOURCE)
FILES=$TEST_DIR/sass/*
CSS_DIR=$TEST_DIR/build/ruby-sass
CSS_FILES=$TEST_DIR/build/ruby-sass/*.css
CSS_DIR=$TEST_DIR/build
CSS_FILES=$TEST_DIR/build/*.css
SASS_OPTIONS=--sourcemap=none
# FUNCTIONS

2
test/ruby-sass/sass/bulma.sass vendored Normal file
View File

@ -0,0 +1,2 @@
@charset "utf-8"
@import "../../../bulma"

View File

@ -1,4 +1,4 @@
@charset "utf-8"
$red: #f60
$blue: var(--blue)
@import "../../bulma"
@import "../../../bulma"

View File

@ -26,12 +26,12 @@ $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";
@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";

View File

@ -0,0 +1,5 @@
@charset "utf-8"
@import "../../../sass/utilities/_all"
@import "../../../sass/base/_all"

View File

@ -1,7 +1,7 @@
@charset "utf-8";
// Import the variables
@import "../../sass/utilities/initial-variables.sass";
@import "../../../sass/utilities/initial-variables.sass";
$blue: #00f;
@ -38,4 +38,4 @@ $spacing-vertical: null;
$spacing-values: ("small": 10px, "medium": 30px, "large": 60px);
// Import the rest of Bulma
@import "../../bulma";
@import "../../../bulma";

View File

@ -1,2 +0,0 @@
@charset "utf-8"
@import "../../bulma"

View File

@ -1,5 +0,0 @@
@charset "utf-8"
@import "../../sass/utilities/_all"
@import "../../sass/base/_all"