Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Chrome App build #1697

Open
wants to merge 3 commits into
base: master
from
Open
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

Add Chrome App build

  • Loading branch information
feross committed Aug 8, 2019
commit 7c31b0f691ea781416db869fcc8ceb26b225aaf3
@@ -78,7 +78,7 @@
"devDependencies": {
"airtap": "^2.0.3",
"bittorrent-tracker": "^9.14.0",
"browserify": "^16.4.0",
"browserify": "^16.5.0",
"disc": "^1.3.3",
"electron": "^6.0.1",
"finalhandler": "^1.0.0",
@@ -117,11 +117,14 @@
"url": "git://github.com/webtorrent/webtorrent.git"
},
"scripts": {
"build": "browserify --standalone WebTorrent --plugin tinyify . > webtorrent.min.js",
"build-debug": "browserify --standalone WebTorrent . > webtorrent.debug.js",
"build": "npm run build-js && npm run build-chromeapp",
"build-chromeapp": "browserify --browser-field=chromeapp --standalone WebTorrent --require .:webtorrent --plugin tinyify . > webtorrent.chromeapp.js",
"build-chromeapp-debug": "browserify --browser-field=chromeapp --standalone WebTorrent --require .:webtorrent . > webtorrent.chromeapp.js",
"build-js": "browserify --standalone WebTorrent --plugin tinyify . > webtorrent.min.js",
"build-js-debug": "browserify --standalone WebTorrent . > webtorrent.debug.js",
"size": "npm run size-js && npm run size-disc",
"size-disc": "browserify --plugin tinyify --full-paths . | discify --open",
"size-js": "npm run build && cat webtorrent.min.js | gzip | wc -c",
"size-disc": "browserify --plugin tinyify --full-paths . | discify --open",
"test": "standard && npm run test-node && npm run test-browser",
"test-browser": "airtap -- test/*.js test/browser/*.js",
"test-browser-local": "airtap --local -- test/*.js test/browser/*.js",
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.