package: build.
This commit is contained in:
parent
a044cc9a2a
commit
56fdeec35c
11
Makefile
11
Makefile
@ -1,14 +1,11 @@
|
||||
all:
|
||||
@./node_modules/.bin/browserify lib/bcoin.js -o browser/bcoin.js
|
||||
|
||||
ugly:
|
||||
@./node_modules/.bin/uglifyjs --comments '/\*[^\0]+?Copyright[^\0]+?\*/' -o browser/bcoin.min.js browser/bcoin.js
|
||||
@npm run browserify
|
||||
@npm run uglify
|
||||
|
||||
clean:
|
||||
@rm browser/bcoin.js
|
||||
@rm browser/bcoin.min.js
|
||||
@npm run clean
|
||||
|
||||
test:
|
||||
@npm test
|
||||
|
||||
.PHONY: all ugly clean test
|
||||
.PHONY: all clean test
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
// Empty module for browserify.
|
||||
module.exports = null;
|
||||
throw new Error('Module not available.');
|
||||
|
||||
@ -10,7 +10,7 @@ var proxy = require('./wsproxy')({
|
||||
|
||||
var index = fs.readFileSync(__dirname + '/index.html');
|
||||
var bcoin = fs.readFileSync(__dirname + '/bcoin.js');
|
||||
var worker = fs.readFileSync(__dirname + '/../lib/bcoin/worker.js');
|
||||
var worker = fs.readFileSync(__dirname + '/../lib/workers/worker.js');
|
||||
|
||||
server.get('/favicon.ico', function(req, res, next, send) {
|
||||
send(404, '', 'text');
|
||||
|
||||
@ -11,7 +11,10 @@
|
||||
},
|
||||
"preferGlobal": true,
|
||||
"scripts": {
|
||||
"test": "mocha --reporter spec test/*-test.js"
|
||||
"test": "mocha --reporter spec test/*-test.js",
|
||||
"browserify": "browserify --im -o browser/bcoin.js lib/bcoin.js",
|
||||
"uglify": "uglifyjs -m -o browser/bcoin.min.js browser/bcoin.js",
|
||||
"clean": "rm browser/bcoin.js browser/bcoin.min.js"
|
||||
},
|
||||
"repository": "git://github.com/bcoin-org/bcoin.git",
|
||||
"keywords": [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user