Skip to content

Commit

Permalink
build(docs-infra): fixed i18n broken stackblitz example (#42001)
Browse files Browse the repository at this point in the history
This commit fixes the broken stackblitz example of i18n.

Closes #41838.

PR Close #42001
  • Loading branch information
iRealNirmal authored and alxhub committed May 10, 2021
1 parent a4e03d3 commit 150b2ec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion aio/content/examples/i18n/stackblitz.json
Expand Up @@ -8,5 +8,6 @@
"**/*.xlf"
],
"file": "src/app/app.component.ts",
"tags": ["Angular", "i18n", "internationalization"]
"tags": ["Angular", "i18n", "internationalization"],
"devDependencies": ["@angular/compiler-cli", "typescript"]
}
3 changes: 2 additions & 1 deletion aio/content/examples/testing/specs.stackblitz.json
Expand Up @@ -19,5 +19,6 @@
"src/**/*.spec.ts"
],
"main": "src/index-specs.html",
"tags": ["testing"]
"tags": ["testing"],
"devDependencies": ["jasmine-core", "jasmine-marbles"]
}
3 changes: 2 additions & 1 deletion aio/content/examples/testing/stackblitz.json
Expand Up @@ -14,5 +14,6 @@

"!src/**/*.spec.ts"
],
"tags": ["testing"]
"tags": ["testing"],
"devDependencies": ["jasmine-core", "jasmine-marbles"]
}
2 changes: 1 addition & 1 deletion aio/tools/stackblitz-builder/builder.js
Expand Up @@ -48,7 +48,7 @@ class StackblitzBuilder {

// Add unit test packages from devDependencies for unit test examples
const devDependencies = packageJson.devDependencies;
['jasmine-core', 'jasmine-marbles'].forEach(dep => exampleDependencies[dep] = devDependencies[dep]);
(config.devDependencies || []).forEach(dep => exampleDependencies[dep] = devDependencies[dep]);

postData.dependencies = JSON.stringify(exampleDependencies);
}
Expand Down

0 comments on commit 150b2ec

Please sign in to comment.