mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-30 17:09:19 +00:00 
			
		
		
		
	Rely on nunjucks files provided by npm
This commit is contained in:
		
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -60,3 +60,7 @@ node_modules/ | |||||||
|  |  | ||||||
| # diff | # diff | ||||||
| *.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 |     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: | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										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
											
										
									
								
							
		Reference in New Issue
	
	Block a user