Refactor electron exports to keep module list in separate files
This commit is contained in:
parent
14b548f27a
commit
44bd93589a
8 changed files with 79 additions and 236 deletions
12
lib/common/api/module-list.js
Normal file
12
lib/common/api/module-list.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
// Common modules, please sort alphabetically
|
||||
module.exports = [
|
||||
{name: 'clipboard', file: 'clipboard'},
|
||||
{name: 'crashReporter', file: 'crash-reporter'},
|
||||
{name: 'nativeImage', file: 'native-image'},
|
||||
{name: 'shell', file: 'shell'},
|
||||
// The internal modules, invisible unless you know their names.
|
||||
{name: 'CallbacksRegistry', file: 'callbacks-registry', private: true},
|
||||
{name: 'deprecate', file: 'deprecate', private: true},
|
||||
{name: 'deprecations', file: 'deprecations', private: true},
|
||||
{name: 'isPromise', file: 'is-promise', private: true}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue