Skip to content

Commit 4df9475

Browse files
authored
Merge pull request #24 from microsoftgraph/dependency-updates
Dependency updates
2 parents eb0af9c + 18d954d commit 4df9475

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+3168
-3101
lines changed

demos/01-create-app/graph-tutorial/.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
/dist
55
/tmp
66
/out-tsc
7+
# Only exists if Bazel was run
8+
/bazel-out
79

810
# dependencies
911
/node_modules
1012

1113
# profiling files
12-
chrome-profiler-events.json
13-
speed-measure-plugin.json
14+
chrome-profiler-events*.json
15+
speed-measure-plugin*.json
1416

1517
# IDEs and editors
1618
/.idea
@@ -27,6 +29,7 @@ speed-measure-plugin.json
2729
!.vscode/tasks.json
2830
!.vscode/launch.json
2931
!.vscode/extensions.json
32+
.history/*
3033

3134
# misc
3235
/.sass-cache

demos/01-create-app/graph-tutorial/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GraphTutorial
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.1.1.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.20.
44

55
## Development server
66

demos/01-create-app/graph-tutorial/angular.json

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"newProjectRoot": "projects",
55
"projects": {
66
"graph-tutorial": {
7+
"projectType": "application",
8+
"schematics": {},
79
"root": "",
810
"sourceRoot": "src",
9-
"projectType": "application",
1011
"prefix": "app",
11-
"schematics": {},
1212
"architect": {
1313
"build": {
1414
"builder": "@angular-devkit/build-angular:browser",
@@ -17,7 +17,8 @@
1717
"index": "src/index.html",
1818
"main": "src/main.ts",
1919
"polyfills": "src/polyfills.ts",
20-
"tsConfig": "src/tsconfig.app.json",
20+
"tsConfig": "tsconfig.app.json",
21+
"aot": false,
2122
"assets": [
2223
"src/favicon.ico",
2324
"src/assets"
@@ -49,6 +50,11 @@
4950
"type": "initial",
5051
"maximumWarning": "2mb",
5152
"maximumError": "5mb"
53+
},
54+
{
55+
"type": "anyComponentStyle",
56+
"maximumWarning": "6kb",
57+
"maximumError": "10kb"
5258
}
5359
]
5460
}
@@ -76,37 +82,31 @@
7682
"options": {
7783
"main": "src/test.ts",
7884
"polyfills": "src/polyfills.ts",
79-
"tsConfig": "src/tsconfig.spec.json",
80-
"karmaConfig": "src/karma.conf.js",
81-
"styles": [
82-
"src/styles.css"
83-
],
84-
"scripts": [],
85+
"tsConfig": "tsconfig.spec.json",
86+
"karmaConfig": "karma.conf.js",
8587
"assets": [
8688
"src/favicon.ico",
8789
"src/assets"
88-
]
90+
],
91+
"styles": [
92+
"src/styles.css"
93+
],
94+
"scripts": []
8995
}
9096
},
9197
"lint": {
9298
"builder": "@angular-devkit/build-angular:tslint",
9399
"options": {
94100
"tsConfig": [
95-
"src/tsconfig.app.json",
96-
"src/tsconfig.spec.json"
101+
"tsconfig.app.json",
102+
"tsconfig.spec.json",
103+
"e2e/tsconfig.json"
97104
],
98105
"exclude": [
99106
"**/node_modules/**"
100107
]
101108
}
102-
}
103-
}
104-
},
105-
"graph-tutorial-e2e": {
106-
"root": "e2e/",
107-
"projectType": "application",
108-
"prefix": "",
109-
"architect": {
109+
},
110110
"e2e": {
111111
"builder": "@angular-devkit/build-angular:protractor",
112112
"options": {
@@ -118,18 +118,8 @@
118118
"devServerTarget": "graph-tutorial:serve:production"
119119
}
120120
}
121-
},
122-
"lint": {
123-
"builder": "@angular-devkit/build-angular:tslint",
124-
"options": {
125-
"tsConfig": "e2e/tsconfig.e2e.json",
126-
"exclude": [
127-
"**/node_modules/**"
128-
]
129-
}
130121
}
131122
}
132-
}
133-
},
123+
}},
134124
"defaultProject": "graph-tutorial"
135125
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# You can see what browsers were selected by your queries by running:
6+
# npx browserslist
7+
8+
> 0.5%
9+
last 2 versions
10+
Firefox ESR
11+
not dead
12+
not IE 9-11 # For IE 9-11 support, remove 'not'.

demos/01-create-app/graph-tutorial/e2e/protractor.conf.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1+
// @ts-check
12
// Protractor configuration file, see link for more information
23
// https://github.com/angular/protractor/blob/master/lib/config.ts
34

45
const { SpecReporter } = require('jasmine-spec-reporter');
56

7+
/**
8+
* @type { import("protractor").Config }
9+
*/
610
exports.config = {
711
allScriptsTimeout: 11000,
812
specs: [
913
'./src/**/*.e2e-spec.ts'
1014
],
1115
capabilities: {
12-
'browserName': 'chrome'
16+
browserName: 'chrome'
1317
},
1418
directConnect: true,
1519
baseUrl: 'http://localhost:4200/',
@@ -21,7 +25,7 @@ exports.config = {
2125
},
2226
onPrepare() {
2327
require('ts-node').register({
24-
project: require('path').join(__dirname, './tsconfig.e2e.json')
28+
project: require('path').join(__dirname, './tsconfig.json')
2529
});
2630
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
2731
}

demos/01-create-app/graph-tutorial/e2e/src/app.e2e-spec.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { AppPage } from './app.po';
2+
import { browser, logging } from 'protractor';
23

34
describe('workspace-project App', () => {
45
let page: AppPage;
@@ -9,6 +10,14 @@ describe('workspace-project App', () => {
910

1011
it('should display welcome message', () => {
1112
page.navigateTo();
12-
expect(page.getTitleText()).toEqual('Welcome to graph-tutorial!');
13+
expect(page.getTitleText()).toEqual('graph-tutorial app is running!');
14+
});
15+
16+
afterEach(async () => {
17+
// Assert that there are no errors emitted from the browser
18+
const logs = await browser.manage().logs().get(logging.Type.BROWSER);
19+
expect(logs).not.toContain(jasmine.objectContaining({
20+
level: logging.Level.SEVERE,
21+
} as logging.Entry));
1322
});
1423
});

demos/01-create-app/graph-tutorial/e2e/src/app.po.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { browser, by, element } from 'protractor';
22

33
export class AppPage {
44
navigateTo() {
5-
return browser.get('/');
5+
return browser.get(browser.baseUrl) as Promise<any>;
66
}
77

88
getTitleText() {
9-
return element(by.css('app-root h1')).getText();
9+
return element(by.css('app-root .content span')).getText() as Promise<string>;
1010
}
1111
}

demos/01-create-app/graph-tutorial/e2e/tsconfig.e2e.json renamed to demos/01-create-app/graph-tutorial/e2e/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "../tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "../out-tsc/app",
4+
"outDir": "../out-tsc/e2e",
55
"module": "commonjs",
66
"target": "es5",
77
"types": [
@@ -10,4 +10,4 @@
1010
"node"
1111
]
1212
}
13-
}
13+
}

demos/02-add-aad-auth/graph-tutorial/src/karma.conf.js renamed to demos/01-create-app/graph-tutorial/karma.conf.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = function (config) {
1616
clearContext: false // leave Jasmine Spec Runner output visible in browser
1717
},
1818
coverageIstanbulReporter: {
19-
dir: require('path').join(__dirname, '../coverage'),
19+
dir: require('path').join(__dirname, './coverage/graph-tutorial'),
2020
reports: ['html', 'lcovonly', 'text-summary'],
2121
fixWebpackSourcePaths: true
2222
},
@@ -26,6 +26,7 @@ module.exports = function (config) {
2626
logLevel: config.LOG_INFO,
2727
autoWatch: true,
2828
browsers: ['Chrome'],
29-
singleRun: false
29+
singleRun: false,
30+
restartOnFileChange: true
3031
});
31-
};
32+
};

0 commit comments

Comments
 (0)