Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
85d371ed
Commit
85d371ed
authored
Aug 25, 2021
by
aniket-engg
Committed by
Aniket
Aug 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if remixd shared folder exists
parent
30fac041
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
remixd.ts
libs/remixd/src/bin/remixd.ts
+4
-4
No files found.
libs/remixd/src/bin/remixd.ts
View file @
85d371ed
...
...
@@ -6,7 +6,7 @@ import * as servicesList from '../serviceList'
import
*
as
WS
from
'ws'
// eslint-disable-line
import
{
getDomain
,
absolutePath
}
from
'../utils'
import
Axios
from
'axios'
import
*
as
fs
from
'fs-extra'
import
{
writeJSON
,
existsSync
}
from
'fs-extra'
import
*
as
path
from
'path'
import
*
as
program
from
'commander'
...
...
@@ -83,7 +83,7 @@ function errorHandler (error: any, service: string) {
console
.
log
(
'
\
x1b[33m%s
\
x1b[0m'
,
'[WARN] You may now only use IDE at '
+
program
.
remixIde
+
' to connect to that instance'
)
}
if
(
program
.
sharedFolder
)
{
if
(
program
.
sharedFolder
&&
existsSync
(
absolutePath
(
'./'
,
program
.
sharedFolder
))
)
{
console
.
log
(
'
\
x1b[33m%s
\
x1b[0m'
,
'[WARN] Any application that runs on your computer can potentially read from and write to all files in the directory.'
)
console
.
log
(
'
\
x1b[33m%s
\
x1b[0m'
,
'[WARN] Symbolic links are not forwarded to Remix IDE
\
n'
)
try
{
...
...
@@ -102,7 +102,7 @@ function errorHandler (error: any, service: string) {
})
// Run hardhat service if a hardhat project is shared as folder
const
hardhatConfigFilePath
=
absolutePath
(
'./'
,
program
.
sharedFolder
)
+
'/hardhat.config.js'
const
isHardhatProject
=
fs
.
existsSync
(
hardhatConfigFilePath
)
const
isHardhatProject
=
existsSync
(
hardhatConfigFilePath
)
if
(
isHardhatProject
)
{
startService
(
'hardhat'
,
(
ws
:
WS
,
sharedFolderClient
:
servicesList
.
Sharedfolder
,
error
:
Error
)
=>
{
if
(
error
)
{
...
...
@@ -151,7 +151,7 @@ function errorHandler (error: any, service: string) {
const
{
data
}
=
await
Axios
.
get
(
gistUrl
)
try
{
await
fs
.
writeJSON
(
path
.
resolve
(
path
.
join
(
__dirname
,
'..'
,
'origins.json'
)),
{
data
})
await
writeJSON
(
path
.
resolve
(
path
.
join
(
__dirname
,
'..'
,
'origins.json'
)),
{
data
})
}
catch
(
e
)
{
console
.
error
(
e
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment