Skip to content

Commit

Permalink
Add script for testing/building against older versions of Angular
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeAndWeb committed Dec 19, 2024
1 parent b9791bc commit 79302fe
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
1 change: 0 additions & 1 deletion package-a16.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"@angular/cli": "^16",
"@angular/compiler-cli": "^16",
"@types/jasmine": "~5.1.0",
"angular-eslint": "^18.3.1",
"eslint": "^9.9.1",
"jasmine-core": "~5.2.0",
"karma": "~6.4.0",
Expand Down
1 change: 0 additions & 1 deletion package-a17.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"@angular/cli": "^17",
"@angular/compiler-cli": "^17",
"@types/jasmine": "~5.1.0",
"angular-eslint": "^18.3.1",
"eslint": "^9.9.1",
"jasmine-core": "~5.2.0",
"karma": "~6.4.0",
Expand Down
8 changes: 4 additions & 4 deletions package-a18.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"@angular/router": "^18",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.13.0"
"zone.js": "~0.14.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^18",
"@angular/cli": "^18",
"@angular/compiler-cli": "^18",
"@types/jasmine": "~5.1.0",
"angular-eslint": "^18.3.1",
"angular-eslint": "^18",
"eslint": "^9.9.1",
"jasmine-core": "~5.2.0",
"karma": "~6.4.0",
Expand All @@ -40,8 +40,8 @@
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"karma-mocha-reporter": "^2.2.5",
"ng-packagr": "^16",
"typescript": "5.1.6",
"ng-packagr": "^18",
"typescript": "~5.5.0",
"typescript-eslint": "8.2.0"
},
"packageManager": "[email protected]+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c"
Expand Down
13 changes: 13 additions & 0 deletions test-and-build-for-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -e

for package in package-a16 package-a17 package-a18 package-latest; do
echo "Processing $package..."
cp "$package.json" package.json
rm package-lock.json || true
rm -rf node_modules || true
npm install
npm run build-all
npm run test-ci
done

0 comments on commit 79302fe

Please sign in to comment.