Skip to content

Commit 2abf4f4

Browse files
committed
Ensure working environment with pipenv and nodeenv
Add a bootstrap script that automatically ensures all dependencies. Python dependencies are ensured with Pipenv, while NodeJS dependencies are ensured with nodeenv. The node version is set to latest 10x, because upcoming commits will add lerna which requires a more recent version than the one in current README. We can't bump to latest node 14 LTS because kolibri-tools requires node=10x. Also, update the README and the .gitignore files as needed. https://phabricator.endlessm.com/T31931
1 parent b25571a commit 2abf4f4

File tree

5 files changed

+594
-30
lines changed

5 files changed

+594
-30
lines changed

.gitignore

+8-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
*.swp
22

3-
node_modules/*
3+
node_modules
4+
5+
# Built and cached files
46
kolibri_explore_plugin/apps/**/*.zip
5-
kolibri_explore_plugin/static/*
6-
kolibri_explore_plugin/build/*
7+
kolibri_explore_plugin/static/
8+
kolibri_explore_plugin/build/
79
kolibri_explore_plugin/__pycache__
8-
build/*
9-
dist/*
10-
kolibri_explore_plugin.egg-info/*
11-
12-
# virtual environment
13-
venv/
14-
.python-version
15-
.envrc
16-
.env
17-
Pipfile
10+
build/
11+
dist/
12+
kolibri_explore_plugin.egg-info/

Pipfile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
8+
[packages]
9+
nodeenv = "==1.3.3"
10+
ipdb = "==0.13.2"
11+
flake8 = "==3.8.3"
12+
pre-commit = "==1.15.1"
13+
tox = "==3.1.3"
14+
twine = "*"
15+
bumpversion = "*"
16+
17+
[requires]
18+
python_version = "3.7"

0 commit comments

Comments
 (0)