Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
build(npm): changed configs
Browse files Browse the repository at this point in the history
fix #6
  • Loading branch information
victor-pogor committed Nov 30, 2020
1 parent a3cd343 commit 39911c5
Show file tree
Hide file tree
Showing 5 changed files with 519 additions and 145 deletions.
8 changes: 4 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y sudo \
curl \
git-core \
gnupg2 \
linuxbrew-wrapper \
locales \
zsh \
wget \
fonts-powerline \
software-properties-common \
# set up locale
&& locale-gen en_US.UTF-8

# Install git
RUN add-apt-repository -y ppa:git-core/ppa && apt update && apt install git -y

# Install Node.js
RUN curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
RUN apt install nodejs

# Install commitizen and commitlint globally
RUN npm install -g commitizen cz-conventional-changelog

# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=dialog

Expand Down
7 changes: 7 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hooks": {
"pre-commit": "npm run build && npm run copy && git add resources assets/js",
// "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.associations": {
".huskyrc": "json"
}
}
Loading

0 comments on commit 39911c5

Please sign in to comment.