Use Parcel bundler instead of Webpack

This commit is contained in:
posidron 2018-09-18 03:44:07 +02:00
parent d0f919c414
commit b0d25361aa
No known key found for this signature in database
GPG Key ID: 799CE5B68FEF404A
2 changed files with 6 additions and 21 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@mozillasecurity/octo", "name": "@mozillasecurity/octo",
"version": "1.0.15", "version": "2.0.0",
"description": "A unified shared library which aids in building fuzzers for browsers or as complement for an existing fuzzing framework.", "description": "A unified shared library which aids in building fuzzers for browsers or as complement for an existing fuzzing framework.",
"keywords": [ "keywords": [
"fuzzing", "fuzzing",
@ -27,8 +27,7 @@
"lint": "cross-env NODE_ENV=test standard --verbose", "lint": "cross-env NODE_ENV=test standard --verbose",
"lint:fix": "cross-env NODE_ENV=test standard --fix --verbose", "lint:fix": "cross-env NODE_ENV=test standard --fix --verbose",
"docs": "esdoc", "docs": "esdoc",
"build": "webpack -p", "build": "parcel build index.js --out-file=octo.js --no-source-maps",
"watch": "webpack --watch",
"prepush": "yarn lint", "prepush": "yarn lint",
"release": "np" "release": "np"
}, },
@ -67,16 +66,15 @@
}, },
"devDependencies": { "devDependencies": {
"coveralls": "^3.0.2", "coveralls": "^3.0.2",
"cross-env": "^5.1.4", "cross-env": "^5.2.0",
"esdoc": "^1.1.0", "esdoc": "^1.1.0",
"esdoc-node": "^1.0.3", "esdoc-node": "^1.0.3",
"esdoc-standard-plugin": "^1.0.0", "esdoc-standard-plugin": "^1.0.0",
"husky": "^0.14.3", "husky": "^0.14.3",
"jest": "^23.5.0", "jest": "^23.6.0",
"np": "^3.0.4", "np": "^3.0.4",
"standard": "^11.0.1", "parcel-bundler": "^1.9.7",
"webpack": "^4.1.1", "standard": "^12.0.1"
"webpack-cli": "^3.1.0"
}, },
"dependencies": { "dependencies": {
"html-entities": "^1.2.1", "html-entities": "^1.2.1",

View File

@ -1,13 +0,0 @@
const path = require('path')
let config = {
entry: './lib/index.js',
output: {
filename: 'octo.js',
library: 'octo',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'var'
}
}
module.exports = config