Merge pull request #277 from RubenPX/add-developement-stuff-js
Add developement build & precomit build (javascript)
This commit is contained in:
commit
772d527ba6
|
@ -15,3 +15,9 @@ repos:
|
||||||
rev: 0.0.9
|
rev: 0.0.9
|
||||||
hooks:
|
hooks:
|
||||||
- id: check_pdb_hook
|
- id: check_pdb_hook
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: build-js
|
||||||
|
name: build-js
|
||||||
|
entry: npm run babel
|
||||||
|
language: node
|
||||||
|
|
|
@ -466,5 +466,11 @@
|
||||||
perPage: 20
|
perPage: 20
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
<script src="{{ url_for('static', filename='js/main_inventory.build.js') }}"></script>
|
{% if config['DEBUG'] %}
|
||||||
|
<script src="{{ url_for('static', filename='js/main_inventory.js') }}"></script>
|
||||||
|
{% else %}
|
||||||
|
<script src="{{ url_for('static', filename='js/main_inventory.build.js') }}"></script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock main %}
|
{% endblock main %}
|
||||||
|
|
Reference in New Issue