From 19cdae8adf11d0993c88ba9e6a4acb0e012a7ec5 Mon Sep 17 00:00:00 2001 From: Adam Wallis Date: Tue, 19 Jun 2018 19:18:14 -0400 Subject: [PATCH] Update boostrap to 4.1.1 Updating boostrap required pulling in popper.js (which required adding sync-exec as a dev dependency). Some of the templates were updated based on changes from bootstrap. Signed-off-by: Adam Wallis --- {{cookiecutter.app_name}}/assets/js/main.js | 1 + {{cookiecutter.app_name}}/package.json | 8 +- .../templates/nav.html | 77 ++++++++++--------- .../templates/public/about.html | 4 +- .../templates/public/home.html | 12 +-- .../templates/public/register.html | 3 +- .../templates/users/members.html | 6 +- 7 files changed, 59 insertions(+), 52 deletions(-) diff --git a/{{cookiecutter.app_name}}/assets/js/main.js b/{{cookiecutter.app_name}}/assets/js/main.js index bb66bea..ed90e69 100644 --- a/{{cookiecutter.app_name}}/assets/js/main.js +++ b/{{cookiecutter.app_name}}/assets/js/main.js @@ -7,6 +7,7 @@ // JavaScript modules require('jquery'); require('font-awesome-webpack'); +require('popper.js'); require('bootstrap'); // Your own code diff --git a/{{cookiecutter.app_name}}/package.json b/{{cookiecutter.app_name}}/package.json index b1682e8..d723d04 100644 --- a/{{cookiecutter.app_name}}/package.json +++ b/{{cookiecutter.app_name}}/package.json @@ -21,9 +21,10 @@ }, "homepage": "https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.app_name}}#readme", "dependencies": { - "bootstrap": "^3.3.7", + "bootstrap": "^4.1.1", "font-awesome": "^4.7.0", - "jquery": "^3.2.1" + "jquery": "^3.2.1", + "popper.js": "^1.14.3" }, "devDependencies": { "babel-core": "^6.25.0", @@ -45,6 +46,7 @@ "style-loader": "^0.18.2", "url-loader": "^0.5.9", "webpack": "^2.6.1", - "webpack-dev-server": "^2.4.5" + "webpack-dev-server": "^2.4.5", + "sync-exec": "^0.6.2" } } diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html index faeec2d..784bcc1 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/templates/nav.html @@ -1,49 +1,50 @@ {% raw %} -