Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #KN-979 feat: Angular version 13 update #82

Merged
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2ae6058
Issue #KN-979 feat: updated the package lock json
HarishGangula Feb 26, 2024
019144c
Issue #KN-979 feat: updated the package lock json
HarishGangula Feb 26, 2024
406e176
Issue #KN-979 feat: updated the package lock json
HarishGangula Feb 26, 2024
a501112
Issue #KN-979 feat: Migration from 9 to 10
HarishGangula Feb 26, 2024
3a0e4ab
Issue #KN-979 feat: Migration from 10 to 11
HarishGangula Feb 26, 2024
015cae2
Issue #KN-979 feat: Migration from 10 to 11
HarishGangula Feb 26, 2024
b9e1317
Issue #KN-979 feat: Migration from 11 to 12
HarishGangula Feb 26, 2024
fe3b9ce
Issue #KN-979 feat: Migration from 11 to 12
HarishGangula Feb 26, 2024
c7da691
Issue #KN-979 feat: Migration from 12 to 13
HarishGangula Feb 26, 2024
286db8a
Issue #KN-979 feat: player sdk angular version 13 publishing
HarishGangula Feb 26, 2024
88c22bc
Issue #KN-979 chore: updated the circleci to auto publish package
HarishGangula Feb 27, 2024
09ae14e
Issue #KN-979 chore: updated the circleci image tag
HarishGangula Mar 6, 2024
6438313
Issue #KN-979 feat: Updated the linting lib to eslint
HarishGangula Mar 6, 2024
afbc6c2
Issue #KN-979 test: fixed test cases
HarishGangula Mar 6, 2024
d88024c
Issue #KN-979 chore: updated the build script
HarishGangula Mar 7, 2024
d202d4b
Issue #KN-979 chore: updated the build script
HarishGangula Mar 7, 2024
07a94ed
Issue #KN-979 test: test case fixes
HarishGangula Mar 8, 2024
0f8a5af
Issue #KN-979 chore: simple change to trigger build
HarishGangula Mar 8, 2024
b679119
Issue #KN-979 chore: Updated the build steps
HarishGangula Mar 8, 2024
d5e9dc4
Merge branch 'release-6.0.0' into angular-version-13
HarishGangula Mar 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,38 @@ jobs:
build:
working_directory: ~/sunbird-player-sdk
docker:
- image: circleci/node:12.20.2-browsers
- image: circleci/node:16.13.1-browsers
steps:
- checkout:
path: ~/sunbird-player-sdk
- run:
name: Show current branch
command: echo ${CIRCLE_BRANCH}
- run:
environment:
NG_CLI_ANALYTICS: "ci"
- run:
name: Install depedencies
command: npm install
- run: cd projects/sunbird-player-sdk && sudo npm install
- run:
name: Node install
command: sudo npm install
- run:
name: Linting
name: Linting the library
command: npm run lint
- run:
name: Testing
name: Run test cases
command: npm run test
- run:
name: Install sonar scanner
command: 'sudo npm install -i -g sonarqube-scanner'
- run:
name: Sonar scanner
command: sonar-scanner -Dsonar.projectKey=project-sunbird_sunbird-player-sdk -Dsonar.organization=project-sunbird -Dsonar.host.url=https://sonarcloud.io -Dsonar.language=ts -Dsonar.sources=projects/sunbird-player-sdk/src -Dsonar.typescript.lcov.reportPaths=coverage/sunbird-player-sdk/lcov.info
- run:
name: Publish to NPM
command: |
if [ -z $CIRCLE_PR_NUMBER ]; then
npm run pre-publish && npm pack ./dist/sunbird-player-sdk
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
npm publish project-sunbird-sunbird-player-sdk-v9-*
else
npm run pre-publish && npm pack ./dist/sunbird-player-sdk
fi
workflows:
version: 2.1
build_and_test:
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules
51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"prefix": "app",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "app",
"style": "camelCase",
"type": "attribute"
}
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ testem.log
# System Files
.DS_Store
Thumbs.db
project-sunbird-sunbird-player-sdk-*.tgz
.angular
11 changes: 4 additions & 7 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,11 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"projects/sunbird-player-sdk/tsconfig.lib.json",
"projects/sunbird-player-sdk/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"projects/sunbird-player-sdk/**/*.ts",
"projects/sunbird-player-sdk/**/*.html"
]
}
}
Expand Down
Loading