Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: expose color utils in bundle #213

Merged
merged 2 commits into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,25 @@ function getAllComponentsBundleConfiguration() {
replace({
"~@/assets": "node_modules/@bimdata/design-system/dist",
delimiters: ["", ""],
preventAssignment: true,
}),
css({
output: "dist/css/design-system.css",
}),
copy({
targets: [
{ src: "src/assets/fonts", dest: "dist" },
{ src: "src/assets/scss", dest: "dist" },
{
src: "src/assets/fonts",
dest: "dist",
},
{
src: "src/assets/scss",
dest: "dist",
},
{
src: "src/BIMDataComponents/BIMDataColorSelector/colors.js",
dest: "dist",
},
{
src: "src/assets/css/_BIMDataFonts.css",
dest: "dist/css",
Expand Down Expand Up @@ -106,6 +117,7 @@ function getAllComponentsBundleConfiguration() {
replace({
"~@/assets": "node_modules/@bimdata/design-system/dist",
delimiters: ["", ""],
preventAssignment: true,
}),
vue3({
template: { isProduction: true },
Expand Down Expand Up @@ -136,6 +148,7 @@ function getSingleSmartComponentConfigurations() {
replace({
"~@/assets": "node_modules/@bimdata/design-system/dist",
delimiters: ["", ""],
preventAssignment: true,
}),
vue2({
template: { isProduction: true },
Expand Down Expand Up @@ -196,6 +209,7 @@ function getSingleComponentConfigurations() {
replace({
"~@/assets": "node_modules/@bimdata/design-system/dist",
delimiters: ["", ""],
preventAssignment: true,
}),
vue2({
template: { isProduction: true },
Expand Down Expand Up @@ -223,6 +237,7 @@ function getSingleComponentConfigurations() {
replace({
"~@/assets": "node_modules/@bimdata/design-system/dist",
delimiters: ["", ""],
preventAssignment: true,
}),
vue3({
template: { isProduction: true },
Expand Down
2 changes: 0 additions & 2 deletions src/BIMDataComponents/BIMDataFileIcon/file-icons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ import icon_iff from "./iff.svg";
import icon_image from "./image.svg";
import icon_img from "./img.svg";
import icon_indd from "./indd.svg";
import icon_index from "./index.js";
import icon_inf from "./inf.svg";
import icon_ini from "./ini.svg";
import icon_iso from "./iso.svg";
Expand Down Expand Up @@ -392,7 +391,6 @@ export default {
icon_image,
icon_img,
icon_indd,
icon_index,
icon_inf,
icon_ini,
icon_iso,
Expand Down
2 changes: 1 addition & 1 deletion src/assets/scss/mixins/_font-size.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ $browser-context: 14;
$context: $context * 1px;
}

@return $pixels / $context * 1em;
@return calc($pixels / $context * 1em);
}