mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
feat: use devconatiner
This commit is contained in:
parent
68a425b3d3
commit
00f4855dce
25 changed files with 520 additions and 119 deletions
28
.devcontainer/start.sh
Executable file
28
.devcontainer/start.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
# install zsh-autosuggestions
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||
|
||||
if ! grep -q "zsh-autosuggestions" ~/.zshrc; then
|
||||
# add zsh-autosuggestions to plugins list
|
||||
sed -i "/^plugins=(/s/)/ zsh-autosuggestions)/" ~/.zshrc
|
||||
fi
|
||||
|
||||
# init nginx config dir
|
||||
if [ "$(ls -A /etc/nginx)" = "" ]; then
|
||||
echo "Initialing Nginx config dir"
|
||||
cp -rp /etc/nginx.orig/* /etc/nginx/
|
||||
echo "Initialed Nginx config dir"
|
||||
fi
|
||||
|
||||
# install app dependencies
|
||||
echo "Installing app dependencies"
|
||||
cd app && pnpm install -f
|
||||
# Build app
|
||||
pnpm build
|
||||
cd ..
|
||||
|
||||
# install docs dependencies
|
||||
echo "Installing docs dependencies"
|
||||
cd docs && pnpm install -f
|
||||
cd ..
|
Loading…
Add table
Add a link
Reference in a new issue