pkg: remove some files for now.

This commit is contained in:
Christopher Jeffrey 2019-01-13 03:18:22 -08:00
parent 6f1a561db5
commit 0a71b445e0
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
5 changed files with 0 additions and 148 deletions

View File

@ -1,11 +0,0 @@
{
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions"]
},
"useBuiltins": "usage",
"loose": true
}]
]
}

View File

@ -1,31 +0,0 @@
all:
@npm run webpack
app:
@npm run webpack-app
browser:
@npm run webpack-browser
compat:
@npm run webpack-compat
node:
@npm run webpack-node
browserify:
@npm run browserify
clean:
@npm run clean
docs:
@npm run docs
lint:
@npm run lint
test:
@npm test
.PHONY: all app browser compat node browserify clean docs lint test

View File

@ -1,32 +0,0 @@
'use strict';
const Path = require('path');
const webpack = require('webpack');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const str = JSON.stringify;
const env = process.env;
module.exports = {
target: 'web',
entry: {
'app': './browser/src/app',
'worker': './lib/workers/worker'
},
output: {
path: Path.join(__dirname, 'browser'),
filename: '[name].js'
},
resolve: {
modules: ['node_modules'],
extensions: ['-browser.js', '.js', '.json']
},
plugins: [
new webpack.DefinePlugin({
'process.env.BCOIN_NETWORK':
str(env.BCOIN_NETWORK || 'main'),
'process.env.BCOIN_WORKER_FILE':
str(env.BCOIN_WORKER_FILE || '/bcoin-worker.js')
}),
new UglifyJsPlugin()
]
};

View File

@ -1,34 +0,0 @@
'use strict';
const Path = require('path');
const webpack = require('webpack');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const str = JSON.stringify;
const env = process.env;
module.exports = {
target: 'web',
entry: {
'bcoin': './lib/bcoin',
'bcoin-worker': './lib/workers/worker'
},
output: {
library: 'bcoin',
libraryTarget: 'umd',
path: Path.join(__dirname, 'browser'),
filename: '[name].js'
},
resolve: {
modules: ['node_modules'],
extensions: ['-browser.js', '.js', '.json']
},
plugins: [
new webpack.DefinePlugin({
'process.env.BCOIN_NETWORK':
str(env.BCOIN_NETWORK || 'main'),
'process.env.BCOIN_WORKER_FILE':
str(env.BCOIN_WORKER_FILE || '/bcoin-worker.js')
}),
new UglifyJsPlugin()
]
};

View File

@ -1,40 +0,0 @@
'use strict';
const Path = require('path');
const webpack = require('webpack');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const str = JSON.stringify;
const env = process.env;
module.exports = {
target: 'web',
entry: {
'bcoin': './lib/bcoin',
'bcoin-worker': './lib/workers/worker'
},
output: {
library: 'bcoin',
libraryTarget: 'umd',
path: Path.join(__dirname, 'browser'),
filename: '[name].js'
},
resolve: {
modules: ['node_modules'],
extensions: ['-compat.js', '-browser.js', '.js', '.json']
},
module: {
rules: [{
test: /\.js$/,
loader: 'babel-loader'
}]
},
plugins: [
new webpack.DefinePlugin({
'process.env.BCOIN_NETWORK':
str(env.BCOIN_NETWORK || 'main'),
'process.env.BCOIN_WORKER_FILE':
str(env.BCOIN_WORKER_FILE || '/bcoin-worker.js')
}),
new UglifyJsPlugin()
]
};