GitXplorerGitXplorer
a

erb-sqlite-example

public
47 stars
24 forks
4 issues

Commits

List of commits on branch main.
Verified
d6bb59a586d19bcf74c17585a1f2aca462f5de22

fix: upgrade electron-updater from 4.6.2 to 4.6.4 (#3074)

ssnyk-bot committed 3 years ago
Unverified
189c18e2d95d2d0edab39b5a419c1cbba0f5e3dd

chore: drop enzyme

aamilajack committed 3 years ago
Verified
601d4f27144be2e4d649656fe31a4015711897b5

fix: upgrade electron-updater from 4.6.1 to 4.6.2 (#3056)

ssnyk-bot committed 3 years ago
Verified
7d3d4e197ed99229ef5c4d35eb74cd9043c3e6d5

Fix webpack typechecking (#3072)

pphuebner committed 3 years ago
Verified
98c0c2d6b844597182fbbdf6172e13730e391663

simplify installation message

aamilajack committed 3 years ago
Verified
bd18dd3b44d19dc761dc10fd629f057daa5dfb34

fix: upgrade electron-updater from 4.3.9 to 4.6.1 (#3053)

ssnyk-bot committed 3 years ago

README

The README file for this repository.

erb-sqlite-example

Test

An example of erb with native dependencies (sqlite3 in this case)

Setup

git clone https://github.com/amilajack/erb-sqlite-example.git
cd erb-sqlite-example
npm i
npm start

How it works

sqlite3 is a native dependency that needs to be compiled before it is used (therefore it is consiered 'native dependency'). sqlite3 and any other depencencies in ./build/app/package.json are imported as an externals, which means that webpack doesn't process them. The dependency will be imported with normal require() calls.

Some native dependencies have issues with how webpack bundles code. One solution to these kinds of issues is to add those native dependencies to your ./build/app/package.json. These dependencies are automatically rebuilt against electron's node version after installing (see the postinstall script in ./build/app/package.json). electron-builder will also rebuild dependencies just before packaging your app.

You must install the dependencies as dependencies and not devDepencencies. Make sure to install like so for npm: npm install my-cool-depencency and like so for npm: npm i my-cool-dependency.

Notes

These changes that were made to ERB:

cd build/app
npm i sqlite3