quran-madina-html 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Gruntfile.js CHANGED
@@ -46,6 +46,11 @@ module.exports = function(grunt) {
46
46
  esnext: true
47
47
  }
48
48
  },
49
+ 'json-minify': {
50
+ build: {
51
+ files: 'assets/db/*.json'
52
+ }
53
+ },
49
54
  clean : {
50
55
  yourTarget : {
51
56
  src : [ "dist"
@@ -64,8 +69,9 @@ module.exports = function(grunt) {
64
69
  grunt.loadNpmTasks('grunt-contrib-concat');
65
70
  grunt.loadNpmTasks('grunt-contrib-clean');
66
71
  grunt.loadNpmTasks('grunt-contrib-cssmin');
72
+ grunt.loadNpmTasks('grunt-json-minify');
67
73
 
68
74
  grunt.registerTask('test', ['jshint']);
69
- grunt.registerTask('default', ['jshint', 'clean', 'concat', 'uglify', 'cssmin']);
75
+ grunt.registerTask('default', ['jshint', 'clean', 'concat', 'uglify', 'cssmin', 'json-minify']);
70
76
 
71
77
  };
package/README.md CHANGED
@@ -18,9 +18,8 @@ The main purpose of this library is:
18
18
  # Getting Started
19
19
  In your Html header, add this script:
20
20
  ```html
21
- <script type="text/javascript" src="https://unpkg.com/quran-madina-html" data-name="Madina" data-font="Uthman"></script>
21
+ <script type="text/javascript" src="https://unpkg.com/quran-madina-html"></script>
22
22
  ```
23
- * Supported ``data-font`` parameters are: Amiri (default), Uthman, Hafs
24
23
  * Supported ``data-name`` parameters are: Madina05 (default), others are under development (Shemerly, Qaloon, Newer Madina)
25
24
  * Supported ``data-font`` parameters are: Hafs (default), Uthman, Amiri Quran, Amiri Quran Colored
26
25
  * Other options include: ``data-font-size`` which defaults to 16 (px)
@@ -38,10 +37,10 @@ Alternatively, you can fork this repo, then clone it.
38
37
 
39
38
  ```
40
39
  $ apt install python3-distutils nodejs npm chromium-driver
41
- $ npm install // install bower tasks
42
- $ bower install // install components
40
+ $ npm install // install components and scripts
41
+ $ bower install // install bower libs
43
42
  $ npm run build-db // build all json Db files
44
- $ grunt // build the dist with dependencies
43
+ $ npm run release // build the dist with dependencies
45
44
 
46
45
  ```
47
46