Skip to content

Commit

Permalink
dependencies: update to angular 11
Browse files Browse the repository at this point in the history
* Changes travis test in favour of github action.
* Removes locales from moment to reduce the bundle size.
* Create a custom distribution to remove the dependencies to avoid
  installing useless node package in the final application
* Removes multiple bootstrap inclusion.
* Create a new JSONSchema7 interface to add the form options.
* Updates third party dependencies, such as ngx-bootstrap, ngx-formly,
  etc.

Co-Authored-by: Johnny Mariéthoz <[email protected]>
  • Loading branch information
jma committed Dec 3, 2020
1 parent 2d40272 commit f2e4d59
Show file tree
Hide file tree
Showing 144 changed files with 8,732 additions and 9,646 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install package
run: |
npm install -g @angular/cli@11
npm ci
- name: run tests
run: |
./run-tests.sh
npm run pack
env:
CI: true
35 changes: 0 additions & 35 deletions .github/workflows/npmpublish-on-release.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

57 changes: 24 additions & 33 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,19 @@
"builder": "@angular-devkit/build-angular:browser",
"options": {
"preserveSymlinks": true,
"outputPath": "dist/admin",
"outputPath": "build/dist/admin",
"index": "projects/admin/src/index.html",
"main": "projects/admin/src/main.ts",
"polyfills": "projects/admin/src/polyfills.ts",
"tsConfig": "projects/admin/tsconfig.app.json",
"aot": false,
"aot": true,
"assets": [
"projects/admin/src/assets"
],
"styles": [
"node_modules/bootstrap/scss/bootstrap.scss",
"node_modules/ngx-bootstrap/datepicker/bs-datepicker.css",
"node_modules/font-awesome/scss/font-awesome.scss",
"projects/admin/src/app/scss/styles.scss"
],
"scripts": [
"node_modules/jquery/dist/jquery.js",
{
"input": "node_modules/document-register-element/build/document-register-element.js"
}
]
"scripts": []
},
"configurations": {
"production": {
Expand All @@ -47,18 +39,20 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"deployUrl": "/static/node_modules/@rero/rero-ils-ui/dist/admin/",
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumWarning": "2.5mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
]
}
Expand Down Expand Up @@ -90,9 +84,6 @@
"karmaConfig": "projects/admin/karma.conf.js",
"assets": [],
"styles": [
"node_modules/bootstrap/scss/bootstrap.scss",
"node_modules/ngx-bootstrap/datepicker/bs-datepicker.css",
"node_modules/font-awesome/scss/font-awesome.scss",
"projects/admin/src/app/scss/styles.scss"
],
"scripts": []
Expand Down Expand Up @@ -136,19 +127,17 @@
"builder": "@angular-devkit/build-angular:browser",
"options": {
"preserveSymlinks": true,
"outputPath": "dist/public-search",
"outputPath": "build/dist/public-search",
"index": "projects/public-search/src/index.html",
"main": "projects/public-search/src/main.ts",
"polyfills": "projects/public-search/src/polyfills.ts",
"tsConfig": "projects/public-search/tsconfig.app.json",
"aot": false,
"aot": true,
"assets": [
"projects/public-search/src/favicon.ico",
"projects/public-search/src/assets"
],
"styles": [
"projects/public-search/src/styles.css"
],
"styles": [],
"scripts": []
},
"configurations": {
Expand All @@ -162,9 +151,7 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Expand All @@ -174,6 +161,10 @@
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
]
}
Expand Down Expand Up @@ -205,9 +196,7 @@
"tsConfig": "projects/public-search/tsconfig.spec.json",
"karmaConfig": "projects/public-search/karma.conf.js",
"assets": [],
"styles": [
"projects/public-search/src/styles.css"
],
"styles": [],
"scripts": []
}
},
Expand Down Expand Up @@ -248,16 +237,14 @@
"build": {
"builder": "ngx-build-plus:build",
"options": {
"outputPath": "dist/search-bar",
"outputPath": "build/dist/search-bar",
"index": "projects/search-bar/src/index.html",
"main": "projects/search-bar/src/main.ts",
"polyfills": "projects/search-bar/src/polyfills.ts",
"tsConfig": "projects/search-bar/tsconfig.app.json",
"aot": false,
"assets": [],
"styles": [
"projects/search-bar/src/styles.css"
],
"styles": [],
"scripts": []
},
"configurations": {
Expand All @@ -271,7 +258,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
Expand Down Expand Up @@ -338,10 +324,15 @@
"prefix": "shared",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/shared/tsconfig.lib.json",
"project": "projects/shared/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/shared/tsconfig.lib.prod.json"
}
}
},
"test": {
Expand Down
Loading

0 comments on commit f2e4d59

Please sign in to comment.