mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-22 16:25:17 +00:00
Rely on nunjucks files provided by npm
This commit is contained in:
parent
e2f7c8d1d6
commit
4c69efbf87
4
.gitignore
vendored
4
.gitignore
vendored
@ -60,3 +60,7 @@ node_modules/
|
||||
|
||||
# diff
|
||||
*.diff
|
||||
|
||||
# Ignore autogenerated files
|
||||
certidude/static/js/nunjucks*
|
||||
certidude/static/js/templates.js
|
||||
|
@ -325,8 +325,9 @@ To generate templates:
|
||||
|
||||
apt-get install npm nodejs
|
||||
sudo ln -s nodejs /usr/bin/node # Fix 'env node' on Ubuntu 14.04
|
||||
npm install -g nunjucks
|
||||
npm install -g nunjucks@2.5.2
|
||||
nunjucks-precompile --include "\\.html$" --include "\\.svg$" certidude/static/ > certidude/static/js/templates.js
|
||||
cp /usr/local/lib/node_modules/nunjucks/browser/*.js certidude/static/js/
|
||||
|
||||
To run from source tree:
|
||||
|
||||
|
2
certidude/static/js/nunjucks-slim.min.js
vendored
2
certidude/static/js/nunjucks-slim.min.js
vendored
File diff suppressed because one or more lines are too long
4
certidude/static/js/nunjucks.min.js
vendored
4
certidude/static/js/nunjucks.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user