First Release

This commit is contained in:
BuildTools
2019-12-12 13:13:55 +13:00
commit 2626620ea5
27 changed files with 16224 additions and 0 deletions

1
custom/theia/00-packages Normal file
View File

@@ -0,0 +1 @@
git

20
custom/theia/00-run.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash -e
install -d ${ROOTFS_DIR}/opt/theia
install files/package.json ${ROOTFS_DIR}/opt/theia
install -d -o 1000 -g 1000 ${ROOTFS_DIR}/home/pi/projects
install -D -m 644 files/theia.service ${ROOTFS_DIR}/etc/systemd/system/theia.service
curl -SL https://nodejs.org/dist/latest-v8.x/node-v8.16.2-linux-armv6l.tar.gz | \
tar xzC ${ROOTFS_DIR}/usr/local/ --strip-components=1
curl -SL https://yarnpkg.com/latest.tar.gz | \
tar xzC ${ROOTFS_DIR}/usr/local/ --strip-components=1
on_chroot << EOF
cd /opt/theia
/usr/local/bin/yarn
/usr/local/bin/yarn theia build
systemctl enable theia.service
systemctl daemon-reload
EOF

View File

@@ -0,0 +1,27 @@
{
"private": true,
"dependencies": {
"typescript": "latest",
"@theia/typescript": "next",
"@theia/navigator": "next",
"@theia/terminal": "next",
"@theia/outline-view": "next",
"@theia/preferences": "next",
"@theia/messages": "next",
"@theia/git": "next",
"@theia/file-search": "next",
"@theia/markers": "next",
"@theia/preview": "next",
"@theia/callhierarchy": "next",
"@theia/merge-conflicts": "next",
"@theia/search-in-workspace": "next",
"@theia/json": "next",
"@theia/textmate-grammars": "next",
"@theia/mini-browser": "next",
"@theia/python": "next",
"@theia/cpp": "next"
},
"devDependencies": {
"@theia/cli": "next"
}
}

View File

@@ -0,0 +1,16 @@
[Unit]
Description=Theia Ide
[Service]
Type=simple
PIDFile=/run/theia.pid
ExecStart=/usr/local/bin/yarn theia start --hostname 0.0.0.0 /home/pi/projects
User=pi
Group=pi
WorkingDirectory=/opt/theia
Restart=always
RestartSec=10
#KillMode=mixed
[Install]
WantedBy=multi-user.target