Skip to content

Commit

Permalink
Issue #KN-523 feat: Epub Player: Angular migration from version 11 to 12
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshilimi committed Oct 10, 2022
1 parent 9a1edc2 commit cd9ec80
Show file tree
Hide file tree
Showing 20 changed files with 93,753 additions and 92,335 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# dependencies
/node_modules
/projects/sunbird-epub-player/node_modules
/projects/sunbird-epub-player/coverage
/dist

# profiling files
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,13 @@ Follow below-mentioned steps to use it in plain javascript project:
```javascript
<script type="text/javascript" src="sunbird-epub-player.js"></script>
```
- Update below script in index.html file
```javascript
<script src="https://cdnjs.cloudflare.com/ajax/libs/reflect-metadata/0.1.13/Reflect.min.js"
integrity="sha512-jvbPH2TH5BSZumEfOJZn9IV+5bSwwN+qG4dvthYe3KCGC3/9HmxZ4phADbt9Pfcp+XSyyfc2vGZ/RMsSUZ9tbQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
```

- Get sample playerConfig from here: [playerConfig](https://github.com/project-sunbird/sunbird-epub-player/blob/release-4.5.0/src/app/data.ts)

- Create a custom html element: `sunbird-epub-player`
Expand Down
22 changes: 17 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@
"styles": true,
"scripts": true,
"vendor": true
}
},
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand Down Expand Up @@ -71,7 +76,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down Expand Up @@ -188,7 +194,6 @@
"main": "projects/epub-player-wc/src/main.ts",
"polyfills": "projects/epub-player-wc/src/polyfills.ts",
"tsConfig": "projects/epub-player-wc/tsconfig.app.json",
"aot": true,
"assets": [
"projects/epub-player-wc/src/favicon.ico",
"projects/epub-player-wc/src/assets",
Expand All @@ -205,7 +210,13 @@
"scripts": [
"node_modules/epubjs/dist/epub.js",
"node_modules/@project-sunbird/telemetry-sdk/index.js"
]
],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
Expand Down Expand Up @@ -235,7 +246,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (config) {
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
Expand Down
Loading

0 comments on commit cd9ec80

Please sign in to comment.