Skip to content

Commit eb37598

Browse files
committed
Release 5.13.0
- Video files support by default - EJS template files support - Dependency packages versions update.
1 parent c2bf6c4 commit eb37598

11 files changed

+1004
-1324
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ nbproject/*
1616
# Windows
1717
Thumbs.db
1818

19+
# Debugging related
1920
npm-debug.log
2021

22+
# Dependency packages files
2123
node_modules/
24+
25+
# Output
2226
dist/

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Change log
22

3+
## [5.13.0](https://github.com/WeAreAthlon/frontend-webpack-boilerplate/releases/tag/v5.13.0)
4+
### 19/04/2022
5+
6+
### New Features
7+
8+
* Add support for videos in the default webpack configuration. ([Issue #45 Video Assets](https://github.com/WeAreAthlon/frontend-webpack-boilerplate/issues/45))
9+
* HTML `<video>` tag.
10+
* Add support for [`ejs`](https://www.npmjs.com/package/ejs) template files. ([PR#28 Add support ejs files](https://github.com/WeAreAthlon/frontend-webpack-boilerplate/pull/28))
11+
12+
### Package Versions Update
13+
14+
+ `@babel/core@7.17.9` change log can be found on the official [release notes](https://github.com/babel/babel/releases/tag/v7.17.9).
15+
+ `eslint@8.13.0` change log can be found on the official [release notes](https://github.com/eslint/eslint/releases/tag/v8.13.0).
16+
+ `eslint-plugin-import@2.26.0` change log can be found on the official [release notes](https://github.com/yannickcr/eslint-plugin-react/releases/tag/v7.26.0).
17+
+ `sass@1.50.1` change log can be found on the official [release notes](https://github.com/sass/dart-sass/releases/tag/1.50.1).
18+
+ `webpack@5.72.0` change log can be found on the official [release notes](https://github.com/webpack/webpack/releases/tag/v5.72.0).
19+
+ `webpack-dev-server@4.8.1` change log can be found on the official [release notes](https://github.com/webpack/webpack-dev-server/releases/tag/v4.8.1).
20+
321
## [5.12.1](https://github.com/WeAreAthlon/frontend-webpack-boilerplate/releases/tag/v5.12.1)
422
### 01/02/2022
523

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Athlon DPS
3+
Copyright (c) 2022 Athlon Sofia
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Webpack 5 Boilerplate Template
22

33
![Maintenance](https://img.shields.io/maintenance/yes/2022?logo=github)
4-
![webpack-current](https://img.shields.io/badge/webpack-v5.69.1-green?logo=webpack)
4+
![webpack-current](https://img.shields.io/badge/webpack-v5.72.0-green?logo=webpack)
55
![node-current (scoped)](https://img.shields.io/node/v/@weareathlon/frontend-webpack-boilerplate)
66
[![Build Status](https://app.travis-ci.com/WeAreAthlon/frontend-webpack-boilerplate.svg?branch=master)](https://app.travis-ci.com/github/WeAreAthlon/frontend-webpack-boilerplate)
77
[![@weareathlon/frontend-webpack-boilerplate](https://snyk.io/advisor/npm-package/@weareathlon/frontend-webpack-boilerplate/badge.svg)](https://snyk.io/advisor/npm-package/@weareathlon/frontend-webpack-boilerplate)
@@ -68,6 +68,7 @@ Table of Contents
6868
* *SASS / PostCSS*
6969
* *HTML* templates
7070
* *Images* (*CSS backgrounds and image tags*)
71+
* *Videos*
7172
* *Fonts*
7273
* Support for **assets optimization** for production environment with ability to configure:
7374
* **Code Minification** of *JavaScript* and *CSS* processed files.

package-lock.json

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

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "WeAreAthlon <hello@weareathlon.com> (https://www.weareathlon.com)",
33
"name": "@weareathlon/frontend-webpack-boilerplate",
4-
"version": "5.12.1",
4+
"version": "5.13.0",
55
"description": "Starter project template boilerplate based on Webpack with SASS/PostCSS and babel ES6/7 support.",
66
"homepage": "https://github.com/WeAreAthlon/frontend-webpack-boilerplate#readme",
77
"browserslist": [
@@ -20,17 +20,17 @@
2020
}
2121
],
2222
"devDependencies": {
23-
"@babel/core": "^7.16.0",
23+
"@babel/core": "^7.17.9",
2424
"@babel/preset-env": "^7.16.0",
2525
"autoprefixer": "^10.4.0",
2626
"babel-loader": "^8.2.3",
2727
"clean-webpack-plugin": "^4.0.0",
2828
"copy-webpack-plugin": "^10.2.3",
2929
"css-loader": "^6.5.1",
3030
"css-minimizer-webpack-plugin": "^3.1.1",
31-
"eslint": "^8.2.0",
31+
"eslint": "^8.13.0",
3232
"eslint-config-airbnb": "^19.0.0",
33-
"eslint-plugin-import": "^2.25.3",
33+
"eslint-plugin-import": "^2.26.0",
3434
"eslint-plugin-jsx-a11y": "^6.5.1",
3535
"eslint-plugin-react": "^7.27.0",
3636
"eslint-plugin-react-hooks": "^4.3.0",
@@ -44,14 +44,14 @@
4444
"mini-css-extract-plugin": "^2.4.4",
4545
"postcss": "^8.3.11",
4646
"postcss-loader": "^6.2.0",
47-
"sass": "^1.43.4",
47+
"sass": "^1.50.1",
4848
"sass-lint": "^1.13.1",
4949
"sass-loader": "^12.3.0",
5050
"terser-webpack-plugin": "^5.2.5",
51-
"webpack": "^5.68.0",
51+
"webpack": "^5.72.0",
5252
"webpack-bundle-analyzer": "^4.5.0",
5353
"webpack-cli": "^4.9.1",
54-
"webpack-dev-server": "^4.4.0",
54+
"webpack-dev-server": "^4.8.1",
5555
"webpack-merge": "^5.8.0"
5656
},
5757
"engines": {

src/index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h1>Webpack 5 Template Boilerplate</h1>
1414
<small>Maintained by <a href="https://www.weareathlon.com/" target="_blank" rel="noopener">WeAreAthlon</a>. Source code availalbe on <a href="https://github.com/WeAreAthlon/frontend-webpack-boilerplate/" target="_blank"><img src="images/content/github.png" alt="GitHub logo"> GitHub</a>.</small>
1515
<div class="badges">
1616
<a href="https://github.com/WeAreAthlon/frontend-webpack-boilerplate/" target="_blank" rel="noopener"><img src="https://img.shields.io/maintenance/yes/2022?logo=github" alt="Maintenance"></a>
17-
<a href="https://webpack.js.org" target="_blank" rel="noopener"><img src="https://img.shields.io/badge/webpack-v5.69.1-green?logo=webpack" alt="Current Webpack Version"></a>
17+
<a href="https://webpack.js.org" target="_blank" rel="noopener"><img src="https://img.shields.io/badge/webpack-v5.72.0-green?logo=webpack" alt="Current Webpack Version"></a>
1818
<a href="https://app.travis-ci.com/github/WeAreAthlon/frontend-webpack-boilerplate" target="_blank" rel="noopener"><img src="https://app.travis-ci.com/WeAreAthlon/frontend-webpack-boilerplate.svg?branch=master" alt="Build Status"></a>
1919
<a href="https://snyk.io/advisor/npm-package/@weareathlon/frontend-webpack-boilerplate" target="_blank" rel="noopener"><img src="https://snyk.io/advisor/npm-package/@weareathlon/frontend-webpack-boilerplate/badge.svg" alt="Snyk.io package health badge"></a>
2020
<br>
@@ -126,6 +126,7 @@ <h2 id="features">Features</h2>
126126
<li><em>SASS / PostCSS</em></li>
127127
<li><em>HTML</em> templates</li>
128128
<li><em>Images</em> (<em>CSS backgrounds and image tags</em>)</li>
129+
<li><em>Videos</em></li>
129130
<li><em>Fonts</em></li>
130131
</ul>
131132
</li>
@@ -290,6 +291,11 @@ <h2 id="run-assets-bundle-analyzer">Run Assets Bundle Analyzer</h2>
290291
<h2 id="continuous-integration">Continuous Integration</h2>
291292
<p>This boilerplate template contains integration with <a href="https://travis-ci.org/">Travis CI</a>. The build system runs all linting scripts and deploys production optimized pages to <em>GitHub</em> pages upon push to the <code>master</code> branch. However, note that this deployment flow only works for <em>Project Pages</em>, as User and Organization pages <a href="https://help.github.com/articles/user-organization-and-project-pages/">only support the master branch flow</a>.</p>
292293
<p>For more information on how to set up alternative deployment processes, check out the <a href="https://docs.travis-ci.com/user/deployment">Travis CI documentation on deployment</a>. The service can deploy to dozens of cloud providers, including Heroku, AWS, and Firebase.</p>
294+
<h2 id="video-files">Video File Preview</h2>
295+
<video width="1024" height="576" controls>
296+
<source src="videos/video.webm" type="video/webm">
297+
Your browser does not support the video tag.
298+
</video>
293299
</main>
294300
<footer>
295301
<address>Documentation avaialable on the official <a href="https://github.com/WeAreAthlon/frontend-webpack-boilerplate/" target="_blank" rel="noopener">GitHub Repository</a>.</address>

src/js/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const demo = () => 'Webpack Boilerplate v5.12.1 - SASS/PostCSS, ES6/7, browser sync, source code listing and more.';
1+
const demo = () => 'Webpack Boilerplate v5.13.0 - SASS/PostCSS, ES6/7, browser sync, source code listing and more.';
22

33
// eslint-disable-next-line no-console
44
console.log(demo());

src/scss/demo.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ main {
5252
text-align: center;
5353
padding: 10px;
5454
}
55+
56+
video {
57+
margin: 0 auto;
58+
display: block;
59+
}
5560
}
5661

5762
.badges {

src/videos/video.webm

224 KB
Binary file not shown.

webpack.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ module.exports = {
120120
ignore: ['*.DS_Store', 'Thumbs.db'],
121121
},
122122
},
123+
{
124+
from: path.resolve(environment.paths.source, 'videos'),
125+
to: path.resolve(environment.paths.output, 'videos'),
126+
toType: 'dir',
127+
globOptions: {
128+
ignore: ['*.DS_Store', 'Thumbs.db'],
129+
},
130+
},
123131
],
124132
}),
125133
].concat(htmlPluginEntries),

0 commit comments

Comments
 (0)