Skip to content

Sample project using native modules for Electron and Node, rebuilding only as needed.

License

Notifications You must be signed in to change notification settings

felixrabe/e-2018-065-yarn-better-sqlite3-electron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample project using native modules for Electron and Node, rebuilding only as needed.

As seen on yarnpkg/yarn#5680 (comment) :)

To test this setup, run:

yarn
cd test   # or if you're on *nix: ./test/test.sh
node node.js
node electron.js

Subsequent additions / changes of packages should not result in unnecessary rebuilds of native modules.

About the dependencies:

"dependencies": {
  "better-sqlite3": "^4.1.0",     // included as an example, used by ./test/common.js
  "electron": "^2.0.0-beta.7"     // core dependency
},
"devDependencies": {
  "electron-rebuild": "^1.7.3",   // used by ./build/electron-rebuild-wrapper.js
  "fs-extra": "^5.0.0"            // used by ./build/electron-rebuild-wrapper.js
}

For details on the .yarnrc configuration, see: yarnpkg/yarn#5314 (comment)

License: MIT

About

Sample project using native modules for Electron and Node, rebuilding only as needed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published