Skip to content

Commit

Permalink
refactor: renamed bundle scss file and fixed path in usage files (#113)
Browse files Browse the repository at this point in the history
* refactor: renamed db-ui-base.scss
* fix: path in usage files
  • Loading branch information
annsch authored Nov 1, 2022
1 parent ade52aa commit acc7fa7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"copy:assets": "cpr assets build/assets -d",
"copy:scss": "cpr scss build/scss -o",
"build:style-dictionary": "node style-dictionary.js && npm run copy:scss",
"build:patternlab-css": "sass source/css/db-ui-base.scss:out/css/db-ui-base.css --style=compressed --embed-sources --load-path=node_modules",
"build:patternlab-css": "sass source/css/patternlab.scss:out/css/patternlab.css --style=compressed --embed-sources --load-path=node_modules",
"build:tailwind": "node scripts/tailwind-config-generator.mjs false true && cpr scripts/tailwind-config-generator.mjs build/tailwind/tailwind-config-generator.mjs -o",
"build-test:css": "sass build/scss/_db-ui.scss:build/css/db-ui.css --load-path=node_modules",
"build-test:css": "sass build/scss/_db-ui-base.scss:build/css/db-ui-base.css --load-path=node_modules",
"build": "npm-run-all copy:assets build:* pl:build",
"clean": "rm -rf build",
"lint": "npm-run-all -p lint:*",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion source/_meta/_head.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width" />

<link rel="stylesheet" href="../../css/db-ui-base.css?{{ cacheBuster }}" media="all" />
<link rel="stylesheet" href="../../css/patternlab.css?{{ cacheBuster }}" media="all" />
<link rel="stylesheet" href="../../css/pattern-scaffolding.css?{{ cacheBuster }}" media="all" />
<link rel="stylesheet" href="https://db-ui.github.io/core/css/pattern-scaffolding-project-specific.css?{{ cacheBuster }}" media="all" />

Expand Down
2 changes: 1 addition & 1 deletion source/_patterns/sizings/usage.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<db-tab label="SCSS" name="tab-bar" active>
<pre>
<code class="language-scss">/* ./index.scss */
@import "@db-ui-base/build/scss/db-ui";
@import "@db-ui/base/build/scss/db-ui-base";

body {
@extend %db-ui-functional;
Expand Down
2 changes: 1 addition & 1 deletion source/_patterns/spacings/usage.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<db-tab label="SCSS" name="tab-bar" active>
<pre>
<code class="language-scss">/* ./index.scss */
@import "@db-ui-base/build/scss/db-ui";
@import "@db-ui/base/build/scss/db-ui-base";

body {
@extend %db-ui-functional;
Expand Down
2 changes: 1 addition & 1 deletion source/_patterns/typography/usage.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<p>Applies all font-faces to body and headlines:</p>
<pre>
<code class="language-scss">/* ./index.scss */
@import "@db-ui-base/build/scss/db-ui";
@import "@db-ui/base/build/scss/db-ui-base";

body {
@extend %db-ui-functional;
Expand Down
2 changes: 1 addition & 1 deletion source/css/db-ui-base.scss → source/css/patternlab.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../build/scss/db-ui";
@import "../../build/scss/db-ui-base";
@import "../../build/scss/typography-classes";
@import "../../build/scss/color-classes";

Expand Down

0 comments on commit acc7fa7

Please sign in to comment.