blob: 0be13a7efb9ac0a6d49daaec182f2cb1b629064d [file] [log] [blame]
#!/usr/bin/env bash
#
# Build PouchDB with Webpack instead of Browserify, and test that.
# We have this test because there are enough differences between
# Webpack and Browserify to justify it.
#
npm run build
npm install webpack@1.13.1 # do this on-demand to avoid slow installs
node bin/update-package-json-for-publish.js
./node_modules/.bin/webpack \
--output-library PouchDB --output-library-target umd \
./packages/node_modules/pouchdb pouchdb-webpack.js
POUCHDB_SRC='../../pouchdb-webpack.js' npm test