Skip to content
Merged
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
28 changes: 28 additions & 0 deletions scripts/release/stage-release.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@echo off
REM Stages a release by putting everything that should be packaged and released
REM into the ./deploy folder. This script should be run from the root of the
REM material2 repo.

REM Make sure you are not running `ng serve` or `ng build --watch` when running this.


REM Clear dist/ and deploy/ so that we guarantee there are no stale artifacts.
rmdir /S /Q dist
rmdir /S /Q deploy

REM Perform a build with the modified tsconfig.json.
call ng build

REM Inline the css and html into the component ts files.
call npm run inline-resources

REM deploy/ serves as a working directory to stage the release.
mkdir deploy

REM Copy all components/ to deploy/
xcopy /E dist\components\*.* deploy\

REM Copy the core/ directory directly into ./deploy
xcopy /E dist\core\*.* deploy\core\

REM To test the packages, simply `npm install` the package directories.