File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments