Skip to content

Commit 7a1bb19

Browse files
NCC1701Mjelbourn
authored andcommitted
chore: add batch file version of stage-release script (#734)
1 parent cf2703c commit 7a1bb19

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

scripts/release/stage-release.bat

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@echo off
2+
REM Stages a release by putting everything that should be packaged and released
3+
REM into the ./deploy folder. This script should be run from the root of the
4+
REM material2 repo.
5+
6+
REM Make sure you are not running `ng serve` or `ng build --watch` when running this.
7+
8+
9+
REM Clear dist/ and deploy/ so that we guarantee there are no stale artifacts.
10+
rmdir /S /Q dist
11+
rmdir /S /Q deploy
12+
13+
REM Perform a build with the modified tsconfig.json.
14+
call ng build
15+
16+
REM Inline the css and html into the component ts files.
17+
call npm run inline-resources
18+
19+
REM deploy/ serves as a working directory to stage the release.
20+
mkdir deploy
21+
22+
REM Copy all components/ to deploy/
23+
xcopy /E dist\components\*.* deploy\
24+
25+
REM Copy the core/ directory directly into ./deploy
26+
xcopy /E dist\core\*.* deploy\core\
27+
28+
REM To test the packages, simply `npm install` the package directories.

0 commit comments

Comments
 (0)