Theia: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 44: | Line 44: | ||
| valign="top" | | | valign="top" | | ||
<source lang="bash"> | <source lang="bash"> | ||
# pios swap memory | #pios swap memory | ||
printf '\nbefore:\n';free -th;\ | printf '\nbefore:\n';free -th;\ | ||
sed -i "s|CONF_SWAPSIZE=100|CONF_SWAPSIZE=2048|" /etc/dphys-swapfile;\ | sed -i "s|CONF_SWAPSIZE=100|CONF_SWAPSIZE=2048|" /etc/dphys-swapfile;\ | ||
service dphys-swapfile restart;\ | service dphys-swapfile restart;\ | ||
printf '\nupdate:\n';free -th | printf '\nupdate:\n';free -th | ||
export NODE_OPTIONS="--max-old-space-size=2048" | export NODE_OPTIONS="--max-old-space-size=2048" | ||
yarn | yarn | ||
yarn theia build | yarn theia build | ||
────────────────────────────────────────────────────────────────────── | |||
export ACADEMIA_WSS="$HOME/chorke/academia" | |||
export ACADEMIA_JAVA_BASE_WS="$ACADEMIA_WSS/java/base_ws" | |||
sudo mkdir /opt/dev | sudo mkdir /opt/dev | ||
sudo chown -R pi:pi /opt/dev/ | sudo chown -R pi:pi /opt/dev/ | ||
mkdir -p $HOME/chorke | mkdir -p $HOME/chorke | ||
mkdir -p /opt/dev/chorke/academia | mkdir -p /opt/dev/chorke/academia |
Revision as of 18:59, 21 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/theia_ide
sudo chown -R pi:pi /opt/theia_ide/
Install
cat <<EOF > /opt/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
──────────────────────────────────────────────────────────────────────
export ACADEMIA_WSS="$HOME/chorke/academia"
export ACADEMIA_JAVA_BASE_WS="$ACADEMIA_WSS/java/base_ws"
sudo mkdir /opt/dev
sudo chown -R pi:pi /opt/dev/
mkdir -p $HOME/chorke
mkdir -p /opt/dev/chorke/academia
ln -s /opt/dev/chorke/academia $ACADEMIA_WSS
mkdir -p $ACADEMIA_JAVA_BASE_WS
du -h $ACADEMIA_WSS
|