Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit e3931fb

Browse files
committed
refactor(tools): convert scripts from npm to yarn
re-enable Angular CLI's build-optimizer
1 parent 6094a0e commit e3931fb

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tools/build-themes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ for FILE in $FILES
1313
do
1414
FILENAME=${FILE#$INPUT_PATH}
1515
BASENAME=${FILENAME%.scss}
16-
$(npm bin)/node-sass $FILE > $DEST_PATH/$BASENAME.css
16+
yarn node-sass $FILE > $DEST_PATH/$BASENAME.css
1717
done
1818

1919
echo Finished building CSS.

tools/deploy.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ echo ""
3030

3131
read -rp "Press <ENTER> to continue.."
3232

33-
npm run build-themes
34-
35-
"$(npm bin)"/ng build --aot --prod --build-optimizer=false
36-
"$(npm bin)"/firebase use $projectId
37-
"$(npm bin)"/firebase deploy
33+
yarn prod-build
34+
yarn firebase use $projectId
35+
yarn firebase deploy

0 commit comments

Comments
 (0)