@@ -37,12 +37,6 @@ module.exports = function(grunt) {
37
37
src : [ "*" , "images/*" ] ,
38
38
dest : "" ,
39
39
filter : "isFile"
40
- } , {
41
- expand : true ,
42
- cwd : "src/chrome" ,
43
- src : [ "*" ] ,
44
- dest : "" ,
45
- filter : "isFile"
46
40
} ]
47
41
} ,
48
42
firefox : {
@@ -56,12 +50,6 @@ module.exports = function(grunt) {
56
50
src : [ "*" , "images/*" ] ,
57
51
dest : "" ,
58
52
filter : "isFile"
59
- } , {
60
- expand : true ,
61
- cwd : "src/firefox" ,
62
- src : [ "*" ] ,
63
- dest : "" ,
64
- filter : "isFile"
65
53
} ]
66
54
}
67
55
@@ -75,18 +63,14 @@ module.exports = function(grunt) {
75
63
76
64
// update chrome & firefox manifest.json file version numbers to match the package.json version
77
65
grunt . registerTask ( "updateManifest" , ( ) => {
78
- let indx , file ,
79
- manifests = [ "src/chrome/manifest.json" , "src/firefox/manifest.json" ] ,
80
- len = manifests . length ;
81
- for ( indx = 0 ; indx < len ; indx ++ ) {
82
- if ( ! grunt . file . exists ( manifests [ indx ] ) ) {
83
- grunt . log . error ( "file " + manifests [ indx ] + " not found" ) ;
84
- return true ; // return false to abort the execution
85
- }
86
- file = grunt . file . readJSON ( manifests [ indx ] ) ;
87
- file . version = pkg . version ;
88
- grunt . file . write ( manifests [ indx ] , JSON . stringify ( file , null , 2 ) ) ; // serialize it back to file
66
+ let file ;
67
+ if ( ! grunt . file . exists ( "src/manifest.json" ) ) {
68
+ grunt . log . error ( "src/manifest.json file not found" ) ;
69
+ return true ; // return false to abort the execution
89
70
}
71
+ file = grunt . file . readJSON ( "src/manifest.json" ) ;
72
+ file . version = pkg . version ;
73
+ grunt . file . write ( "src/manifest.json" , JSON . stringify ( file , null , 2 ) ) ; // serialize it back to file
90
74
} ) ;
91
75
92
76
grunt . registerTask ( "default" , [
0 commit comments