-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Uni Sayo <unibtc@gmail.com>
- Loading branch information
Showing
20 changed files
with
12,588 additions
and
2 deletions.
There are no files selected for viewing
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,6 @@ | ||
node_modules | ||
.browser_modules | ||
lib | ||
*.log | ||
*-app/* | ||
!*-app/package.json |
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,8 @@ | ||
ports: | ||
- port: 3000 | ||
protocol: "http" | ||
tasks: | ||
- command: > | ||
yarn && | ||
cd browser-app && | ||
yarn start --hostname 0.0.0.0 ../.. |
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,60 @@ | ||
{ | ||
// Use IntelliSense to learn about possible Node.js debug attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Start Browser Backend", | ||
"program": "${workspaceRoot}/browser-app/src-gen/backend/main.js", | ||
"args": [ | ||
"--loglevel=debug", | ||
"--port=3000", | ||
"--no-cluster" | ||
], | ||
"env": { | ||
"NODE_ENV": "development" | ||
}, | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceRoot}/node_modules/@theia/*/lib/**/*.js", | ||
"${workspaceRoot}/browser-app/lib/**/*.js", | ||
"${workspaceRoot}/browser-app/src-gen/**/*.js" | ||
], | ||
"smartStep": true, | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"outputCapture": "std" | ||
}, | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Start Electron Backend", | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron", | ||
"windows": { | ||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd" | ||
}, | ||
"program": "${workspaceRoot}/electron-app/src-gen/frontend/electron-main.js", | ||
"protocol": "inspector", | ||
"args": [ | ||
"--loglevel=debug", | ||
"--hostname=localhost", | ||
"--no-cluster" | ||
], | ||
"env": { | ||
"NODE_ENV": "development" | ||
}, | ||
"sourceMaps": true, | ||
"outFiles": [ | ||
"${workspaceRoot}/electron-app/src-gen/frontend/electron-main.js", | ||
"${workspaceRoot}/electron-app/src-gen/backend/main.js", | ||
"${workspaceRoot}/electron-app/lib/**/*.js", | ||
"${workspaceRoot}/node_modules/@theia/*/lib/**/*.js" | ||
], | ||
"smartStep": true, | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"outputCapture": "std" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,2 +1,46 @@ | ||
# theia-vue-extension | ||
theia ide extension for vuejs | ||
# Theia Vue Extension | ||
Adds VueJs extension support to [Theia IDE](https://www.theia-ide.org/) | ||
|
||
## Getting started | ||
|
||
Install [nvm](https://github.com/creationix/nvm#install-script). | ||
|
||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash | ||
|
||
Install npm and node. | ||
|
||
nvm install 8 | ||
nvm use 8 | ||
|
||
Install yarn. | ||
|
||
npm install -g yarn | ||
|
||
## Development Installation | ||
For local installation: | ||
|
||
- `git clone https://github.com/uniibu/theia-vue-extension.git` | ||
- `cd theia-vue-extension` | ||
- `yarn` | ||
|
||
## Running the Browser example | ||
|
||
yarn rebuild:browser | ||
cd browser-app | ||
yarn start | ||
|
||
## Running the Electron example | ||
|
||
yarn rebuild:electron | ||
cd electron-app | ||
yarn start | ||
|
||
## Publishing vue | ||
|
||
Create a npm user and login to the npm registry, [more on npm publishing](https://docs.npmjs.com/getting-started/publishing-npm-packages). | ||
|
||
npm login | ||
|
||
Publish packages with lerna to update versions properly across local packages, [more on publishing with lerna](https://github.com/lerna/lerna#publish). | ||
|
||
npx lerna publish |
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,32 @@ | ||
{ | ||
"private": true, | ||
"name": "browser-app", | ||
"version": "0.0.0", | ||
"dependencies": { | ||
"@theia/core": "next", | ||
"@theia/filesystem": "next", | ||
"@theia/workspace": "next", | ||
"@theia/preferences": "next", | ||
"@theia/navigator": "next", | ||
"@theia/process": "next", | ||
"@theia/terminal": "next", | ||
"@theia/editor": "next", | ||
"@theia/languages": "next", | ||
"@theia/markers": "next", | ||
"@theia/monaco": "next", | ||
"@theia/typescript": "next", | ||
"@theia/messages": "next", | ||
"@unibtc/theia-vue-extension": "0.0.0" | ||
}, | ||
"devDependencies": { | ||
"@theia/cli": "next" | ||
}, | ||
"scripts": { | ||
"prepare": "theia build --mode development", | ||
"start": "theia start", | ||
"watch": "theia build --watch --mode development" | ||
}, | ||
"theia": { | ||
"target": "browser" | ||
} | ||
} |
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,32 @@ | ||
{ | ||
"private": true, | ||
"name": "electron-app", | ||
"version": "0.0.0", | ||
"dependencies": { | ||
"@theia/core": "next", | ||
"@theia/filesystem": "next", | ||
"@theia/workspace": "next", | ||
"@theia/preferences": "next", | ||
"@theia/navigator": "next", | ||
"@theia/process": "next", | ||
"@theia/terminal": "next", | ||
"@theia/editor": "next", | ||
"@theia/languages": "next", | ||
"@theia/markers": "next", | ||
"@theia/monaco": "next", | ||
"@theia/typescript": "next", | ||
"@theia/messages": "next", | ||
"@unibtc/theia-vue-extension": "0.0.0" | ||
}, | ||
"devDependencies": { | ||
"@theia/cli": "next" | ||
}, | ||
"scripts": { | ||
"prepare": "theia build --mode development", | ||
"start": "theia start", | ||
"watch": "theia build --watch --mode development" | ||
}, | ||
"theia": { | ||
"target": "electron" | ||
} | ||
} |
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,11 @@ | ||
{ | ||
"lerna": "2.11.0", | ||
"version": "0.0.0", | ||
"useWorkspaces": true, | ||
"npmClient": "yarn", | ||
"command": { | ||
"run": { | ||
"stream": true | ||
} | ||
} | ||
} |
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,18 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"prepare": "lerna run prepare", | ||
"rebuild:browser": "theia rebuild:browser", | ||
"rebuild:electron": "theia rebuild:electron", | ||
"publish:latest": "lerna publish --registry=https://registry.npmjs.org/ --exact --skip-git", | ||
"publish:next": "lerna publish --registry=https://registry.npmjs.org/ --exact --canary=next --npm-tag=next --skip-git --yes" | ||
}, | ||
"devDependencies": { | ||
"lerna": "2.11.0" | ||
}, | ||
"workspaces": [ | ||
"theia-vue-extension", | ||
"browser-app", | ||
"electron-app" | ||
] | ||
} |
Oops, something went wrong.