1 Star 0 Fork 0

hanxianlong / My-Wallet-V3-iOS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Gruntfile.js 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
replace: {
// monkey patch deps
bitcoinjs: {
// comment out value validation in fromBuffer to speed up node
// creation from cached xpub/xpriv values
src: ['node_modules/bitcoinjs-lib/src/hdnode.js'],
overwrite: true,
replacements: [{
from: /\n{4}curve\.validate\(Q\)/g,
to: '\n // curve.validate(Q)'
}]
}
},
browserify: {
options: {
debug: false,
browserifyOptions: {
standalone: 'Blockchain',
transform: [
['babelify', {
presets: ['es2015'],
plugins: ['transform-object-assign'],
global: true,
}]
]
}
},
build: {
src: ['src/index.js'],
dest: 'dist/my-wallet.js'
}
}
});
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-text-replace');
grunt.registerTask('build', [
'replace:bitcoinjs',
'browserify:build',
]);
};
1
https://gitee.com/wnfkwnfk/My-Wallet-V3-iOS.git
git@gitee.com:wnfkwnfk/My-Wallet-V3-iOS.git
wnfkwnfk
My-Wallet-V3-iOS
My-Wallet-V3-iOS
master

搜索帮助