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
c726b3be
Unverified
Commit
c726b3be
authored
Jan 28, 2019
by
yann300
Committed by
GitHub
Jan 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1117 from ethereum/urlResolverDeclaration
Add module declaration
parents
fcaae8cf
f9c6f590
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
README.md
remix-url-resolver/README.md
+7
-2
package.json
remix-url-resolver/package.json
+2
-1
tsconfig.json
remix-url-resolver/tsconfig.json
+1
-1
No files found.
remix-url-resolver/README.md
View file @
c726b3be
...
@@ -8,8 +8,8 @@ Returns `json` object with exact same path as `import` statement.
...
@@ -8,8 +8,8 @@ Returns `json` object with exact same path as `import` statement.
```
json
```
json
{
{
content
:
'pragma
solidity
^
0.5
.
0
;\nimport
"./mortal.sol"
;\n\ncontract
Greeter
is
Mortal
{
\n
/*
Define
variable
greeting
of
the
type
string
*/\n
string
greeting;\n\n
/*
This
runs
when
the
contract
is
executed
*/\n
constructor(string
memory
_greeting)
public
{
\n
greeting
=
_greeting;\n
}
\n\n
/*
Main
function
*/\n
function
greet()
public
view
returns
(string
memory)
{
\n
return
greeting;\n
}
\n
}
\n'
,
content
:
'pragma
solidity
^
0.5
.
0
;\nimport
"./mortal.sol"
;\n\ncontract
Greeter
is
Mortal
{
\n
/*
Define
variable
greeting
of
the
type
string
*/\n
string
greeting;\n\n
/*
This
runs
when
the
contract
is
executed
*/\n
constructor(string
memory
_greeting)
public
{
\n
greeting
=
_greeting;\n
}
\n\n
/*
Main
function
*/\n
function
greet()
public
view
returns
(string
memory)
{
\n
return
greeting;\n
}
\n
}
\n'
,
cleanURL
:
'../greeter.sol'
,
cleanURL
:
'../greeter.sol'
,
type
:
'local'
type
:
'local'
}
}
```
```
...
@@ -30,3 +30,8 @@ urlResolver.resolve(fileName, urlHandler)
...
@@ -30,3 +30,8 @@ urlResolver.resolve(fileName, urlHandler)
throw
e
throw
e
})
})
```
```
#### References
*
[
TypeScript Publishing
](
http://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
)
*
[
DefinitelyTyped 'Create a new package' guide
](
https://github.com/DefinitelyTyped/DefinitelyTyped#create-a-new-package
)
remix-url-resolver/package.json
View file @
c726b3be
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
"name"
:
"remix-url-resolver"
,
"name"
:
"remix-url-resolver"
,
"version"
:
"0.0.2"
,
"version"
:
"0.0.2"
,
"description"
:
"Solidity import url resolver engine"
,
"description"
:
"Solidity import url resolver engine"
,
"main"
:
"./dist/index.js"
,
"main"
:
"dist"
,
"types"
:
"dist/index.d.ts"
,
"scripts"
:
{
"scripts"
:
{
"build"
:
"tsc"
,
"build"
:
"tsc"
,
"lint"
:
"standard"
,
"lint"
:
"standard"
,
...
...
remix-url-resolver/tsconfig.json
View file @
c726b3be
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"baseUrl"
:
"./src"
,
"baseUrl"
:
"./src"
,
"outDir"
:
"./dist"
,
"outDir"
:
"./dist"
,
"sourceMap"
:
true
,
"sourceMap"
:
true
,
"declaration"
:
fals
e
,
"declaration"
:
tru
e
,
"module"
:
"commonjs"
,
"module"
:
"commonjs"
,
"strict"
:
true
,
"strict"
:
true
,
"noImplicitAny"
:
false
,
"noImplicitAny"
:
false
,
...
...
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