forked from BlazorFluentUI/BlazorFluentUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TypescriptCommands.txt
12 lines (6 loc) · 1.26 KB
/
TypescriptCommands.txt
1
2
3
4
5
6
7
8
9
10
11
** Run this line from the src directory to generate a unified javascript file of all projects.
tsc --target es6 --outFile BlazorFluentUI.BaseComponent\wwwroot\blazorFluentUi.js BlazorFluentUI.BaseComponent\wwwroot\baseComponent.ts BlazorFluentUI.Callout\wwwroot\callout.ts BlazorFluentUI.DocumentCard\wwwroot\documentCard.ts BlazorFluentUI.Callout\wwwroot\callout.ts BlazorFluentUI.FocusTrapZone\wwwroot\focusTrapZone.ts BlazorFluentUI.FocusZone\wwwroot\focusZone.ts BlazorFluentUI.List\wwwroot\fabricList.ts BlazorFluentUI.DetailsList\wwwroot\detailsList.ts BlazorFluentUI.MarqueeSelection\wwwroot\marqueeSelection.ts BlazorFluentUI.Panel\wwwroot\panel.ts BlazorFluentUI.SelectionZone\wwwroot\selectionZone.ts BlazorFluentUI.Slider\wwwroot\slider.ts BlazorFluentUI.BaseComponent\wwwroot\requestIdleCallbackPolyfill.js --allowJs
** Run this line inside the basecomponent wwwroot to minify the resulting unified js file. Second one is better as it can uglify (replace var names with shorter names, but not the top-level ones)
jsmin -o blazorFluentUi.min.js blazorFluentUi.js
// Needs uglify-es package which supports es6
uglifyjs --compress --mangle --output .\BlazorFluentUI.BaseComponent\wwwroot\blazorFluentUi.min.js -- .\BlazorFluentUI.BaseComponent\wwwroot\blazorFluentUi.js