1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-23 00:25:18 +00:00

Rely on nunjucks files provided by npm

This commit is contained in:
Lauri Võsandi 2017-01-20 10:51:45 +00:00
parent e2f7c8d1d6
commit 4c69efbf87
4 changed files with 6 additions and 7 deletions

4
.gitignore vendored
View File

@ -60,3 +60,7 @@ node_modules/
# diff # diff
*.diff *.diff
# Ignore autogenerated files
certidude/static/js/nunjucks*
certidude/static/js/templates.js

View File

@ -325,8 +325,9 @@ To generate templates:
apt-get install npm nodejs apt-get install npm nodejs
sudo ln -s nodejs /usr/bin/node # Fix 'env node' on Ubuntu 14.04 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 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: To run from source tree:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long