Skip to content

Commit f29c25f

Browse files
committed
Initial commit v0.1.0
1 parent 00285a8 commit f29c25f

File tree

20 files changed

+12588
-2
lines changed

20 files changed

+12588
-2
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
.browser_modules
3+
lib
4+
*.log
5+
*-app/*
6+
!*-app/package.json

.gitpod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ports:
2+
- port: 3000
3+
protocol: "http"
4+
tasks:
5+
- command: >
6+
yarn &&
7+
cd browser-app &&
8+
yarn start --hostname 0.0.0.0 ../..

.vscode/launch.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
// Use IntelliSense to learn about possible Node.js debug attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Start Browser Backend",
11+
"program": "${workspaceRoot}/browser-app/src-gen/backend/main.js",
12+
"args": [
13+
"--loglevel=debug",
14+
"--port=3000",
15+
"--no-cluster"
16+
],
17+
"env": {
18+
"NODE_ENV": "development"
19+
},
20+
"sourceMaps": true,
21+
"outFiles": [
22+
"${workspaceRoot}/node_modules/@theia/*/lib/**/*.js",
23+
"${workspaceRoot}/browser-app/lib/**/*.js",
24+
"${workspaceRoot}/browser-app/src-gen/**/*.js"
25+
],
26+
"smartStep": true,
27+
"internalConsoleOptions": "openOnSessionStart",
28+
"outputCapture": "std"
29+
},
30+
{
31+
"type": "node",
32+
"request": "launch",
33+
"name": "Start Electron Backend",
34+
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
35+
"windows": {
36+
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
37+
},
38+
"program": "${workspaceRoot}/electron-app/src-gen/frontend/electron-main.js",
39+
"protocol": "inspector",
40+
"args": [
41+
"--loglevel=debug",
42+
"--hostname=localhost",
43+
"--no-cluster"
44+
],
45+
"env": {
46+
"NODE_ENV": "development"
47+
},
48+
"sourceMaps": true,
49+
"outFiles": [
50+
"${workspaceRoot}/electron-app/src-gen/frontend/electron-main.js",
51+
"${workspaceRoot}/electron-app/src-gen/backend/main.js",
52+
"${workspaceRoot}/electron-app/lib/**/*.js",
53+
"${workspaceRoot}/node_modules/@theia/*/lib/**/*.js"
54+
],
55+
"smartStep": true,
56+
"internalConsoleOptions": "openOnSessionStart",
57+
"outputCapture": "std"
58+
}
59+
]
60+
}

README.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,46 @@
1-
# theia-vue-extension
2-
theia ide extension for vuejs
1+
# Theia Vue Extension
2+
Adds VueJs extension support to [Theia IDE](https://www.theia-ide.org/)
3+
4+
## Getting started
5+
6+
Install [nvm](https://github.com/creationix/nvm#install-script).
7+
8+
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
9+
10+
Install npm and node.
11+
12+
nvm install 8
13+
nvm use 8
14+
15+
Install yarn.
16+
17+
npm install -g yarn
18+
19+
## Development Installation
20+
For local installation:
21+
22+
- `git clone https://github.com/uniibu/theia-vue-extension.git`
23+
- `cd theia-vue-extension`
24+
- `yarn`
25+
26+
## Running the Browser example
27+
28+
yarn rebuild:browser
29+
cd browser-app
30+
yarn start
31+
32+
## Running the Electron example
33+
34+
yarn rebuild:electron
35+
cd electron-app
36+
yarn start
37+
38+
## Publishing vue
39+
40+
Create a npm user and login to the npm registry, [more on npm publishing](https://docs.npmjs.com/getting-started/publishing-npm-packages).
41+
42+
npm login
43+
44+
Publish packages with lerna to update versions properly across local packages, [more on publishing with lerna](https://github.com/lerna/lerna#publish).
45+
46+
npx lerna publish

browser-app/package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"private": true,
3+
"name": "browser-app",
4+
"version": "0.0.0",
5+
"dependencies": {
6+
"@theia/core": "next",
7+
"@theia/filesystem": "next",
8+
"@theia/workspace": "next",
9+
"@theia/preferences": "next",
10+
"@theia/navigator": "next",
11+
"@theia/process": "next",
12+
"@theia/terminal": "next",
13+
"@theia/editor": "next",
14+
"@theia/languages": "next",
15+
"@theia/markers": "next",
16+
"@theia/monaco": "next",
17+
"@theia/typescript": "next",
18+
"@theia/messages": "next",
19+
"@unibtc/theia-vue-extension": "^0.1.0"
20+
},
21+
"devDependencies": {
22+
"@theia/cli": "next"
23+
},
24+
"scripts": {
25+
"prepare": "theia build --mode development",
26+
"start": "theia start",
27+
"watch": "theia build --watch --mode development"
28+
},
29+
"theia": {
30+
"target": "browser"
31+
}
32+
}

electron-app/package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"private": true,
3+
"name": "electron-app",
4+
"version": "0.0.0",
5+
"dependencies": {
6+
"@theia/core": "next",
7+
"@theia/filesystem": "next",
8+
"@theia/workspace": "next",
9+
"@theia/preferences": "next",
10+
"@theia/navigator": "next",
11+
"@theia/process": "next",
12+
"@theia/terminal": "next",
13+
"@theia/editor": "next",
14+
"@theia/languages": "next",
15+
"@theia/markers": "next",
16+
"@theia/monaco": "next",
17+
"@theia/typescript": "next",
18+
"@theia/messages": "next",
19+
"@unibtc/theia-vue-extension": "^0.1.0"
20+
},
21+
"devDependencies": {
22+
"@theia/cli": "next"
23+
},
24+
"scripts": {
25+
"prepare": "theia build --mode development",
26+
"start": "theia start",
27+
"watch": "theia build --watch --mode development"
28+
},
29+
"theia": {
30+
"target": "electron"
31+
}
32+
}

lerna.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"lerna": "2.11.0",
3+
"version": "0.1.0",
4+
"useWorkspaces": true,
5+
"npmClient": "yarn",
6+
"command": {
7+
"run": {
8+
"stream": true
9+
}
10+
}
11+
}

package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"prepare": "lerna run prepare",
5+
"rebuild:browser": "theia rebuild:browser",
6+
"rebuild:electron": "theia rebuild:electron",
7+
"publish:latest": "lerna publish --registry=https://registry.npmjs.org/ --exact --skip-git",
8+
"publish:next": "lerna publish --registry=https://registry.npmjs.org/ --exact --canary=next --npm-tag=next --skip-git --yes"
9+
},
10+
"devDependencies": {
11+
"lerna": "2.11.0"
12+
},
13+
"workspaces": [
14+
"theia-vue-extension",
15+
"browser-app",
16+
"electron-app"
17+
]
18+
}

0 commit comments

Comments
 (0)