Skip to content

Commit 4b8f7fe

Browse files
Yvonne Allengkalpak
authored andcommitted
fix(docs-infra): add boilerplate path and project type for elements example project
Fixes #31332
1 parent 71309d2 commit 4b8f7fe

3 files changed

Lines changed: 58 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"projectType": "elements"
3+
}

aio/tools/examples/example-boilerplate.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const BOILERPLATE_PATHS = {
3030
// This maps the CLI files that exists in a parent folder
3131
const cliRelativePath = BOILERPLATE_PATHS.cli.map(file => `../cli/${file}`);
3232

33+
BOILERPLATE_PATHS.elements = [...cliRelativePath, 'package.json'];
34+
3335
BOILERPLATE_PATHS.i18n = [...cliRelativePath, 'angular.json', 'package.json'];
3436

3537
BOILERPLATE_PATHS['service-worker'] = [...cliRelativePath, 'angular.json', 'package.json'];
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "angular.io-example",
3+
"version": "0.0.0",
4+
"license": "MIT",
5+
"scripts": {
6+
"ng": "ng",
7+
"start": "ng serve",
8+
"build": "ng build",
9+
"test": "ng test",
10+
"lint": "ng lint",
11+
"e2e": "ng e2e"
12+
},
13+
"private": true,
14+
"dependencies": {
15+
"@angular/animations": "^8.0.0",
16+
"@angular/common": "^8.0.0",
17+
"@angular/compiler": "^8.0.0",
18+
"@angular/core": "^8.0.0",
19+
"@angular/elements": "^8.0.0",
20+
"@angular/forms": "^8.0.0",
21+
"@angular/platform-browser": "^8.0.0",
22+
"@angular/platform-browser-dynamic": "^8.0.0",
23+
"@angular/router": "^8.0.0",
24+
"angular-in-memory-web-api": "^0.8.0",
25+
"core-js": "^2.5.4",
26+
"rxjs": "^6.5.1",
27+
"tslib": "^1.10.0",
28+
"web-animations-js": "^2.3.1",
29+
"zone.js": "~0.10.2"
30+
},
31+
"devDependencies": {
32+
"@angular-devkit/build-angular": "^0.800.0",
33+
"@angular/cli": "^8.0.0",
34+
"@angular/compiler-cli": "^8.0.0",
35+
"@angular/language-service": "^8.0.0",
36+
"@types/jasmine": "~3.3.8",
37+
"@types/jasminewd2": "~2.0.3",
38+
"@types/node": "~8.9.4",
39+
"codelyzer": "~5.0.0",
40+
"jasmine-core": "~2.99.1",
41+
"jasmine-marbles": "^0.6.0",
42+
"jasmine-spec-reporter": "~4.2.1",
43+
"karma": "~4.1.0",
44+
"karma-chrome-launcher": "~2.2.0",
45+
"karma-coverage-istanbul-reporter": "~2.0.1",
46+
"karma-jasmine": "~2.0.1",
47+
"karma-jasmine-html-reporter": "^0.2.2",
48+
"protractor": "~5.4.0",
49+
"ts-node": "~7.0.0",
50+
"tslint": "~5.15.0",
51+
"typescript": "~3.4.4"
52+
}
53+
}

0 commit comments

Comments
 (0)