diff --git a/.gitignore b/.gitignore index 320de9a..5d0b63a 100644 --- a/.gitignore +++ b/.gitignore @@ -139,4 +139,8 @@ dmypy.json # Exclusions !src/xkcd_pass/lib/ -!tools/lib \ No newline at end of file +!tools/lib + +#node_modules + +node_modules/ \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..4ede11e --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "prettier", + "version": "2.5.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "prettier": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.5.1.tgz", + "integrity": "sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..529a45e --- /dev/null +++ b/package.json @@ -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" +} diff --git a/tools/setup/prep-dev-environment b/tools/setup/prep-dev-environment index 40e07de..f77bf35 100755 --- a/tools/setup/prep-dev-environment +++ b/tools/setup/prep-dev-environment @@ -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