Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a8288d3
builds but doesn't run
ddfridley Aug 1, 2024
def2883
ignore common/static sync webpack.common with sb branch
ddfridley Sep 26, 2024
d145e4d
adding back from master
ddfridley Sep 26, 2024
290d458
casheGroups
ddfridley Sep 26, 2024
aa1ff6b
node 16.20.1 same as package engines
ddfridley Sep 26, 2024
6e18796
added webpack-bundle-loader and django-webpack-loader
ddfridley Sep 26, 2024
406af8d
webpack loader output to /js
ddfridley Sep 26, 2024
5b40028
working with webpack5
ddfridley Nov 7, 2024
67e4e8a
ignore files created at runtime
ddfridley Nov 7, 2024
7eb992b
some up-versions were not needed for webpack
ddfridley Nov 7, 2024
c607511
resolve.extensions
ddfridley Nov 7, 2024
aa6c262
avoiding webpack-bundle-tracker
ddfridley Nov 21, 2024
15c4cf7
back to master
ddfridley Nov 21, 2024
2ef5b5c
to python3.10
ddfridley Dec 5, 2024
028064b
allauth +0.01
ddfridley Dec 5, 2024
d9dc7c6
allauth 0.49
ddfridley Dec 5, 2024
27ae71b
back to django-alluth 0.44
ddfridley Dec 12, 2024
15f5556
runtime.txt -> .python_version
ddfridley Apr 10, 2025
673b0ec
dont ignore .python-version
ddfridley Apr 10, 2025
1153144
.python-version 3.10.11
ddfridley Apr 10, 2025
98253d9
python 3.10
ddfridley Apr 10, 2025
c57c1db
pip 24.0.0 required
ddfridley Apr 10, 2025
ef009b4
pip doesnt work in requirments
ddfridley Apr 10, 2025
7c4ca6e
back to runtime.txt
ddfridley Apr 10, 2025
2256d68
no .python-version
ddfridley Apr 17, 2025
4326c9e
no devtool in production
ddfridley Apr 17, 2025
3720e61
python-3.10.x
ddfridley Apr 17, 2025
d3c3d7e
python 3.10.15
ddfridley Apr 17, 2025
b995603
3.10.14
ddfridley Apr 17, 2025
e97182d
changes from heroku_python_fix
ddfridley May 29, 2025
ff1bddb
runtime.txt depricated
ddfridley May 29, 2025
822b4a3
merged with master and resolved conflicts
ddfridley Aug 14, 2025
9190e77
uses npm, also changed to CssMinimizerPlugin
ddfridley Aug 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

# Third-party dependency files.
!package.json
!yarn.lock
!.yarnrc
!package-lock.json
!requirements.txt

# Config
Expand Down
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,14 @@ share/
pyvenv.cfg


# Don't check in package-lock, as it will conflict with yarn.lock and break the heroku build
package-lock.json

# Docker environment config
docker_environment_init.sh

.envrc

# Exclude Makefiles
Makefile
Makefile

# Exclude files create at runtime - by webpack and storybook
common/static/
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default_language_version:
python: python3.8
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
Expand Down
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,27 @@ ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN apt-get update && apt-get install -y libgdal-dev

# Install and set up nvm
RUN mkdir /.nvm
ENV NVM_DIR /.nvm
ENV NODE_VERSION 12.16.0
ENV NODE_VERSION 16.20.1
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.35.0/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default

# Install pip and yarn depedencies before copying directory to Docker image.
# Install pip and npm depedencies before copying directory to Docker image.
COPY requirements.txt /code/requirements.txt
RUN pip install -r requirements.txt

# Copy files needed for yarn install.
COPY package.json yarn.lock /code/
RUN yarn config set ignore-engines true
RUN yarn --frozen-lockfile --link-duplicates --ignore-scripts
# Permission issue with node-sass https://github.com/sass/node-sass/issues/1579
RUN npm rebuild node-sass
# Copy files needed for npm install.
COPY package.json /code/
COPY package-lock.json /code/

RUN npm install --ignore-scripts -frozen-lockfile --link-duplicates
# Copy folders and files whitelisted by .dockerignore.
COPY . /code/

Expand Down
1 change: 0 additions & 1 deletion civictechprojects/templates/new_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<meta name="og:url" content="{{ canonical_url }}" />
<meta name="image" property="og:image" content="{{ og_image }}" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="/static/js/runtime.bundle.js" defer></script>
<script src="/static/js/main.bundle.js" defer></script>
<script src="/static/js/vendors.bundle.js" defer></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
Expand Down
2 changes: 1 addition & 1 deletion common/components/mount-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import SignUpErrorAdapter from "./componentsBySection/signUp/SignUpErrorAdapter.

// TODO: Figure out a better way to prevent react console error where it's
// expecting node Environment variables
global.process = {
window.process = {
env: {
NODE_ENV: "production",
},
Expand Down
1 change: 0 additions & 1 deletion common/static/css/react-select.min.css

This file was deleted.

20 changes: 0 additions & 20 deletions common/static/js/selection.js

This file was deleted.

3 changes: 2 additions & 1 deletion democracylab/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
<script src="https://use.fontawesome.com/21e87da3a9.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
<script src="/static/js/bundle.js" defer></script>
<script src="/static/js/main.bundle.js" defer></script>
<script src="/static/js/vendors.bundle.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.0.0/cjs/react.development.js" defer></script>
{% block extra_head %} {% endblock extra_head %}
</head>
Expand Down
Loading