mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-22 07:54:11 -05:00
Update the traditional bootstrap
This commit is contained in:
parent
729e2b058c
commit
f8f90ec15e
2 changed files with 18 additions and 16 deletions
|
@ -22,19 +22,21 @@ const babel = require("gulp-babel"),
|
||||||
// Determine if gulp has been run with --production
|
// Determine if gulp has been run with --production
|
||||||
const isProduction = minimist(process.argv.slice(2)).production !== undefined;
|
const isProduction = minimist(process.argv.slice(2)).production !== undefined;
|
||||||
|
|
||||||
|
// Declare plugin settings
|
||||||
|
const sassOutputStyle = isProduction ? "compressed" : "expanded",
|
||||||
|
sassPaths = "node_modules",
|
||||||
|
autoprefixerSettings = { remove: false, cascade: false };
|
||||||
|
|
||||||
// Include browsersync when gulp has not been run with --production
|
// Include browsersync when gulp has not been run with --production
|
||||||
let browserSync = undefined;
|
let browserSync = undefined;
|
||||||
|
|
||||||
if (isProduction) {
|
if (!isProduction) {
|
||||||
process.env.NODE_ENV = "production";
|
|
||||||
} else {
|
|
||||||
browserSync = require("browser-sync").create();
|
browserSync = require("browser-sync").create();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Declare plugin settings
|
// Environment
|
||||||
const sassOutputStyle = isProduction ? "compressed" : "expanded",
|
process.env.NODE_ENV = isProduction ? "production" : "development";
|
||||||
sassPaths = [ "node_modules" ],
|
process.env.SASS_PATH = sassPaths;
|
||||||
autoprefixerSettings = { remove: false, cascade: false };
|
|
||||||
|
|
||||||
// Javascript files for the public site
|
// Javascript files for the public site
|
||||||
const jsPublic = [
|
const jsPublic = [
|
||||||
|
@ -61,7 +63,7 @@ const jsDashboard = [
|
||||||
const jsDashboardLibs = [
|
const jsDashboardLibs = [
|
||||||
"node_modules/jquery/dist/jquery.js",
|
"node_modules/jquery/dist/jquery.js",
|
||||||
"node_modules/popper.js/dist/umd/popper.js",
|
"node_modules/popper.js/dist/umd/popper.js",
|
||||||
"node_modules/bootstrap/dist/js/bootstrap.js",
|
"node_modules/bootstrap/dist/js/bootstrap.bundle.js",
|
||||||
"node_modules/flatpickr/dist/flatpickr.js",
|
"node_modules/flatpickr/dist/flatpickr.js",
|
||||||
"node_modules/sortablejs/Sortable.js",
|
"node_modules/sortablejs/Sortable.js",
|
||||||
"node_modules/list.js/dist/list.js",
|
"node_modules/list.js/dist/list.js",
|
||||||
|
@ -93,7 +95,7 @@ function processSass(filename) {
|
||||||
const css = gulp.src(`resources/sass/${filename}.scss`)
|
const css = gulp.src(`resources/sass/${filename}.scss`)
|
||||||
.pipe(plumber(handleError))
|
.pipe(plumber(handleError))
|
||||||
.pipe(sassGlob())
|
.pipe(sassGlob())
|
||||||
.pipe(sass({ outputStyle: sassOutputStyle, includePaths: sassPaths }))
|
.pipe(sass({ outputStyle: sassOutputStyle }))
|
||||||
.pipe(postCSS([ autoprefixer(autoprefixerSettings) ]))
|
.pipe(postCSS([ autoprefixer(autoprefixerSettings) ]))
|
||||||
.pipe(concat(`${filename}.css`))
|
.pipe(concat(`${filename}.css`))
|
||||||
.pipe(gulp.dest("public/css/"));
|
.pipe(gulp.dest("public/css/"));
|
||||||
|
|
|
@ -8,13 +8,13 @@
|
||||||
"browser-sync": "2.27.10"
|
"browser-sync": "2.27.10"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "7.18.5",
|
"@babel/core": "7.18.9",
|
||||||
"@babel/preset-env": "7.18.2",
|
"@babel/preset-env": "7.18.9",
|
||||||
"@fortawesome/fontawesome-free": "5.15.4",
|
"@fortawesome/fontawesome-free": "6.1.1",
|
||||||
"@mr-hope/gulp-sass": "2.0.0",
|
"@mr-hope/gulp-sass": "3.0.2",
|
||||||
"autonumeric": "4.6.0",
|
"autonumeric": "4.6.0",
|
||||||
"autoprefixer": "10.4.5",
|
"autoprefixer": "10.4.7",
|
||||||
"bootstrap": "5.1.3",
|
"bootstrap": "5.2.0",
|
||||||
"easymde": "2.16.1",
|
"easymde": "2.16.1",
|
||||||
"fancy-log": "2.0.0",
|
"fancy-log": "2.0.0",
|
||||||
"flatpickr": "4.6.13",
|
"flatpickr": "4.6.13",
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
"minimist": "1.2.6",
|
"minimist": "1.2.6",
|
||||||
"popper.js": "1.16.1",
|
"popper.js": "1.16.1",
|
||||||
"postcss": "8.4.14",
|
"postcss": "8.4.14",
|
||||||
"sass": "1.32.12",
|
"sass": "1.53.0",
|
||||||
"sortablejs": "1.15.0",
|
"sortablejs": "1.15.0",
|
||||||
"spinkit": "2.0.1",
|
"spinkit": "2.0.1",
|
||||||
"what-input": "5.2.12"
|
"what-input": "5.2.12"
|
||||||
|
|
Loading…
Reference in a new issue