Skip to content

Commit

Permalink
Migrations and npm upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceribs committed Aug 28, 2022
1 parent 1fdd8de commit 091a525
Show file tree
Hide file tree
Showing 115 changed files with 26,943 additions and 17,247 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
!.vscode/extensions.json

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand Down
122 changes: 70 additions & 52 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@
},
"outputs": ["coverage/apps/background"]
}
}
},
"tags": ["ext-dep"]
},
"browser-action": {
"projectType": "application",
Expand Down Expand Up @@ -210,7 +211,8 @@
},
"outputs": ["coverage/apps/browser-action"]
}
}
},
"tags": ["ext-dep"]
},
"browser-ref": {
"projectType": "library",
Expand Down Expand Up @@ -240,7 +242,8 @@
"@nrwl/angular:component": {
"styleext": "scss"
}
}
},
"tags": []
},
"content-script": {
"projectType": "application",
Expand Down Expand Up @@ -345,7 +348,8 @@
},
"outputs": ["coverage/apps/content-script"]
}
}
},
"tags": ["ext-dep"]
},
"devtool": {
"projectType": "application",
Expand Down Expand Up @@ -452,7 +456,8 @@
},
"outputs": ["coverage/apps/devtool"]
}
}
},
"tags": []
},
"devtools-ref": {
"projectType": "library",
Expand Down Expand Up @@ -482,7 +487,8 @@
"@nrwl/angular:component": {
"style": "scss"
}
}
},
"tags": []
},
"ext-storage": {
"projectType": "library",
Expand Down Expand Up @@ -512,7 +518,8 @@
"@nrwl/angular:component": {
"styleext": "scss"
}
}
},
"tags": []
},
"file-editor": {
"projectType": "library",
Expand All @@ -537,7 +544,8 @@
]
}
}
}
},
"tags": []
},
"icon": {
"projectType": "library",
Expand All @@ -564,7 +572,8 @@
"@nrwl/angular:component": {
"style": "scss"
}
}
},
"tags": []
},
"logger": {
"projectType": "library",
Expand All @@ -591,7 +600,8 @@
"@nrwl/angular:component": {
"styleext": "scss"
}
}
},
"tags": []
},
"lz-string": {
"projectType": "library",
Expand Down Expand Up @@ -621,7 +631,8 @@
"@nrwl/angular:component": {
"style": "scss"
}
}
},
"tags": []
},
"messages": {
"projectType": "library",
Expand Down Expand Up @@ -651,7 +662,8 @@
"@nrwl/angular:component": {
"styleext": "scss"
}
}
},
"tags": []
},
"options": {
"projectType": "application",
Expand Down Expand Up @@ -760,7 +772,8 @@
},
"outputs": ["coverage/apps/options"]
}
}
},
"tags": ["ext-dep"]
},
"permissions": {
"projectType": "library",
Expand Down Expand Up @@ -790,7 +803,8 @@
"@nrwl/angular:component": {
"style": "scss"
}
}
},
"tags": []
},
"plopdown-cues": {
"projectType": "library",
Expand Down Expand Up @@ -820,7 +834,8 @@
"@nrwl/angular:component": {
"style": "scss"
}
}
},
"tags": []
},
"plopdown-embed": {
"projectType": "library",
Expand Down Expand Up @@ -850,7 +865,8 @@
"@nrwl/angular:component": {
"style": "scss"
}
}
},
"tags": []
},
"plopdown-ext": {
"projectType": "application",
Expand All @@ -877,7 +893,16 @@
"sourceDir": "dist/apps/plopdown-ext"
}
}
}
},
"tags": [],
"implicitDependencies": [
"background",
"browser-action",
"options",
"content-script",
"devtool",
"web-extension"
]
},
"plopdown-file": {
"projectType": "library",
Expand Down Expand Up @@ -921,7 +946,8 @@
"@nrwl/angular:component": {
"styleext": "scss"
}
}
},
"tags": []
},
"plopdown-injector": {
"projectType": "library",
Expand Down Expand Up @@ -951,7 +977,8 @@
"@nrwl/angular:component": {
"style": "scss"
}
}
},
"tags": []
},
"pouchdb": {
"projectType": "library",
Expand All @@ -976,7 +1003,8 @@
]
}
}
}
},
"tags": []
},
"remotes": {
"projectType": "library",
Expand All @@ -1001,7 +1029,8 @@
]
}
}
}
},
"tags": []
},
"storybook": {
"projectType": "application",
Expand Down Expand Up @@ -1104,7 +1133,8 @@
"port": 4400,
"config": {
"configFolder": "apps/storybook/.storybook"
}
},
"projectBuildConfig": "storybook"
},
"configurations": {
"ci": {
Expand All @@ -1120,15 +1150,17 @@
"outputPath": "dist/storybook/storybook",
"config": {
"configFolder": "apps/storybook/.storybook"
}
},
"projectBuildConfig": "storybook"
},
"configurations": {
"ci": {
"quiet": true
}
}
}
}
},
"tags": []
},
"testing-sandbox": {
"projectType": "application",
Expand Down Expand Up @@ -1235,7 +1267,8 @@
},
"outputs": ["coverage/apps/testing-sandbox"]
}
}
},
"tags": []
},
"tracks": {
"projectType": "library",
Expand All @@ -1262,7 +1295,8 @@
"@nrwl/angular:component": {
"styleext": "scss"
}
}
},
"tags": []
},
"video-refs": {
"projectType": "library",
Expand Down Expand Up @@ -1292,7 +1326,8 @@
"@nrwl/angular:component": {
"styleext": "scss"
}
}
},
"tags": []
},
"web-extension": {
"root": "libs/web-extension",
Expand All @@ -1318,7 +1353,7 @@
"outputs": ["coverage/libs/web-extension"]
},
"build": {
"builder": "@nrwl/node:package",
"builder": "@nrwl/js:tsc",
"options": {
"outputPath": "dist/libs/web-extension",
"tsConfig": "libs/web-extension/tsconfig.lib.json",
Expand Down Expand Up @@ -1346,7 +1381,8 @@
},
"outputs": ["{options.outputPath}"]
}
}
},
"tags": []
},
"website": {
"projectType": "application",
Expand Down Expand Up @@ -1456,7 +1492,8 @@
},
"outputs": ["coverage/apps/website"]
}
}
},
"tags": []
},
"window-ref": {
"projectType": "library",
Expand Down Expand Up @@ -1486,27 +1523,8 @@
"@nrwl/angular:component": {
"styleext": "scss"
}
}
}
},
"cli": {
"defaultCollection": "@nrwl/angular"
},
"schematics": {
"@nrwl/angular:application": {
"style": "scss",
"linter": "eslint",
"unitTestRunner": "jest",
"e2eTestRunner": "cypress"
},
"@nrwl/angular:library": {
"style": "scss",
"linter": "eslint",
"unitTestRunner": "jest"
},
"@nrwl/angular:component": {
"style": "scss"
},
"tags": []
}
},
"defaultProject": "plopdown-ext"
}
}
5 changes: 4 additions & 1 deletion apps/background/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ module.exports = {
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
transform: { '^.+\\.(ts|js|html)$': 'jest-preset-angular' },
transform: {
'^.+.(ts|mjs|js|html)$': 'jest-preset-angular',
},
transformIgnorePatterns: ['node_modules/(?!.*.mjs$)'],
};
10 changes: 0 additions & 10 deletions apps/background/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,6 @@
* BROWSER POLYFILLS
*/

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.

/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.

/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
Expand Down
13 changes: 13 additions & 0 deletions apps/background/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
import 'jest-preset-angular/setup-jest';

import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting,
} from '@angular/platform-browser-dynamic/testing';

getTestBed().resetTestEnvironment();
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting(),
{ teardown: { destroyAfterEach: false } }
);
2 changes: 1 addition & 1 deletion apps/background/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"types": ["jest", "node", "firefox-webext-browser"]
},
"files": ["src/test-setup.ts"],
"include": ["**/*.spec.ts", "**/*.mock.ts", "**/*.d.ts"]
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.mock.ts", "**/*.d.ts"]
}

0 comments on commit 091a525

Please sign in to comment.