mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-17 03:51:02 +03:00
Merge pull request #3514 from browniebroke/fix/bash-expansion
Double quote array expansions to avoid re-splitting elements
This commit is contained in:
commit
e63578f56c
|
@ -11,7 +11,7 @@ mkdir -p .cache/bare
|
||||||
cd .cache/bare
|
cd .cache/bare
|
||||||
|
|
||||||
# create the project using the default settings in cookiecutter.json
|
# create the project using the default settings in cookiecutter.json
|
||||||
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=n $@
|
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=n "$@"
|
||||||
cd my_awesome_project
|
cd my_awesome_project
|
||||||
|
|
||||||
# Install OS deps
|
# Install OS deps
|
||||||
|
@ -42,4 +42,4 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate the HTML for the documentation
|
# Generate the HTML for the documentation
|
||||||
cd docs && make html
|
cd docs && make html
|
||||||
|
|
|
@ -11,7 +11,7 @@ mkdir -p .cache/docker
|
||||||
cd .cache/docker
|
cd .cache/docker
|
||||||
|
|
||||||
# create the project using the default settings in cookiecutter.json
|
# create the project using the default settings in cookiecutter.json
|
||||||
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=y $@
|
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=y "$@"
|
||||||
cd my_awesome_project
|
cd my_awesome_project
|
||||||
|
|
||||||
# Lint by running pre-commit on all files
|
# Lint by running pre-commit on all files
|
||||||
|
@ -40,4 +40,4 @@ docker-compose -f local.yml run django python manage.py makemessages --all
|
||||||
docker-compose -f local.yml run django python manage.py check --fail-level WARNING
|
docker-compose -f local.yml run django python manage.py check --fail-level WARNING
|
||||||
|
|
||||||
# Generate the HTML for the documentation
|
# Generate the HTML for the documentation
|
||||||
docker-compose -f local.yml run docs make html
|
docker-compose -f local.yml run docs make html
|
||||||
|
|
|
@ -13,7 +13,7 @@ updates:
|
||||||
{%- if cookiecutter.use_docker == 'y' %}
|
{%- if cookiecutter.use_docker == 'y' %}
|
||||||
|
|
||||||
# Enable version updates for Docker
|
# Enable version updates for Docker
|
||||||
# We need to specify each Dockerfile in a separate entry because Dependabot doesn't
|
# We need to specify each Dockerfile in a separate entry because Dependabot doesn't
|
||||||
# support wildcards or recursively checking subdirectories. Check this issue for updates:
|
# support wildcards or recursively checking subdirectories. Check this issue for updates:
|
||||||
# https://github.com/dependabot/dependabot-core/issues/2178
|
# https://github.com/dependabot/dependabot-core/issues/2178
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
|
@ -38,7 +38,7 @@ updates:
|
||||||
# Check for updates to GitHub Actions every weekday
|
# Check for updates to GitHub Actions every weekday
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
|
||||||
# Enable version updates for Docker
|
# Enable version updates for Docker
|
||||||
- package-ecosystem: "docker"
|
- package-ecosystem: "docker"
|
||||||
# Look for a `Dockerfile` in the `compose/production/aws` directory
|
# Look for a `Dockerfile` in the `compose/production/aws` directory
|
||||||
|
|
|
@ -14,11 +14,11 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="NewModuleRootManager">
|
<component name="NewModuleRootManager">
|
||||||
{% if cookiecutter.js_task_runner != 'None' %}
|
{% if cookiecutter.js_task_runner != 'None' %}
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<excludeFolder url="file://$MODULE_DIR$/node_modules" />
|
<excludeFolder url="file://$MODULE_DIR$/node_modules" />
|
||||||
</content>
|
</content>
|
||||||
{% else %}
|
{% else %}
|
||||||
<content url="file://$MODULE_DIR$" />
|
<content url="file://$MODULE_DIR$" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
</component>
|
</component>
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
{% block inline_javascript %}
|
{% block inline_javascript %}
|
||||||
{% comment %}
|
{% comment %}
|
||||||
Script tags with only code, no src (defer by default). To run
|
Script tags with only code, no src (defer by default). To run
|
||||||
with a "defer" so that you run run inline code:
|
with a "defer" so that you run inline code:
|
||||||
<script>
|
<script>
|
||||||
window.addEventListener('DOMContentLoaded', () => {/* Run whatever you want */});
|
window.addEventListener('DOMContentLoaded', () => {/* Run whatever you want */});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user