Skip to content

Commit

Permalink
tools: Fix prep-dev-environment script.
Browse files Browse the repository at this point in the history
  • Loading branch information
adambirds committed Feb 15, 2022
1 parent 6f3086e commit b2a3723
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,8 @@ dmypy.json
# Exclusions

!src/xkcd_pass/lib/
!tools/lib
!tools/lib

#node_modules

node_modules/
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "prettier",
"version": "2.5.1",
"description": "[![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![mypy coverage](https://img.shields.io/badge/mypy-100%25-green.svg)](https://github.com/python/mypy)",
"main": "index.js",
"directories": {
"doc": "docs"
},
"dependencies": {
"prettier": "^2.5.1"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/adambirds/xkcd-password-gen.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/adambirds/xkcd-password-gen/issues"
},
"homepage": "https://github.com/adambirds/xkcd-password-gen#readme"
}
5 changes: 5 additions & 0 deletions tools/setup/prep-dev-environment
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/usr/bin/env bash
set -eu

apt install npm -y
python3 -m venv xkcd-pass-venv
if [ -d xkcd-pass-venv/bin ]; then
source xkcd-pass-venv/bin/activate
fi
cd "$(dirname "$0")"
pip3 install build
pip3 install wheel
pip3 install -r ../../requirements.txt
./install-shellcheck
./install-shfmt
npm install

0 comments on commit b2a3723

Please sign in to comment.