This website requires JavaScript.
Explore
Help
Sign In
embarklabs
/
embark
mirror of
https://github.com/embarklabs/embark.git
Watch
2
Star
0
Fork
You've already forked embark
0
Code
Issues
Projects
Releases
Wiki
Activity
48c328e39e
embark
/
packages
/
core
/
embark-core
/
index.d.ts
6 lines
103 B
TypeScript
Raw
Normal View
History
Unescape
Escape
refactor: move embarkPath, ipcPath and dappPath into embark-core This enables removing unnecessary `core/fs` dependencies which can be replaced with `fs-extra`. This commit also fixes a bug introduced in https://github.com/embark-framework/embark/commit/f868d1216d4623e4146986e9bba5918ef488238a where methods from `embark.fs` weren't available. The reason for that is because we have several *Process instances that are created through child process communication, specifically process.send() APIs. Using those APIs, we can only send data structures however, methods attached on any of those will get lost. This is the case when sending embark.fs through process.send(). We still need fs in those places though, mostly because they are relying on embarkPath and dappPath(). These places are now importing those functions from `embark-core`. Other API such as writeFile or mkdirp() can be accessed through fs-extra or fs modules.
2019-05-15 08:09:50 +00:00
declare
module
"embark-core"
{
refactor: initial steps toward 5.0.0-alpha.0 (#1856) BREAKING CHANGE: There are more than several breaking changes, including DApp configuration for accounts.
2019-08-30 20:50:20 +00:00
export
class
IPC
{
constructor
(
options
:
{
ipcRole
:
string
}
)
;
}
refactor: move embarkPath, ipcPath and dappPath into embark-core This enables removing unnecessary `core/fs` dependencies which can be replaced with `fs-extra`. This commit also fixes a bug introduced in https://github.com/embark-framework/embark/commit/f868d1216d4623e4146986e9bba5918ef488238a where methods from `embark.fs` weren't available. The reason for that is because we have several *Process instances that are created through child process communication, specifically process.send() APIs. Using those APIs, we can only send data structures however, methods attached on any of those will get lost. This is the case when sending embark.fs through process.send(). We still need fs in those places though, mostly because they are relying on embarkPath and dappPath(). These places are now importing those functions from `embark-core`. Other API such as writeFile or mkdirp() can be accessed through fs-extra or fs modules.
2019-05-15 08:09:50 +00:00
}