c755287ba8
-- * Added unittests to be run inside a Browser. To be able to access the non-exposed functions and classes, a testing bundle will be created, containing the tests (unittests.js) and the items to be tested. * src/Helpelpers, src/Key, src/Keyring: fixed some errors found during testing.
18 lines
568 B
Bash
Executable File
18 lines
568 B
Bash
Executable File
#/!bin/bash
|
|
|
|
npx webpack --config webpack.conf.js
|
|
npx webpack --config webpack.conf_unittests.js
|
|
mkdir -p BrowserTestExtension/libs
|
|
cp node_modules/chai/chai.js \
|
|
node_modules/mocha/mocha.css \
|
|
node_modules/mocha/mocha.js \
|
|
build/gpgmejs.bundle.js \
|
|
build/gpgmejs_unittests.bundle.js BrowserTestExtension/libs
|
|
rm -rf build/extensions
|
|
mkdir -p build/extensions
|
|
zip -r build/extensions/browsertest.zip BrowserTestExtension
|
|
|
|
mkdir -p DemoExtension/libs
|
|
cp build/gpgmejs.bundle.js DemoExtension/libs
|
|
zip -r build/extensions/demoextension.zip DemoExtension
|