Theia: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 3: Line 3:
nvm install 10
nvm install 10
npm install -g yarn
npm install -g yarn
sudo mkdir /opt/theia_ide
sudo mkdir /opt/eclipse_theia_ide
chown -R pi:pi /opt/theia_ide/
sudo chown -R pi:pi /opt/eclipse_theia_ide/
</source>
</source>


==Install==
==Install==
{|
| valign="top" |
<source lang="json">
<source lang="json">
cat <<EOF > /opt/theia_ide/package.json
cat <<EOF > /opt/eclipse_theia_ide/package.json
{
{
   "private":true,
   "private":true,
Line 39: Line 41:
EOF
EOF
</source>
</source>
| valign="top" |
<source lang="bash">
#pios swap memory
printf '\nbefore:\n';free -th;\
sed -i "s|CONF_SWAPSIZE=100|CONF_SWAPSIZE=2048|" /etc/dphys-swapfile;\
service dphys-swapfile restart;\
printf '\nupdate:\n';free -th
export NODE_OPTIONS="--max-old-space-size=2048"
yarn
yarn theia build
du -sh node_modules/
du -h -d1 node_modules/
──────────────────────────────────────────────────────────────────────
export ACADEMIA_WSS="$HOME/chorke/academia"
export ACADEMIA_JAVA_WSS="$ACADEMIA_WSS/java"
export ACADEMIA_JAVA_BASE_WSS="$ACADEMIA_JAVA_WSS/base"
export ACADEMIA_JAVA_BASE_CORE_WS="$ACADEMIA_JAVA_BASE_WSS/core_ws"
sudo mkdir /opt/dev
mkdir -p $HOME/chorke
sudo chown -R pi:pi /opt/dev/
mkdir -p /opt/dev/chorke/academia
ln -s /opt/dev/chorke/academia $ACADEMIA_WSS
mkdir -p $ACADEMIA_JAVA_BASE_CORE_WS
du -h $ACADEMIA_WSS
</source>
|}


==References==
==References==
{|
| valign="top" |
* [https://stackoverflow.com/questions/39065921 Usages of <code>raw.githubusercontent.com</code> Domain]
* [https://stackoverflow.com/questions/39065921 Usages of <code>raw.githubusercontent.com</code> Domain]
* [https://theia-ide.org/ Theia Cloud & Desktop IDE Platform]
* [https://theia-ide.org/ Theia Cloud & Desktop IDE Platform]
* [https://eclipsesource.com/blogs/2019/12/06/the-eclipse-theia-ide-vs-vs-code/ The Eclipse Theia IDE vs. VS Code]
* [https://eclipsesource.com/blogs/2019/12/06/the-eclipse-theia-ide-vs-vs-code/ The Eclipse Theia IDE vs. VS Code]
* [https://eclipsesource.com/blogs/2018/09/12/how-to-deploy-eclipse-theia-on-a-raspberry-pi/ Eclipse Theia on a Raspberry Pi]
* [https://stackoverflow.com/questions/53230823/ JavaScript heap out of memory]
* [https://gist.github.com/ccssmnn/592c8846c8fef48232e653f674dce653 Theia IDE on Raspberry Pi 4]
* [https://gist.github.com/ccssmnn/592c8846c8fef48232e653f674dce653 Theia IDE on Raspberry Pi 4]
* [https://gist.github.com/wanglf/7acc591890dc0d8ceff1e7ec9af32a55#:~:text=Navigate%20to%20the%20web%20page,vsix%20. VSCode extensions offline]
* [https://github.com/nvm-sh/nvm Node Version Manager]
* [https://github.com/nvm-sh/nvm Node Version Manager]
* [https://eclipsesource.com/blogs/tag/eclipse-theia/ Eclipse Theia]
* [https://eclipsesource.com/blogs/tag/eclipse-theia/ Eclipse Theia]
* [https://os.mbed.com/studio/ Mbed Studio]
| valign="top" |
* [https://www.digitalocean.com/community/tutorials/how-to-set-up-the-eclipse-theia-cloud-ide-platform-on-ubuntu-18-04 Eclipse Theia Cloud IDE Platform on Ubuntu 18.04]
* [https://www.digitalocean.com/community/tutorials/how-to-set-up-the-eclipse-theia-cloud-ide-platform-on-digitalocean-kubernetes Eclipse Theia Cloud IDE Platform on Kubernetes]
* [https://stackoverflow.com/questions/37071388/ Install Visual Studio Code extensions offline]
* [https://theia-ide.org/docs/composing_applications Theia Build your own IDE]
* [https://github.com/eclipse-theia/theia Eclipse Theia in Github]
|}

Latest revision as of 17:58, 24 September 2020

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
nvm install 10
npm install -g yarn
sudo mkdir /opt/eclipse_theia_ide
sudo chown -R pi:pi /opt/eclipse_theia_ide/

Install

cat <<EOF > /opt/eclipse_theia_ide/package.json
{
  "private":true,
  "dependencies":{
    "typescript":"latest",
    "@theia/typescript":"next",
    "@theia/tslint":"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/plugin-ext-vscode":"next"
  },
  "devDependencies":{
    "@theia/cli":"next"
  }
}
EOF
#pios swap memory
printf '\nbefore:\n';free -th;\
sed -i "s|CONF_SWAPSIZE=100|CONF_SWAPSIZE=2048|" /etc/dphys-swapfile;\
service dphys-swapfile restart;\
printf '\nupdate:\n';free -th

export NODE_OPTIONS="--max-old-space-size=2048"


yarn
yarn theia build

du -sh node_modules/
du -h -d1 node_modules/
──────────────────────────────────────────────────────────────────────

export ACADEMIA_WSS="$HOME/chorke/academia"
export ACADEMIA_JAVA_WSS="$ACADEMIA_WSS/java"
export ACADEMIA_JAVA_BASE_WSS="$ACADEMIA_JAVA_WSS/base"
export ACADEMIA_JAVA_BASE_CORE_WS="$ACADEMIA_JAVA_BASE_WSS/core_ws"


sudo mkdir /opt/dev
mkdir -p $HOME/chorke
sudo chown -R pi:pi /opt/dev/
mkdir -p /opt/dev/chorke/academia
ln -s /opt/dev/chorke/academia $ACADEMIA_WSS
mkdir -p $ACADEMIA_JAVA_BASE_CORE_WS
du -h $ACADEMIA_WSS

References