Apply ans1.js patch automatically after apply:bitcoincom npm-command
This commit is contained in:
parent
437bd77ba4
commit
0eecaaf185
2 changed files with 17 additions and 2 deletions
16
Gruntfile.js
16
Gruntfile.js
|
|
@ -3,6 +3,7 @@
|
|||
module.exports = function(grunt) {
|
||||
|
||||
require('load-grunt-tasks')(grunt);
|
||||
grunt.loadNpmTasks('grunt-patcher');
|
||||
|
||||
// Project Configuration
|
||||
grunt.initConfig({
|
||||
|
|
@ -266,7 +267,18 @@ module.exports = function(grunt) {
|
|||
'bitcoin-cash-js/bitcoin-cash-js.js': ['bitcoin-cash-js/index.js']
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
patch: {
|
||||
asn1: {
|
||||
options: {
|
||||
patch: './patches/asn1-fix.patch'
|
||||
},
|
||||
files: {
|
||||
'./node_modules/asn1.js-rfc5280/index.js': './node_modules/asn1.js-rfc5280/index.js'
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
});
|
||||
|
||||
grunt.registerTask('default', ['nggettext_compile', 'exec:appConfig', 'exec:externalServices', 'browserify', 'sass', 'concat', 'copy:ionic_fonts', 'copy:ionic_js']);
|
||||
|
|
@ -287,5 +299,7 @@ module.exports = function(grunt) {
|
|||
grunt.registerTask('android', ['exec:android']);
|
||||
grunt.registerTask('android-release', ['prod', 'exec:android', 'exec:androidsign']);
|
||||
grunt.registerTask('desktopsign', ['exec:desktopsign', 'exec:desktopverify']);
|
||||
grunt.registerTask('apply-patches', ['patch:asn1']);
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue