From 7b709491b8934e784cde4443b5062e1e5f4e2f58 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Wed, 3 Jan 2018 14:50:57 +0100 Subject: [PATCH] Add Bootstrap to package.json in case of custom_bootstrap_compilation --- {{cookiecutter.project_slug}}/package.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/{{cookiecutter.project_slug}}/package.json b/{{cookiecutter.project_slug}}/package.json index 0c8af4272..cc445d7e2 100644 --- a/{{cookiecutter.project_slug}}/package.json +++ b/{{cookiecutter.project_slug}}/package.json @@ -5,6 +5,9 @@ "devDependencies": { {% if cookiecutter.js_task_runner == 'Grunt' %} "autoprefixer-core": "~5.2.1", + {% if cookiecutter.custom_bootstrap_compilation == 'y' %} + "bootstrap": "^4.0.0-beta.2", + {% endif %} "connect-livereload": "~0.3.2", "cssnano": "~2.1.0", "grunt": "~0.4.5", @@ -12,10 +15,19 @@ "grunt-contrib-watch": "~0.6.1", "grunt-postcss": "~0.5.5", "grunt-sass": "~1.0.0", + {% if cookiecutter.custom_bootstrap_compilation == 'y' %} + "jquery": "^3.2.1-slim", + {% endif %} "load-grunt-tasks": "~3.2.0", "pixrem": "~1.3.1", + {% if cookiecutter.custom_bootstrap_compilation == 'y' %} + "popper.js": "^1.12.3", + {% endif %} "time-grunt": "~1.2.1" {% elif cookiecutter.js_task_runner == 'Gulp' %} + {% if cookiecutter.custom_bootstrap_compilation == 'y' %} + "bootstrap": "^4.0.0-beta.2", + {% endif %} "browser-sync": "^2.14.0", "del": "^2.2.2", "gulp": "^3.9.1", @@ -28,6 +40,10 @@ "gulp-sass": "^2.3.2", "gulp-uglify": "^2.0.0", "gulp-util": "^3.0.7", + {% if cookiecutter.custom_bootstrap_compilation == 'y' %} + "jquery": "^3.2.1-slim", + "popper.js": "^1.12.3", + {% endif %} "run-sequence": "^1.2.2" {% endif %} },