From 5af0e7523c0f6dd843052ac0e0e9fa8dfad6cd74 Mon Sep 17 00:00:00 2001 From: Yvonne Allen Date: Tue, 29 Oct 2019 22:22:58 -0400 Subject: [PATCH] fix(docs-infra): add boilerplate path and project type for elements example project (#33484) Fixes #31332 PR Close #33484 --- .../examples/elements/example-config.json | 3 ++ aio/tools/examples/example-boilerplate.js | 2 + .../shared/boilerplate/elements/package.json | 53 +++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 aio/tools/examples/shared/boilerplate/elements/package.json diff --git a/aio/content/examples/elements/example-config.json b/aio/content/examples/elements/example-config.json index e69de29bb2..cc42921173 100644 --- a/aio/content/examples/elements/example-config.json +++ b/aio/content/examples/elements/example-config.json @@ -0,0 +1,3 @@ +{ + "projectType": "elements" +} diff --git a/aio/tools/examples/example-boilerplate.js b/aio/tools/examples/example-boilerplate.js index 9f847e87b6..13f63d221f 100644 --- a/aio/tools/examples/example-boilerplate.js +++ b/aio/tools/examples/example-boilerplate.js @@ -30,6 +30,8 @@ const BOILERPLATE_PATHS = { // This maps the CLI files that exists in a parent folder const cliRelativePath = BOILERPLATE_PATHS.cli.map(file => `../cli/${file}`); +BOILERPLATE_PATHS.elements = [...cliRelativePath, 'package.json']; + BOILERPLATE_PATHS.i18n = [...cliRelativePath, 'angular.json', 'package.json']; BOILERPLATE_PATHS['service-worker'] = [...cliRelativePath, 'angular.json', 'package.json']; diff --git a/aio/tools/examples/shared/boilerplate/elements/package.json b/aio/tools/examples/shared/boilerplate/elements/package.json new file mode 100644 index 0000000000..d131b3094f --- /dev/null +++ b/aio/tools/examples/shared/boilerplate/elements/package.json @@ -0,0 +1,53 @@ +{ + "name": "angular.io-example", + "version": "0.0.0", + "license": "MIT", + "scripts": { + "ng": "ng", + "start": "ng serve", + "build": "ng build", + "test": "ng test", + "lint": "ng lint", + "e2e": "ng e2e" + }, + "private": true, + "dependencies": { + "@angular/animations": "^8.0.0", + "@angular/common": "^8.0.0", + "@angular/compiler": "^8.0.0", + "@angular/core": "^8.0.0", + "@angular/elements": "^8.0.0", + "@angular/forms": "^8.0.0", + "@angular/platform-browser": "^8.0.0", + "@angular/platform-browser-dynamic": "^8.0.0", + "@angular/router": "^8.0.0", + "angular-in-memory-web-api": "^0.8.0", + "core-js": "^2.5.4", + "rxjs": "^6.5.1", + "tslib": "^1.10.0", + "web-animations-js": "^2.3.1", + "zone.js": "~0.10.2" + }, + "devDependencies": { + "@angular-devkit/build-angular": "^0.800.0", + "@angular/cli": "^8.0.0", + "@angular/compiler-cli": "^8.0.0", + "@angular/language-service": "^8.0.0", + "@types/jasmine": "~3.3.8", + "@types/jasminewd2": "~2.0.3", + "@types/node": "~8.9.4", + "codelyzer": "~5.0.0", + "jasmine-core": "~2.99.1", + "jasmine-marbles": "^0.6.0", + "jasmine-spec-reporter": "~4.2.1", + "karma": "~4.1.0", + "karma-chrome-launcher": "~2.2.0", + "karma-coverage-istanbul-reporter": "~2.0.1", + "karma-jasmine": "~2.0.1", + "karma-jasmine-html-reporter": "^0.2.2", + "protractor": "~5.4.0", + "ts-node": "~7.0.0", + "tslint": "~5.15.0", + "typescript": "~3.4.4" + } +}