Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit c426de4

Browse files
committed
NEW ! Bootstrap bumped to v5.x that uses vanilla JS so dropped jQuery (added as external), poppers.js and breakpoint slicer (mixin now available in Bootstrap 5).
1 parent f815cb7 commit c426de4

File tree

5 files changed

+42
-87
lines changed

5 files changed

+42
-87
lines changed

assets/src/scss/main.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11

2-
// dependencies
3-
@import "node_modules/breakpoint-sass/stylesheets/breakpoint",
4-
"node_modules/breakpoint-slicer/stylesheets/breakpoint-slicer";
5-
62
// abstracts
73
@import "abstracts/variables";
84

gulp/core/config/scripts.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = deepMerge({
6262
},
6363
},
6464
extractComments: false,
65-
}),
65+
})
6666
]
6767
}
6868
},
@@ -94,13 +94,11 @@ module.exports = deepMerge({
9494
]
9595
},
9696
plugins: [
97-
new ESLintPlugin(),
98-
new webpack.ProvidePlugin({
99-
$: 'jquery',
100-
jQuery: 'jquery',
101-
'window.jQuery': 'jquery'
102-
})
103-
]
97+
new ESLintPlugin()
98+
],
99+
externals: {
100+
jquery: 'jQuery'
101+
}
104102
}
105103
}
106104
}

package-lock.json

Lines changed: 32 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@
6767
"webpack-stream": "6.1.2"
6868
},
6969
"dependencies": {
70-
"bootstrap": "4.6.0",
71-
"breakpoint-sass": "2.7.1",
72-
"breakpoint-slicer": "2.0.0",
73-
"jquery": "3.6.0",
74-
"popper.js": "1.16.1"
70+
"bootstrap": "5.0.1"
7571
}
7672
}

readme.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66

77
- [ES6](https://github.com/lukehoban/es6features#readme) for JavaScript (transpiling with [Babel](https://babeljs.io/) and linting with [ESLint](https://eslint.org/))
88
- [SASS](http://sass-lang.com/) preprocessor for CSS with [SASS Guidelines](https://sass-guidelin.es/#the-7-1-pattern)
9-
- [Breakpoint slicer](https://github.com/lolmaus/breakpoint-slicer/) to write faster media queries
10-
- [Bootstrap 4](https://getbootstrap.com/docs/4.6/getting-started/introduction/) as CSS framework ([customizable with SASS](https://getbootstrap.com/docs/4.6/getting-started/theming/#variable-defaults))
9+
- [Bootstrap 5](https://getbootstrap.com/docs/5.0/getting-started/introduction/) as CSS framework ([customizable with SASS](https://getbootstrap.com/docs/5.0/customize/sass/))
1110
- [Gulp 4](https://gulpjs.com/) & [Webpack 5](https://webpack.js.org/) to manage, compile and optimize theme assets
12-
- SVG Sprite : create a folder containing all your SVGs like `assets/src/svg/sprite` and run your watch or build
11+
- SVG Sprite : create a folder containing all your SVGs like `assets/src/svg/sprite` and run your watch or build
1312

1413
## Requirements
1514

@@ -27,7 +26,7 @@ Then, run the following commands in the theme's directory :
2726
Launch your watch for assets with :
2827

2928
npm run start
30-
29+
3130
For production sites, create your build with :
3231

3332
npm run build

0 commit comments

Comments
 (0)