chore: add batch file version of stage-release script (#734)

This commit is contained in:
NCC1701M
2016-06-21 22:56:43 +02:00
committed by Jeremy Elbourn
parent cf2703c911
commit 7a1bb194e6
+28
View File
@@ -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.