Skip to content

Commit 4b5ecb6

Browse files
build(npm): cleanup/gitignore files & switch to pnpm
1 parent 5952675 commit 4b5ecb6

File tree

7 files changed

+3705
-9074
lines changed

7 files changed

+3705
-9074
lines changed

.devcontainer/supporting_files/configuration/.zshrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@ DISABLE_UPDATE_PROMPT=true
2121

2222
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
2323
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
24+
25+
# pnpm
26+
export PNPM_HOME="/home/vscode/.local/share/pnpm"
27+
case ":$PATH:" in
28+
*":$PNPM_HOME:"*) ;;
29+
*) export PATH="$PNPM_HOME:$PATH" ;;
30+
esac
31+
# pnpm end

.devcontainer/supporting_files/scripts/post-create.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
# NOTE: This file will be executed as remoteUser (devcontainer.json)
33
echo "=> Script: post-create.sh Executed by: $(whoami)"
44

5-
sudo npm i --progress=false --global commitizen@latest cz-conventional-changelog@latest semantic-release-cli@latest
6-
75
# shellcheck source=/dev/null
86
source ~/.zshrc
97

8+
# install pnpm and global packages
9+
sudo npm i -g pnpm@latest
10+
sudo npm add -g commitizen@latest cz-conventional-changelog@latest semantic-release-cli@latest
11+
1012
# install node deps
11-
npm ci
13+
pnpm i --frozen-lockfile

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
.metadata
55
.externalToolBuilders
66
node_modules/
7+
.pnpm-store/
8+
package-lock.json
9+
yarn.lock
710
coverage/
811
npm-debug.log*
912
.nyc_output/

0 commit comments

Comments
 (0)