Skip to content

Commit

Permalink
build(docs-infra): introduce new process for generating data for the …
Browse files Browse the repository at this point in the history
…events page

This commit introduces a new process for generating data for the AIO
[events page](https://angular.io/events), which streamlines the process
and minimizes duplication and manual work. For more details, see
`aio/scripts/generate-events/README.md`.
  • Loading branch information
gkalpak committed Apr 11, 2022
1 parent e0ac614 commit a551b54
Show file tree
Hide file tree
Showing 18 changed files with 570 additions and 389 deletions.
311 changes: 0 additions & 311 deletions aio/content/marketing/events.json

This file was deleted.

11 changes: 11 additions & 0 deletions aio/database.rules.json
@@ -0,0 +1,11 @@
{
"rules": {
".read": false,
".write": false,

"events": {
".read": true,
".write": false
}
}
}
3 changes: 3 additions & 0 deletions aio/firebase.json
Expand Up @@ -249,5 +249,8 @@
]
}
]
},
"database": {
"rules": "database.rules.json"
}
}
1 change: 1 addition & 0 deletions aio/package.json
Expand Up @@ -52,6 +52,7 @@
"payload-size": "scripts/payload.sh",
"predocs": "node scripts/contributors/validate-data && yarn generate-stackblitz && yarn generate-zips",
"docs": "yarn docs-only",
"postdocs": "node scripts/generate-events/index.mjs --ignore-invalid-dates",
"docs-only": "dgeni ./tools/transforms/angular.io-package",
"docs-watch": "node tools/transforms/authors-package/watchr.js",
"docs-lint": "eslint --ignore-path=\"tools/transforms/.eslintignore\" tools/transforms",
Expand Down
3 changes: 2 additions & 1 deletion aio/scripts/deploy-to-firebase/index.mjs
Expand Up @@ -383,7 +383,8 @@ function deploy(data) {
firebase(`use "${projectId}"`);
firebase('target:clear hosting aio');
firebase(`target:apply hosting aio "${siteId}"`);
firebase(`deploy --only hosting:aio --message "Commit: ${currentCommit}" --non-interactive`);
firebase(
`deploy --only database,hosting:aio --message "Commit: ${currentCommit}" --non-interactive`);

u.logSectionHeader('Run post-deploy actions.');
postDeployActions.forEach(fn => fn(data));
Expand Down

0 comments on commit a551b54

Please sign in to comment.