Skip to content

Commit fa97237

Browse files
committed
Added rudimentary build system.
1 parent 50b13d2 commit fa97237

File tree

4 files changed

+96
-0
lines changed

4 files changed

+96
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

Jakefile.js

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
var pkginfo = require('pkginfo')(module);
2+
var minify = require('jake-uglify').minify;
3+
4+
var headerJS = "\
5+
/**\n\
6+
* BitcoinJS-lib v"+exports.version+"-default\n\
7+
* Copyright (c) 2011 BitcoinJS Project\n\
8+
* \n\
9+
* This program is free software; you can redistribute it and/or modify\n\
10+
* it under the terms of the MIT license.\n\
11+
*/";
12+
13+
task('default', ['build/bitcoinjs-min.js']);
14+
15+
desc('General-purpose build containing most features');
16+
minify({'build/bitcoinjs-min.js': [
17+
'src/crypto-js/crypto.js',
18+
'src/crypto-js/sha256.js',
19+
'src/crypto-js/ripemd160.js',
20+
'src/jsbn/prng4.js',
21+
'src/jsbn/rng.js',
22+
'src/jsbn/jsbn.js',
23+
'src/jsbn/jsbn2.js',
24+
25+
'src/jsbn/ec.js',
26+
'src/jsbn/sec.js',
27+
'src/events/eventemitter.js',
28+
'src/bitcoin.js',
29+
'src/util.js',
30+
'src/base58.js',
31+
32+
'src/address.js',
33+
'src/ecdsa.js',
34+
'src/eckey.js',
35+
'src/opcode.js',
36+
'src/script.js',
37+
'src/transaction.js',
38+
39+
'src/wallet.js',
40+
'src/txdb.js'
41+
]}, {
42+
header: headerJS
43+
});

0 commit comments

Comments
 (0)