From 9fa2f8e910e3e2cbe642de292eb2ad93684fefaa Mon Sep 17 00:00:00 2001 From: Adam Driscoll Date: Sun, 22 Sep 2019 15:29:02 +0530 Subject: [PATCH] Fixes #1155 (#1156) --- src/UniversalDashboard.MaterialUI/build.ps1 | 10 +++++-- .../Components/ud-checkbox.jsx | 2 +- .../Tests/checkbox.tests.ps1 | 7 ++++- src/UniversalDashboard.Materialize/build.ps1 | 10 +++++-- src/build.ps1 | 30 ++++++++++--------- 5 files changed, 39 insertions(+), 20 deletions(-) diff --git a/src/UniversalDashboard.MaterialUI/build.ps1 b/src/UniversalDashboard.MaterialUI/build.ps1 index a2f0568f..9de71ccc 100644 --- a/src/UniversalDashboard.MaterialUI/build.ps1 +++ b/src/UniversalDashboard.MaterialUI/build.ps1 @@ -1,3 +1,5 @@ +param([Switch]$Minimal) + $BuildFolder = $PSScriptRoot $powerShellGet = Import-Module PowerShellGet -PassThru -ErrorAction Ignore @@ -15,8 +17,12 @@ Remove-Item -Path "$BuildFolder\public" -Force -Recurse New-Item -Path $OutputPath -ItemType Directory -& cyclonedx-bom -o materialui.bom.xml -npm install +if (-not $Minimal) +{ + & cyclonedx-bom -o materialui.bom.xml + npm install +} + npm run build Copy-Item $BuildFolder\public\*.bundle.js $OutputPath diff --git a/src/UniversalDashboard.Materialize/Components/ud-checkbox.jsx b/src/UniversalDashboard.Materialize/Components/ud-checkbox.jsx index 3a75a95a..e6461b0e 100644 --- a/src/UniversalDashboard.Materialize/Components/ud-checkbox.jsx +++ b/src/UniversalDashboard.Materialize/Components/ud-checkbox.jsx @@ -51,7 +51,7 @@ export default class UDCheckbox extends React.Component { render() { return