From c0fcb5d7ddca4e39126e6b5e10fae1277b626d39 Mon Sep 17 00:00:00 2001 From: Zaydek Michels-Gualtieri Date: Sat, 19 Dec 2020 18:50:24 +0900 Subject: [PATCH] Moved extensions to their own folder --- package.json | 10 +++++----- src/duomo/builder-build-duomo.scss | 11 ++++++----- src/duomo/{core => extensions}/aspect-ratio.scss | 0 src/duomo/{core => extensions}/container.scss | 0 src/duomo/{core => extensions}/group.scss | 0 src/duomo/{core => extensions}/hidden.scss | 0 src/duomo/{core => extensions}/stacks/_index.scss | 0 src/duomo/{core => extensions}/stacks/grid.scss | 0 .../{core => extensions}/stacks/hstack-vstack.scss | 0 src/duomo/{core => extensions}/stacks/stacks.scss | 0 src/duomo/{core => extensions}/stacks/zstack.scss | 0 11 files changed, 11 insertions(+), 10 deletions(-) rename src/duomo/{core => extensions}/aspect-ratio.scss (100%) rename src/duomo/{core => extensions}/container.scss (100%) rename src/duomo/{core => extensions}/group.scss (100%) rename src/duomo/{core => extensions}/hidden.scss (100%) rename src/duomo/{core => extensions}/stacks/_index.scss (100%) rename src/duomo/{core => extensions}/stacks/grid.scss (100%) rename src/duomo/{core => extensions}/stacks/hstack-vstack.scss (100%) rename src/duomo/{core => extensions}/stacks/stacks.scss (100%) rename src/duomo/{core => extensions}/stacks/zstack.scss (100%) diff --git a/package.json b/package.json index 3472f59..c3449e3 100644 --- a/package.json +++ b/package.json @@ -9,12 +9,12 @@ "duomo.scss" ], "scripts": { - "watch": "nodemon --exec 'sass --style=compressed --no-charset --no-source-map src/consumer.scss dist/development.css && yarn prettier --write dist/development.css' --ext css,scss --watch src", + "watch": "nodemon --exec 'sass --no-charset --no-source-map --style=compressed src/consumer.scss dist/development.css && yarn prettier --write dist/development.css' --ext css,scss --watch src", "test": "jest", - "build-duomo-dev": "sass --style=compressed --no-charset --no-source-map builds/development.scss dist/development.css && yarn prettier -w dist/development.css", - "build-duomo-dev-full": "sass --style=compressed --no-charset --no-source-map builds/development-full.scss dist/development-full.css && yarn prettier -w dist/development-full.css", - "build-duomo-prod": "sass --style=compressed --no-charset --no-source-map builds/production.scss dist/production.css", - "build-duomo-prod-full": "sass --style=compressed --no-charset --no-source-map builds/production-full.scss dist/production-full.css", + "build-duomo-dev": "sass --no-charset --no-source-map --style=compressed builds/development.scss dist/development.css && yarn prettier -w dist/development.css", + "build-duomo-dev-full": "sass --no-charset --no-source-map --style=compressed builds/development-full.scss dist/development-full.css && yarn prettier -w dist/development-full.css", + "build-duomo-prod": "sass --no-charset --no-source-map --style=compressed builds/production.scss dist/production.css", + "build-duomo-prod-full": "sass --no-charset --no-source-map --style=compressed builds/production-full.scss dist/production-full.css", "build": "yarn rimraf dist && yarn tsc && yarn build-duomo-dev && yarn build-duomo-dev-full && yarn build-duomo-prod && yarn build-duomo-prod-full", "publish-dist-dry-run": "yarn build && npm publish --dry-run" }, diff --git a/src/duomo/builder-build-duomo.scss b/src/duomo/builder-build-duomo.scss index 2c6156d..ebb3a88 100644 --- a/src/duomo/builder-build-duomo.scss +++ b/src/duomo/builder-build-duomo.scss @@ -3,21 +3,17 @@ @use "helpers" as *; -@use "core/aspect-ratio" as *; @use "core/background-color" as *; @use "core/border-color" as *; @use "core/border-radius" as *; @use "core/border-width" as *; @use "core/box-shadow" as *; @use "core/color" as *; -@use "core/container" as *; @use "core/font-family" as *; @use "core/font-size" as *; @use "core/font-style" as *; @use "core/font-weight" as *; -@use "core/group" as *; @use "core/height" as *; -@use "core/hidden" as *; @use "core/letter-spacing" as *; @use "core/line-height" as *; @use "core/margin" as *; @@ -29,7 +25,6 @@ @use "core/padding" as *; @use "core/pointer-events" as *; @use "core/position" as *; -@use "core/stacks" as *; @use "core/text-align" as *; @use "core/text-decoration" as *; @use "core/transform" as *; @@ -39,6 +34,12 @@ @use "core/width" as *; @use "core/z-index" as *; +@use "extensions/aspect-ratio" as *; +@use "extensions/container" as *; +@use "extensions/group" as *; +@use "extensions/hidden" as *; +@use "extensions/stacks" as *; + @use "configuration"; // NOTE: Dart Sass does not support dynamic mixin invocations. diff --git a/src/duomo/core/aspect-ratio.scss b/src/duomo/extensions/aspect-ratio.scss similarity index 100% rename from src/duomo/core/aspect-ratio.scss rename to src/duomo/extensions/aspect-ratio.scss diff --git a/src/duomo/core/container.scss b/src/duomo/extensions/container.scss similarity index 100% rename from src/duomo/core/container.scss rename to src/duomo/extensions/container.scss diff --git a/src/duomo/core/group.scss b/src/duomo/extensions/group.scss similarity index 100% rename from src/duomo/core/group.scss rename to src/duomo/extensions/group.scss diff --git a/src/duomo/core/hidden.scss b/src/duomo/extensions/hidden.scss similarity index 100% rename from src/duomo/core/hidden.scss rename to src/duomo/extensions/hidden.scss diff --git a/src/duomo/core/stacks/_index.scss b/src/duomo/extensions/stacks/_index.scss similarity index 100% rename from src/duomo/core/stacks/_index.scss rename to src/duomo/extensions/stacks/_index.scss diff --git a/src/duomo/core/stacks/grid.scss b/src/duomo/extensions/stacks/grid.scss similarity index 100% rename from src/duomo/core/stacks/grid.scss rename to src/duomo/extensions/stacks/grid.scss diff --git a/src/duomo/core/stacks/hstack-vstack.scss b/src/duomo/extensions/stacks/hstack-vstack.scss similarity index 100% rename from src/duomo/core/stacks/hstack-vstack.scss rename to src/duomo/extensions/stacks/hstack-vstack.scss diff --git a/src/duomo/core/stacks/stacks.scss b/src/duomo/extensions/stacks/stacks.scss similarity index 100% rename from src/duomo/core/stacks/stacks.scss rename to src/duomo/extensions/stacks/stacks.scss diff --git a/src/duomo/core/stacks/zstack.scss b/src/duomo/extensions/stacks/zstack.scss similarity index 100% rename from src/duomo/core/stacks/zstack.scss rename to src/duomo/extensions/stacks/zstack.scss