Skip to content

Commit

Permalink
Merge branch 'master' into fixup-node8
Browse files Browse the repository at this point in the history
  • Loading branch information
toolness committed Feb 21, 2018
2 parents 7ab0399 + 9b206c9 commit 1a116bd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ Let's also load example requirements, agencies, and a whole document:
```bash
bin/manage.py fetch_csv
bin/manage.py import_reqs data.csv
bin/manage.py sync_agencies
bin/manage.py import_xml_doc example_docs/m_16_19_1.xml M-16-19
bin/manage.py import_xml_doc example_docs/m_15_16.xml M-15-16
```
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ services:
working_dir: /usr/src/app/styleguide
entrypoint: .docker/deps_ok_then .docker/modify_path_then
command: .docker/build_run_styleguide
environment:
USE_POLLING: ${USE_POLLING:-false}
ports:
- 3000:3000
volumes:
Expand Down
4 changes: 2 additions & 2 deletions styleguide/.docker/build_run_styleguide
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

set -e

webpack --watch &
fractal start --sync
node node_modules/webpack/bin/webpack.js --watch &
./node_modules/@frctl/fractal/bin/fractal start --sync
6 changes: 4 additions & 2 deletions styleguide/.docker/deps_ok_then
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash

if [ ! -x node_modules/.bin/deps-ok ]; then
export DEPS_OK=./node_modules/deps-ok/bin/deps-ok.js

if [ ! -x $DEPS_OK ]; then
echo "Installing deps-ok"
npm install --save-dev deps-ok
fi

./node_modules/.bin/deps-ok &> /dev/null
$DEPS_OK &> /dev/null
if [ $? -ne 0 ]; then
echo "Installing Node dependencies"
npm install
Expand Down

0 comments on commit 1a116bd

Please sign in to comment.