mirror of
https://github.com/laurivosandi/certidude
synced 2026-09-19 05:48:18 +00:00
Rely on nunjucks files provided by npm
This commit is contained in:
@@ -60,3 +60,7 @@ node_modules/
|
||||
|
||||
# diff
|
||||
*.diff
|
||||
|
||||
# Ignore autogenerated files
|
||||
certidude/static/js/nunjucks*
|
||||
certidude/static/js/templates.js
|
||||
|
||||
+2
-1
@@ -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
File diff suppressed because one or more lines are too long
Vendored
-4
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user