Browse Source

Added rudimentary build system.

hk-custom-address
Stefan Thomas 13 years ago
parent
commit
fa97237a96
  1. 1
      .gitignore
  2. 43
      Jakefile.js
  3. 28
      build/bitcoinjs-min.js
  4. 24
      package.json

1
.gitignore

@ -0,0 +1 @@
node_modules

43
Jakefile.js

@ -0,0 +1,43 @@
var pkginfo = require('pkginfo')(module);
var minify = require('jake-uglify').minify;
var headerJS = "\
/**\n\
* BitcoinJS-lib v"+exports.version+"-default\n\
* Copyright (c) 2011 BitcoinJS Project\n\
* \n\
* This program is free software; you can redistribute it and/or modify\n\
* it under the terms of the MIT license.\n\
*/";
task('default', ['build/bitcoinjs-min.js']);
desc('General-purpose build containing most features');
minify({'build/bitcoinjs-min.js': [
'src/crypto-js/crypto.js',
'src/crypto-js/sha256.js',
'src/crypto-js/ripemd160.js',
'src/jsbn/prng4.js',
'src/jsbn/rng.js',
'src/jsbn/jsbn.js',
'src/jsbn/jsbn2.js',
'src/jsbn/ec.js',
'src/jsbn/sec.js',
'src/events/eventemitter.js',
'src/bitcoin.js',
'src/util.js',
'src/base58.js',
'src/address.js',
'src/ecdsa.js',
'src/eckey.js',
'src/opcode.js',
'src/script.js',
'src/transaction.js',
'src/wallet.js',
'src/txdb.js'
]}, {
header: headerJS
});

28
build/bitcoinjs-min.js

File diff suppressed because one or more lines are too long

24
package.json

@ -0,0 +1,24 @@
{
"name": "bitcoinjs-lib",
"version": "0.1.0",
"description": "Client-side Bitcoin JavaScript library",
"keywords": [
"bitcoin",
"browser",
"client",
"library"
],
"author": "Stefan Thomas <justmoon@members.fsf.org> (http://www.justmoon.net)",
"repository" : {
"type" : "git",
"url" : "https://github.com/bitcoinjs/bitcoinjs-lib.git"
},
"devDependencies" : {
"pkginfo" : ">=0.2.1",
"jake-uglify" : ">=1.0.0"
}
}
Loading…
Cancel
Save