Skip to content

Commit

Permalink
V11 (#402)
Browse files Browse the repository at this point in the history
* chore: update v11 dependensies

* chore: update nrwl nx to v11

* chore: update secondary packages to v11

* chore: update to latest nx version

* chore: update to nx 11.0.8

* chore: update to latest nx app

* chore: update to latest NX

* test: resolve e2e tests
  • Loading branch information
Jefiozie committed Dec 20, 2020
1 parent 8b728f2 commit 0bfbf91
Show file tree
Hide file tree
Showing 26 changed files with 4,292 additions and 6,003 deletions.
3 changes: 2 additions & 1 deletion .vscode/extensions.json
@@ -1,6 +1,7 @@
{
"recommendations": [
"ms-vscode.vscode-typescript-tslint-plugin",
"angular.ng-template"
"angular.ng-template",
"firsttris.vscode-jest-runner"
]
}
88 changes: 58 additions & 30 deletions angular.json
Expand Up @@ -45,7 +45,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
Expand All @@ -63,7 +62,8 @@
}
]
}
}
},
"outputs": ["{options.outputPath}"]
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down Expand Up @@ -97,7 +97,8 @@
"options": {
"jestConfig": "apps/xlayers/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/apps/xlayers"]
},
"stamp": {
"builder": "@xlayers/version-stamp:stamp",
Expand Down Expand Up @@ -144,7 +145,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/angular-codegen/tsconfig.lib.json",
"project": "libs/angular-codegen/ng-package.json"
"project": "libs/angular-codegen/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -167,7 +169,8 @@
"options": {
"jestConfig": "libs/angular-codegen/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/angular-codegen"]
}
},
"schematics": {}
Expand All @@ -182,7 +185,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/css-codegen/tsconfig.lib.json",
"project": "libs/css-codegen/ng-package.json"
"project": "libs/css-codegen/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -205,7 +209,8 @@
"options": {
"jestConfig": "libs/css-codegen/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/css-codegen"]
}
},
"schematics": {}
Expand All @@ -220,7 +225,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/lit-element-codegen/tsconfig.lib.json",
"project": "libs/lit-element-codegen/ng-package.json"
"project": "libs/lit-element-codegen/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -243,7 +249,8 @@
"options": {
"jestConfig": "libs/lit-element-codegen/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/lit-element-codegen"]
}
},
"schematics": {}
Expand All @@ -258,7 +265,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/react-codegen/tsconfig.lib.json",
"project": "libs/react-codegen/ng-package.json"
"project": "libs/react-codegen/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -281,7 +289,8 @@
"options": {
"jestConfig": "libs/react-codegen/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/react-codegen"]
}
},
"schematics": {}
Expand All @@ -296,7 +305,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/stencil-codegen/tsconfig.lib.json",
"project": "libs/stencil-codegen/ng-package.json"
"project": "libs/stencil-codegen/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -319,7 +329,8 @@
"options": {
"jestConfig": "libs/stencil-codegen/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/stencil-codegen"]
}
},
"schematics": {}
Expand All @@ -334,7 +345,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/svg-codegen/tsconfig.lib.json",
"project": "libs/svg-codegen/ng-package.json"
"project": "libs/svg-codegen/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -357,7 +369,8 @@
"options": {
"jestConfig": "libs/svg-codegen/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/svg-codegen"]
}
},
"schematics": {}
Expand All @@ -372,7 +385,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/vue-codegen/tsconfig.lib.json",
"project": "libs/vue-codegen/ng-package.json"
"project": "libs/vue-codegen/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -395,7 +409,8 @@
"options": {
"jestConfig": "libs/vue-codegen/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/vue-codegen"]
}
},
"schematics": {}
Expand All @@ -410,7 +425,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/web-codegen/tsconfig.lib.json",
"project": "libs/web-codegen/ng-package.json"
"project": "libs/web-codegen/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -433,7 +449,8 @@
"options": {
"jestConfig": "libs/web-codegen/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/web-codegen"]
}
},
"schematics": {}
Expand All @@ -448,7 +465,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/web-component-codegen/tsconfig.lib.json",
"project": "libs/web-component-codegen/ng-package.json"
"project": "libs/web-component-codegen/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -474,7 +492,8 @@
"options": {
"jestConfig": "libs/web-component-codegen/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/web-component-codegen"]
}
},
"schematics": {}
Expand All @@ -489,7 +508,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/xaml-codegen/tsconfig.lib.json",
"project": "libs/xaml-codegen/ng-package.json"
"project": "libs/xaml-codegen/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -512,7 +532,8 @@
"options": {
"jestConfig": "libs/xaml-codegen/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/xaml-codegen"]
}
},
"schematics": {}
Expand All @@ -527,7 +548,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/sketch-lib/tsconfig.lib.json",
"project": "libs/sketch-lib/ng-package.json"
"project": "libs/sketch-lib/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -550,7 +572,8 @@
"options": {
"jestConfig": "libs/sketch-lib/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/sketch-lib"]
}
},
"schematics": {}
Expand All @@ -565,7 +588,8 @@
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/sketch-ingestor/tsconfig.lib.json",
"project": "libs/sketch-ingestor/ng-package.json"
"project": "libs/sketch-ingestor/ng-package.json",
"buildableProjectDepsInPackageJsonType": "dependencies"
},
"configurations": {
"production": {
Expand All @@ -588,7 +612,8 @@
"options": {
"jestConfig": "libs/sketch-ingestor/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/sketch-ingestor"]
}
},
"schematics": {}
Expand All @@ -614,7 +639,8 @@
"options": {
"jestConfig": "libs/sketchtypes/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/sketchtypes"]
},
"build": {
"builder": "@nrwl/node:package",
Expand All @@ -625,7 +651,8 @@
"main": "libs/sketchtypes/src/index.ts",
"assets": ["libs/sketchtypes/*.md"],
"srcRootForCompilationRoot": "libs\\sketchtypes\\src"
}
},
"outputs": ["{options.outputPath}"]
}
}
},
Expand All @@ -650,7 +677,8 @@
"options": {
"jestConfig": "libs/test-helpers/jest.config.js",
"passWithNoTests": true
}
},
"outputs": ["coverage/libs/test-helpers"]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/xlayers-e2e/src/specs/interactions.spec.ts
Expand Up @@ -153,7 +153,7 @@ describe('Editor page', () => {
cy.get('.cdk-overlay-container')
.children()
.then((data) => {
cy.wrap(data[0]).contains('59.1');
cy.wrap(data[0]).contains('69');
});
});
});
14 changes: 8 additions & 6 deletions apps/xlayers/jest.config.js
@@ -1,6 +1,5 @@
module.exports = {
name: 'xlayers',
preset: '../../jest.config.js',
preset: '../../jest.preset.js',
coverageDirectory: '../../coverage/apps/xlayers',
snapshotSerializers: [
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
Expand All @@ -12,10 +11,13 @@ module.exports = {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
astTransformers: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
],
astTransformers: {
before: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
],
},
},
},
displayName: 'xlayers',
};
7 changes: 7 additions & 0 deletions apps/xlayers/tsconfig.editor.json
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"include": ["**/*.ts"],
"compilerOptions": {
"types": ["jest", "node"]
}
}
3 changes: 3 additions & 0 deletions apps/xlayers/tsconfig.json
Expand Up @@ -17,6 +17,9 @@
},
{
"path": "./src\\tsconfig.spec.json"
},
{
"path": "./tsconfig.editor.json"
}
]
}

0 comments on commit 0bfbf91

Please sign in to comment.