File tree Expand file tree Collapse file tree
theming-palette-generation/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838fi
3939
4040# --- Check 3: Correct import from igniteui-angular entry point ---
41+ # Accepts either the OSS or licensed package path
42+ GRID_IMPORT_PATTERN=" from ['\" ](@infragistics/)?igniteui-angular/grids/grid['\" ]"
4143if [ -n " $COMPONENT_FILE " ]; then
42- if grep -qE " from [' \" ]igniteui-angular/grids/grid[' \" ]|from [' \" ]@infragistics/igniteui-angular/grids/grid[' \" ] " " $COMPONENT_FILE " 2> /dev/null; then
44+ if grep -qE " $GRID_IMPORT_PATTERN " " $COMPONENT_FILE " 2> /dev/null; then
4345 SCORE=$(( SCORE + 1 ))
4446 DETAILS=" ${DETAILS} PASS: Correct grid entry-point import found\n"
4547 else
Original file line number Diff line number Diff line change @@ -24,7 +24,10 @@ if [ -z "${STYLES_FILE:-}" ]; then
2424fi
2525
2626# --- Check 1: Import from igniteui-angular/theming ---
27- if grep -qE " @use ['\" ]igniteui-angular/theming['\" ]|@use ['\" ]@infragistics/igniteui-angular/theming['\" ]|@import ['\" ]igniteui-angular/theming['\" ]|@import ['\" ]@infragistics/igniteui-angular/theming['\" ]|@import ['\" ]~igniteui-angular/lib/core/styles/themes" " $STYLES_FILE " 2> /dev/null; then
27+ # Accepts @use or @import with either the OSS or licensed package path
28+ THEMING_IMPORT_PATTERN=" @(use|import) ['\" ](@infragistics/)?igniteui-angular/theming['\" ]"
29+ LEGACY_IMPORT_PATTERN=" @import ['\" ]~igniteui-angular/lib/core/styles/themes"
30+ if grep -qE " $THEMING_IMPORT_PATTERN |$LEGACY_IMPORT_PATTERN " " $STYLES_FILE " 2> /dev/null; then
2831 SCORE=$(( SCORE + 1 ))
2932 DETAILS=" ${DETAILS} PASS: Correct theming import found\n"
3033else
You can’t perform that action at this time.
0 commit comments