-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce vscode permissions and executions for workspaces dir (#1695)
Co-authored-by: Jumana B <[email protected]>
- Loading branch information
1 parent
b693d4f
commit dbf27cd
Showing
3 changed files
with
60 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
export POETRY_VERSION="1.3.2" | ||
|
||
# Define aliases | ||
echo -e "\n\n# User's Aliases" >> ~/.zshrc | ||
echo -e "alias fd=fdfind" >> ~/.zshrc | ||
echo -e "alias l='ls -al --color'" >> ~/.zshrc | ||
echo -e "alias ls='exa'" >> ~/.zshrc | ||
echo -e "alias l='exa -alh'" >> ~/.zshrc | ||
echo -e "alias ll='exa -alh@ --git'" >> ~/.zshrc | ||
echo -e "alias lt='exa -al -T -L 2'" >> ~/.zshrc | ||
|
||
# Poetry autocomplete | ||
echo -e "fpath+=/.zfunc" >> ~/.zshrc | ||
echo -e "autoload -Uz compinit && compinit" | ||
|
||
# Install Poetry | ||
pip install poetry==${POETRY_VERSION} | ||
echo "PATH=$PATH" | ||
#echo "/home/vscode/.local/bin/.." | ||
export PATH=$PATH:/home/vscode/.local/bin/ | ||
which poetry | ||
poetry --version | ||
|
||
# Initialize poetry autocompletions | ||
mkdir ~/.zfunc | ||
touch ~/.zfunc/_poetry | ||
poetry completions zsh > ~/.zfunc/_poetry | ||
|
||
# Install dependencies | ||
cd /workspaces/notification-admin | ||
poetry install | ||
|
||
npm rebuild node-sass | ||
make generate-version-file | ||
make babel | ||
|
||
npm ci install | ||
npm run build | ||
|
||
# install npm deps (i.e. cypress) | ||
cd tests_cypress && npm install && npx cypress install && cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters