This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sean Hellum
committed
Feb 24, 2020
1 parent
030d7dc
commit 3d5b64c
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Vue.js in Gitpod | ||
|
||
In order to work with Vue.js in Gitpod, you will need to properly configure your repository. Here is how to do it. | ||
|
||
## Examples | ||
|
||
However, before we begin here are a few example repositories to help give you an idea of what to expect | ||
|
||
<div class="table-container"> | ||
|
||
| Repository | Description | Try it | | ||
|------------|-------------|--------| | ||
|[vuepress](https://github.com/vuejs/vuepress)|Minimalistic Vue-powered static site generator| [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/vuejs/vuepress)| | ||
|[postwoman](https://github.com/liyasthomas/postwoman)|A free, fast and beautiful API request builder (web alternative to Postman)|[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/liyasthomas/postwoman)| | ||
|
||
</div> | ||
|
||
## Vue-CLI | ||
|
||
To install the Vue.js command line interface in your current workspace run the following | ||
```bash | ||
npm i -g vue-cli | ||
``` | ||
|
||
To install globally across all workspaces first if you haven't already run [`gp init`](https://www.gitpod.io/docs/command-line-interface/#init) which should generate two files [`.gitpod.yml`](https://www.gitpod.io/docs/config-gitpod-file/) and [`.gitpod.Dockerfile`](https://www.gitpod.io/docs/config-docker/) inside the [`.gitpod.Dockerfile`](https://www.gitpod.io/docs/config-docker/) add the following | ||
```Dockerfile | ||
RUN npm i -g vue-cli | ||
``` | ||
> Please note that if you already have a [`.gitpod.yml`](https://www.gitpod.io/docs/config-gitpod-file/) and a [`.gitpod.Dockerfile`](https://www.gitpod.io/docs/config-docker/) you just need to add the above command don't worry about the [`gp init`](https://www.gitpod.io/docs/command-line-interface/#init) part | ||
## VSCode Extensions | ||
|
||
### Vetur | ||
|
||
![Vetur extension](images/Vetur.png) | ||
|
||
Vetur provides syntax highlighting, snippets, Emmet support, lintiing/error checking, auto formatting, and auto-complete for Vue files. | ||
|
||
To add this extension to a new repository open the project in Gitpod and in the terminal run [`gp init`](https://www.gitpod.io/docs/command-line-interface/#init) | ||
it should generate two files a [`.gitpod.yml`](https://www.gitpod.io/docs/config-gitpod-file/) and a [`.gitpod.Dockerfile`](https://www.gitpod.io/docs/config-docker/), in the [`.gitpod.yml`](https://www.gitpod.io/docs/config-gitpod-file/) file add the following | ||
|
||
```yaml | ||
vscode: | ||
extensions: | ||
- [email protected]:TEzauMObB6f3i2JqlvrOpA== | ||
``` | ||
For projects that already have a [`.gitpod.yml`](https://www.gitpod.io/docs/command-line-interface/#init) you can skip the first part and just add the provided snippet. |