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
5661e5e6
Commit
5661e5e6
authored
May 19, 2021
by
aniket-engg
Committed by
Aniket
May 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show hh compilation result in terminal
parent
8ab295d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
terminal.js
apps/remix-ide/src/app/panels/terminal.js
+3
-0
compileTab.js
apps/remix-ide/src/app/tabs/compileTab/compileTab.js
+5
-1
No files found.
apps/remix-ide/src/app/panels/terminal.js
View file @
5661e5e6
...
@@ -93,6 +93,9 @@ class Terminal extends Plugin {
...
@@ -93,6 +93,9 @@ class Terminal extends Plugin {
}
}
onActivation
()
{
onActivation
()
{
this
.
on
(
'solidity-logic'
,
'hardhatCompilationFinished'
,
(
msg
)
=>
{
this
.
commands
.
log
.
apply
(
this
.
commands
,
[
msg
])
})
this
.
on
(
'scriptRunner'
,
'log'
,
(
msg
)
=>
{
this
.
on
(
'scriptRunner'
,
'log'
,
(
msg
)
=>
{
this
.
commands
.
log
.
apply
(
this
.
commands
,
msg
.
data
)
this
.
commands
.
log
.
apply
(
this
.
commands
,
msg
.
data
)
})
})
...
...
apps/remix-ide/src/app/tabs/compileTab/compileTab.js
View file @
5661e5e6
...
@@ -109,7 +109,11 @@ class CompileTab extends Plugin {
...
@@ -109,7 +109,11 @@ class CompileTab extends Plugin {
`
`
const
configFilePath
=
'remix-compiler.config.js'
const
configFilePath
=
'remix-compiler.config.js'
this
.
fileManager
.
setFileContent
(
configFilePath
,
fileContent
)
this
.
fileManager
.
setFileContent
(
configFilePath
,
fileContent
)
this
.
call
(
'hardhat'
,
'compile'
,
configFilePath
)
this
.
call
(
'hardhat'
,
'compile'
,
configFilePath
).
then
((
result
)
=>
{
this
.
emit
(
'hardhatCompilationFinished'
,
result
)
}).
catch
((
error
)
=>
{
this
.
emit
(
'hardhatCompilationFinished'
,
error
)
})
}
}
this
.
fileManager
.
saveCurrentFile
()
this
.
fileManager
.
saveCurrentFile
()
this
.
call
(
'editor'
,
'clearAnnotations'
)
this
.
call
(
'editor'
,
'clearAnnotations'
)
...
...
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