build(docs-infra): clean up and update dependencies to match latest CLI (#32980)

This commit includes the following types of changes:
- Remove unused dependencies.
- Move dev dependencies from `devDependencies` to `dependencies` (and
  vice versa for production dependencies).
- Update `@types/*`.
- Update dependencies to more closely match the dependencies installed
  by the latest CLI for new apps.

Also, ensured that the latest version of `webdriver-manager` (v12.1.7)
was installed for `protractor`, which correctly installs a ChromeDriver
version that is compatible with the latest version of Chrome.

PR Close #32980
This commit is contained in:
George Kalpakas
2019-10-10 13:56:14 -07:00
committed by Miško Hevery
parent 4e1f37fc17
commit dcd28b591d
6 changed files with 181 additions and 246 deletions
+18 -20
View File
@@ -56,8 +56,8 @@
"docs-watch": "node tools/transforms/authors-package/watchr.js",
"docs-lint": "eslint --ignore-path=\"tools/transforms/.eslintignore\" tools/transforms",
"docs-test": "node tools/transforms/test.js",
"redirects-test": "jasmine-ts --project=tests/deployment/unit tests/deployment/unit/**/*.spec.ts",
"firebase-utils-test": "jasmine-ts --project=tools/firebase-test-utils tools/firebase-test-utils/*.spec.ts",
"redirects-test": "node tests/deployment/unit/test",
"firebase-utils-test": "node tools/firebase-test-utils/test",
"tools-lint": "tslint --config \"tools/tslint.json\" --project \"tools/firebase-test-utils\"",
"tools-test": "./scripts/deploy-to-firebase.test.sh && yarn docs-test && yarn boilerplate:test && jasmine tools/ng-packages-installer/index.spec.js && yarn firebase-utils-test",
"preserve-and-sync": "yarn docs",
@@ -87,6 +87,7 @@
"@angular/animations": "^9.0.0-next.9",
"@angular/cdk": "8.0.0",
"@angular/common": "^9.0.0-next.9",
"@angular/compiler": "^9.0.0-next.9",
"@angular/core": "^9.0.0-next.9",
"@angular/elements": "^9.0.0-next.9",
"@angular/forms": "^9.0.0-next.9",
@@ -95,28 +96,28 @@
"@angular/platform-browser-dynamic": "^9.0.0-next.9",
"@angular/router": "^9.0.0-next.9",
"@angular/service-worker": "^9.0.0-next.9",
"@types/lunr": "^2.3.2",
"@webcomponents/custom-elements": "^1.2.0",
"rxjs": "^6.5.3",
"zone.js": "~0.10.1"
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.900.0-next.6",
"@angular/cli": "9.0.0-next.6",
"@angular/compiler": "^9.0.0-next.9",
"@angular/compiler-cli": "^9.0.0-next.9",
"@angular/language-service": "^9.0.0-next.9",
"@types/jasmine": "^2.5.52",
"@types/jasminewd2": "^2.0.4",
"@types/node": "~6.0.60",
"@types/xregexp": "^3.0.29",
"@types/jasmine": "^3.4.2",
"@types/jasminewd2": "^2.0.8",
"@types/lunr": "^2.3.2",
"@types/node": "^12.7.9",
"@types/xregexp": "^3.0.30",
"@yarnpkg/lockfile": "^1.1.0",
"archiver": "^1.3.0",
"canonical-path": "1.0.0",
"chalk": "^2.1.0",
"chrome-launcher": "^0.10.7",
"cjson": "^0.5.0",
"codelyzer": "^5.1.1",
"codelyzer": "^5.1.2",
"cross-spawn": "^5.1.0",
"css-selector-parser": "^1.3.0",
"dgeni": "^0.4.11",
@@ -136,14 +137,12 @@
"jasmine": "^3.4.0",
"jasmine-core": "^3.4.0",
"jasmine-spec-reporter": "^4.2.1",
"jasmine-ts": "^0.2.1",
"jsdom": "^9.12.0",
"json-schema-traverse": "^0.4.1",
"json5": "^1.0.1",
"karma": "^4.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-cli": "^2.0.0",
"karma-coverage-istanbul-reporter": "^2.0.5",
"karma": "^4.3.0",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage-istanbul-reporter": "^2.1.0",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"light-server": "^2.6.2",
@@ -152,7 +151,7 @@
"lodash": "^4.17.4",
"lunr": "^2.1.0",
"npm-run-all": "^4.1.5",
"protractor": "^5.2.0",
"protractor": "^5.4.2",
"rehype": "^6.0.0",
"rehype-slug": "^2.0.0",
"remark": "^9.0.0",
@@ -161,9 +160,8 @@
"semver": "^5.3.0",
"shelljs": "^0.7.7",
"tree-kill": "^1.1.0",
"ts-node": "^3.3.0",
"tslib": "^1.9.0",
"tslint": "~5.15.0",
"ts-node": "^8.4.1",
"tslint": "^5.20.0",
"typescript": "~3.5.3",
"uglify-js": "^3.0.15",
"unist-util-filter": "^0.2.1",
@@ -178,4 +176,4 @@
"//terser-workaround": "Remove once [email protected] is released (with a fix).",
"@angular-devkit/build-angular/**/terser": "4.3.2"
}
}
}
+3
View File
@@ -1,3 +1,6 @@
// tslint:disable-next-line: no-reference
/// <reference path="./cjson.d.ts" />
import { resolve as resolvePath } from 'canonical-path';
import { load as loadJson } from 'cjson';
import { readFileSync } from 'fs';
+21
View File
@@ -0,0 +1,21 @@
/*
* Use this script to run the tests for redirects.
*
* We cannot use `jasmine-ts`, because it does not support passing a glob pattern any more (see
* https://github.com/svi3c/jasmine-ts/issues/33#issuecomment-511374288) and thus requires a
* `jasmine.json` config file, which does not allow us to set the `projectBaseDir`. This in turn
* means that you have to run the command from a specific directory (so that the spec paths are
* resolved correctly).
*
* Using a file like this gives us full control.
*/
const Jasmine = require('jasmine');
const {join} = require('path');
const {register} = require('ts-node');
register({project: join(__dirname, 'tsconfig.json')});
const runner = new Jasmine({projectBaseDir: __dirname});
runner.loadConfig({spec_files: ['**/*.spec.ts']});
runner.execute();
+1 -1
View File
@@ -4,7 +4,7 @@
"module": "commonjs"
},
"include": [
"../shared/**/*.d.ts",
"../shared/**/*.ts",
"**/*.ts"
]
}
+21
View File
@@ -0,0 +1,21 @@
/*
* Use this script to run the tests for Firebase test utils.
*
* We cannot use `jasmine-ts`, because it does not support passing a glob pattern any more (see
* https://github.com/svi3c/jasmine-ts/issues/33#issuecomment-511374288) and thus requires a
* `jasmine.json` config file, which does not allow us to set the `projectBaseDir`. This in turn
* means that you have to run the command from a specific directory (so that the spec paths are
* resolved correctly).
*
* Using a file like this gives us full control.
*/
const Jasmine = require('jasmine');
const {join} = require('path');
const {register} = require('ts-node');
register({project: join(__dirname, 'tsconfig.json')});
const runner = new Jasmine({projectBaseDir: __dirname});
runner.loadConfig({spec_files: ['**/*.spec.ts']});
runner.execute();
+117 -225
View File
File diff suppressed because it is too large Load Diff