feat(ui): PluginApi: resolve + getProject

This commit is contained in:
Guillaume Chau
2018-06-20 16:12:09 +02:00
parent 9d798fbef0
commit eca54fc461
3 changed files with 35 additions and 1 deletions
+16
View File
@@ -1236,6 +1236,22 @@ Retrieve the current working directory.
api.getCwd()
```
### resolve
Resolves a file within the current project.
```js
api.resolve('src/main.js')
```
### getProject
Get currently open project.
```js
api.getProject()
```
## Public static files
You may need to expose some static files over the cli-ui builtin HTTP server (typically if you want to specify an icon to a custom view).