Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve dev setup #370

Merged
merged 13 commits into from
Nov 18, 2021
Merged

Improve dev setup #370

merged 13 commits into from
Nov 18, 2021

Conversation

philgyford
Copy link
Owner

  • Changes to Docker set up
  • Use Docker environment in VS Code for linting etc.
  • Remove ./scripts/
  • Add ./run script to make it easier to do things in the Docker environment
  • Add a Docker container for building front-end assets, rather than doing it on the host machine
  • Move source front-end assets to /assets/
  • Use yarn instead of npm to install packages to build front end assets
  • Format all code that doesn't already conform to black, with black
  • Add a black check to the GitHub CI Action
  • Remove runtime.txt (Will Heroku use the python version in Pipfile?

We used to run `gulp watch` etc on the host machine to build the
static assets.

But now we have an extra `assets` docker container in which we
install the necessary Node packages using yarn, and then run
`yarn watch` which, in turn, runs `gulp watch`.

*Seems* to work...
Move all the source Sass, CSS and JS files from `hines/static/hines/src/`
to `/assets/`.

It makes them a bit easier to access to edit, and stops a bit of
confusion between these source files and the ones that are actually
used on the site, after build.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 82.327% when pulling 3ec854c on improve-dev-setup into 27ba26a on main.

@philgyford philgyford merged commit e677849 into main Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants