mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
feat: add NgModules for material (#950)
This commit is contained in:
@@ -18,6 +18,9 @@ mkdir deploy
|
||||
# Start off by building normally.
|
||||
ng build
|
||||
|
||||
# `ng build` does not complete synchronously, so wait a moment for it.
|
||||
sleep 2
|
||||
|
||||
# We need to remove moduleId for the ngc build. We do this by simply commenting out with a
|
||||
# distinguishing marker and then undoing those lines after we've generated the .metadata.json files.
|
||||
grep -lr "moduleId:" ./src/ | xargs sed -i 's|moduleId:|//MODULE moduleId:|g'
|
||||
@@ -58,6 +61,9 @@ cp -R ./dist/components/* ./deploy/
|
||||
# Copy the core/ directory directly into ./deploy
|
||||
cp -R ./dist/core/ ./deploy/core/
|
||||
|
||||
# Remove css files from src/
|
||||
find ./src -iname "*.css" | xargs rm
|
||||
|
||||
# Remove test files from deploy/
|
||||
find ./deploy -iname "*.spec.d.ts" | xargs rm
|
||||
find ./deploy -iname "*.spec.js" | xargs rm
|
||||
|
||||
Reference in New Issue
Block a user