ci(aio): include extra files in AIO deployment based on mode

Any files that are inside the `extra-files/{mode}` folder
will be copied over to the `dist` folder before deployment
to Firebase.

See #18287
This commit is contained in:
Peter Bacon Darwin 2017-07-26 20:41:45 +01:00 committed by Victor Berchet
parent bcb36d9b6d
commit 0714139e37
4 changed files with 16 additions and 0 deletions

View File

@ -78,6 +78,9 @@ echo "Deployment URL : $deployedUrl"
# Build the app
yarn build -- --env=$deployEnv
# Include any mode-specific files
cp -rf src/extra-files/$deployEnv/. dist/
# Check payload size
yarn payload-size

View File

@ -0,0 +1,9 @@
# Extra files folder
This folder is used for extra files that should be included in deployments to firebase.
After the AIO application had been built and before it is deployed all files and folders
inside the folder with the same name as the current deployment mode (next, stable, archive)
will be copied to the `dist` folder.
See the `scripts/deploy-to-firebase.sh` script for more detail.

View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /

View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /